diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2022-05-14 10:27:03 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2022-05-14 10:27:03 +0100 |
commit | 55f4718f730c8492cd8491c9a84bafe2988ddcfe (patch) | |
tree | 1f415a603eac4511b3c4b3fe24fe2b7073647b41 | |
parent | 9f76cbc815a29425d4b297fc5a60ebfa1777b929 (diff) | |
download | lustre-55f4718f730c8492cd8491c9a84bafe2988ddcfe.tar.gz lustre-55f4718f730c8492cd8491c9a84bafe2988ddcfe.zip |
:wrench: Update scripts to run from test/example/ dir instead.
-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 |