summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..db39c05
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,17 @@
+build: get_dependencies
+ mkdir -p dist
+ cp src/index.html dist/index.html
+ cp src/index.js dist/index.js
+ cp node_modules/@dimforge/rapier2d-compat/rapier.es.js dist/rapier.es.js
+
+run: build
+ npx http-server dist/
+
+get_dependencies:
+ npm install --include=dev --fund=false
+
+format:
+ npx prettier . --write
+
+clean:
+ rm -rf dist node_modules