From e91c7983cb07f1ae490c94ddef6c9fe6b7c6df90 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 31 Oct 2024 15:47:41 -0400 Subject: Improve build process - add a "clean" target - install dependencies as part of the build process - swap out make for the simpler just (https://github.com/casey/just) - add http-server as a dev dependency --- Justfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Justfile (limited to 'Justfile') 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 -- cgit v1.2.3-57-g22cb