From 015aae4acd4de7e7b82d51996aeb484ec5adf9a0 Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Mon, 18 Sep 2023 11:29:34 +0200 Subject: [PATCH 1/3] added local server for changes testing --- bun.lockb | Bin 60704 -> 82013 bytes package.json | 4 ++++ scripts/serve.ts | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 scripts/serve.ts diff --git a/bun.lockb b/bun.lockb index 14e10ee750f2a666e68f5a9564615d6d8e22fb13..5441d825ca28d73fc7d5e147e7c2b7ca421cbd50 100755 GIT binary patch delta 26648 zcmeHw2UrwK)9&uFC`%BLAS+pd2rfzxP$ZcZF@l(tummLs1q_QhV`y{2oD~)Ih>Bts z)FbAA*<;Q*>wRlxN6_Q>?tjlc|M%VJKL0$=J2h3^U0q#W-7~xF6pJrwT+Pv(>QXoI zS@V_)qqC0OiXK{2dgJv1!cIFU!LgOZ-vI8nP?J&}rYVQe_x zVmJz@!g*9A*WN)bYFG|RBTg6)6_=VU644YS#HFQ2DI+ps&{2ZA!|=4M#7OY*Nm1cx z7)esHGEoUj6XFtRJfc%-J;4UN2LcS>f9lX30;0Q7!5DN10)a+;3Y0poW5|yrmQy1V zMJA=Dk>beM@c02xtZBp>ih(Gij%ADYyVPFy|YVqJS)pi%CpM#c20|r>USy;qhrA9}Aw}uC5my zml&nUNEUsCoZ7uo(_}?_Qe=2Ktc}N1rHfu!^5rYhjs`l)itEqtPs^;4HM=ZvP`Oz1 z^$~6Z$suQKcplzOPgh2XWQEjd*Q`$wT3CNF0g zZ}ZivEbV}kS>mV$9bSMfM%dn-xKZNqZ~6( zGpvj6Q+uhdNQBABF+c&uj9A@)*qK-O#)(&$51vM}6qI7ww;n&T`v_(v(DGaQ%tG-S`2v2PL@|r~~3Rrxq>{PB~RT z$;D66&=k}cN@+y*JXp5WQv90DmDW+kd+}Bod-HDU2})K*q=rW-Vb5u`+_VvIMSoB# z7XleO3%3$%8}ssT=%dlZH57>ut2rk<_|Ee|t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=906b7+7j&9yG)9%kB>DZ^;f{nQAwFCQ-|Ba`k_=_qSU3c{L4IHr2 zRS+hY^;N&_d}rwO8)PN#rGiMmbaff|$Xy4JW^is^eSZ)cfW)heYZ^PPY-;SYBf&iK6Uz+ zmttxLMxw!BbcO4h8&=~$^}A0sHs_wJ{;L`rHH)+c8OE7j`SiVuH?K*nkVSe@238x7 z$RXNsc=m2{9);~6qa|7tc z=MDb|u(mx~jWfV6Ul{yk-QK@k!tm@ho*1?dq`lZbH7j3SEqPxEnQx8ydN+yhma)jP zI-%mu=MQ2zQTjbEZR#s>HkFFx1b&=>r@j@L>92~0(3>-!SDQ$yFKIG3yDrn-Cxxoo z%`Le?t2Q6ykVrOL4M@KCq^Tcs8tMOoaH=fe{H}LZ=oXi>Q_*8KV1v_tQmH G@ZSMjaHOFC diff --git a/package.json b/package.json index 4d78696..4a69015 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "", "scripts": { "dle": "rimraf dist; bun ./index.ts", + "watch": "concurrently \"bun --watch ./index.ts;\" \"bun ./scripts/serve.ts\"", "lint": "eslint --ext .ts .", "lint:fix": "eslint --fix --ext .ts ." }, @@ -21,8 +22,11 @@ "@types/node": "^20.5.9", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", + "bun": "^1.0.2", + "concurrently": "^8.2.1", "eslint": "^8.1.0", "eslint-plugin-sort-imports-es6-autofix": "^0.6.0", + "http-server": "^14.1.1", "kleur": "^4.1.5", "rimraf": "^5.0.1", "typescript": "^5.2.2" diff --git a/scripts/serve.ts b/scripts/serve.ts new file mode 100644 index 0000000..c578631 --- /dev/null +++ b/scripts/serve.ts @@ -0,0 +1,30 @@ +import { constants } from "../helpers/constants"; +import { file, serve } from "bun"; +import { getConfigMainModules } from "../helpers/get-config-main-modules"; + +getConfigMainModules().then((modules) => { + console.log("Available configs:"); + const { environments } = constants; + modules.forEach((module) => { + environments.forEach((env) => { + console.log(`http://localhost:8080/${module}/${module}-${env}.json`); + }); + }); +}); + +serve({ + port: 8080, + fetch(req) { + const url = new URL(req.url); + const path = url.pathname; + if (!path.includes("json")) { + return; + } + try { + const fileData = file(`./dist/${path}`); + return new Response(fileData); + } catch (error) { + console.log(); + } + }, +}); From bcc778ec67dd2495711c319a58d5f3912b324221 Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Mon, 18 Sep 2023 11:49:52 +0200 Subject: [PATCH 2/3] added bun-types --- bun.lockb | Bin 82013 -> 82360 bytes package.json | 1 + tsconfig.json | 1 + 3 files changed, 2 insertions(+) diff --git a/bun.lockb b/bun.lockb index 5441d825ca28d73fc7d5e147e7c2b7ca421cbd50..7b5de1b4722265247002ad250902ebf8a137a868 100755 GIT binary patch delta 12630 zcmeHN2~<=^)_&E{z(X4mM0m8wBH{`PErNn{a96}7lZY5mQ4twI45-l4@L0^_JMM!5(`QB%3?GG=7L?{q z%mb~0oM-el+`*QQ%^f!?c68pP(S>>AOHf}w3erCYlr;Mn{9>*_}K0A=k|gMN(qAn?<$RBYQ3P}Xlv z6_)Tazj}IK7%O&UVQ&8WMsHt2j-qQc#*YEbD=jP-Gfq+3!q42gr9n@FvTF+SCX8WQ zj~eoA2Hg#+p?*YO-q_fJQY8#LTVcdNsLKq3mZ5sbb)mq{xkUXug0sJ=ubWp;8Y`nJ zw1KX52y!;BAb(782|T|KJiCUKatlk9&S5&g!_XU9FlI#T__2z2L%rQS+T{`4?4H4G zfEG_;R=D2#-v@F>5}r-Uk|GS3df}Cy69bR0*zMBd;&wPEfE-wO)Rd9_c9zL$5U<|GD zY*se{Yr!%vP&mw$Lsg!^Wiy-TJq~KB_wXhtTha@Z=jB9Cn5rup)DCKHz?01s1rBwE zLe7io3(ESwE%g5GH`n{y2A(Zj3(BF@wWV(1HN+JbcbMxC3Ov9NOoJ6C<(A}g?E1zT ze0;Kujyti6g0OU50M%VJJhw1+MBebig7F2=Uk^FE#Ei<7;BDX+klPwQFf?8dhI~+V zV1Kk=?P23(=gJ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P^ov8A(P=9y zqW*S2v^TG6fAjrO)9z6-(v@mAW2{mM4f#IJH?8q0NuQ~aHE#UU=AAdMq#3)FidIQ8 gDwKM#>ZA7mho2ZTut1|f+~rb};y;|)N;M7n3siddH2?qr diff --git a/package.json b/package.json index 4a69015..cc0bdd0 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "bun": "^1.0.2", + "bun-types": "^1.0.2", "concurrently": "^8.2.1", "eslint": "^8.1.0", "eslint-plugin-sort-imports-es6-autofix": "^0.6.0", diff --git a/tsconfig.json b/tsconfig.json index cc4ceda..35883c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "preserveConstEnums": true, "sourceMap": true, "esModuleInterop": true, + "types": ["bun-types"], "paths": { "🛠️": ["./helpers/index.ts"], "⌨️": ["./types/index.ts"] From daa578c06541279a7b797bfeab6d6efa82ab925b Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Mon, 18 Sep 2023 12:20:03 +0200 Subject: [PATCH 3/3] add error message --- scripts/serve.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/serve.ts b/scripts/serve.ts index c578631..fbeb1f2 100644 --- a/scripts/serve.ts +++ b/scripts/serve.ts @@ -24,7 +24,8 @@ serve({ const fileData = file(`./dist/${path}`); return new Response(fileData); } catch (error) { - console.log(); + console.error(error); + return new Response("File not found", { status: 404 }); } }, });