
+ +
diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..3427f43 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,4 @@ + +bundle.js +bundle.map.js + diff --git a/frontend/build.sh b/frontend/build.sh new file mode 100644 index 0000000..34393ca --- /dev/null +++ b/frontend/build.sh @@ -0,0 +1,5 @@ + +set -xe + +esbuild src/main.ts --outfile=bundle.js --minify --sourcemap --bundle + diff --git a/frontend/build_watch.sh b/frontend/build_watch.sh new file mode 100644 index 0000000..817b0ce --- /dev/null +++ b/frontend/build_watch.sh @@ -0,0 +1,5 @@ + +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 new file mode 100644 index 0000000..dab7829 --- /dev/null +++ b/frontend/bundle.js.map @@ -0,0 +1,7 @@ +{ + "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 new file mode 100644 index 0000000..15d6550 --- /dev/null +++ b/frontend/check.sh @@ -0,0 +1,5 @@ + +set -xe + +tsc src/main.ts --noEmit + diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..3744dde --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,18 @@ + + +
+ + + +