diff options
-rw-r--r-- | package.json | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/package.json b/package.json index 7d66ddd..2f4bf18 100644 --- a/package.json +++ b/package.json @@ -2,16 +2,14 @@ "name": "gleam-lustre", "version": "1.0.0", "description": "A Gleam project", - "main": "index.js", "type": "module", "directories": { "test": "test" }, "scripts": { "clean": "rm -rf build dist", - "build:gleam": "gleam build && cd src/lustre && find . -type f -iname \"*.mjs\" -ls -exec ditto {} ../../build/dev/javascript/lustre/dist/lustre/{} \\; && cd ../../", - "build": "npm run build:gleam && parcel build src/index.html", - "start": "npm run build:gleam && concurrently --kill-others \"chokidar src/lustre/* -c \\\"npm run build:gleam\\\"\" \"parcel src/index.html\"", + "build": "gleam test && parcel build test/example/index.html", + "start": "gleam test && concurrently --kill-others \"chokidar \"src/*\" \"test/example/*\" -c \\\"gleam test\\\"\" \"parcel test/example/index.html\"", "start:clean": "npm run clean && npm start" }, "author": "", @@ -23,10 +21,11 @@ "process": "^0.11.10" }, "alias": { + "example": "./build/dev/javascript/lustre/dist/example", "lustre": "./build/dev/javascript/lustre/dist/lustre" }, "dependencies": { "react": "^17.0.2", "react-dom": "^17.0.2" } -} +}
\ No newline at end of file |