- + + +
diff --git a/frontend/.prettierrc.tml b/frontend/.prettierrc.tml new file mode 100644 index 0000000..7365bf2 --- /dev/null +++ b/frontend/.prettierrc.tml @@ -0,0 +1,6 @@ +# .prettierrc.toml +trailingComma = "all" +tabWidth = 4 +semi = true +singleQuote = false +jsxSingleQuote = false diff --git a/frontend/.prettierrc.toml b/frontend/.prettierrc.toml new file mode 100644 index 0000000..7365bf2 --- /dev/null +++ b/frontend/.prettierrc.toml @@ -0,0 +1,6 @@ +# .prettierrc.toml +trailingComma = "all" +tabWidth = 4 +semi = true +singleQuote = false +jsxSingleQuote = false diff --git a/frontend/Makefile b/frontend/Makefile new file mode 100644 index 0000000..88ce765 --- /dev/null +++ b/frontend/Makefile @@ -0,0 +1,15 @@ + +.PHONY: build watch check clean + +build: + esbuild src/main.ts --outfile=bundle.js --minify --sourcemap --bundle + +watch: + esbuild src/main.ts --outfile=bundle.js --minify --sourcemap --bundle --watch + +check: + tsc --noEmit -p tsconfig.json + +clean: + rm -rf bundle.js bundle.js.map + diff --git a/frontend/build.sh b/frontend/build.sh deleted file mode 100644 index 34393ca..0000000 --- a/frontend/build.sh +++ /dev/null @@ -1,5 +0,0 @@ - -set -xe - -esbuild src/main.ts --outfile=bundle.js --minify --sourcemap --bundle - diff --git a/frontend/build_watch.sh b/frontend/build_watch.sh deleted file mode 100644 index 817b0ce..0000000 --- a/frontend/build_watch.sh +++ /dev/null @@ -1,5 +0,0 @@ - -set -xe - -esbuild src/main.ts --outfile=bundle.js --minify --sourcemap --bundle --watch - diff --git a/frontend/bundle.js.map b/frontend/bundle.js.map deleted file mode 100644 index dab7829..0000000 --- a/frontend/bundle.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["src/main.ts"], - "sourcesContent": ["\nfunction main() {\n console.log(\"hello world\");\n}\n\nmain();\n\n"], - "mappings": "MACA,SAASA,GAAO,CACZ,QAAQ,IAAI,aAAa,CAC7B,CAEAA,EAAK", - "names": ["main"] -} diff --git a/frontend/check.sh b/frontend/check.sh deleted file mode 100644 index 15d6550..0000000 --- a/frontend/check.sh +++ /dev/null @@ -1,5 +0,0 @@ - -set -xe - -tsc src/main.ts --noEmit - diff --git a/frontend/index.html b/frontend/index.html index 3744dde..4e1d911 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,14 +5,25 @@