aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2022-05-21 05:23:55 +0100
committerHayleigh Thompson <me@hayleigh.dev>2022-05-21 05:23:55 +0100
commitf759745772124ecba9d26b252bab2a88fd95200c (patch)
tree34d5f12bfe9097d7a8225bb2b5507a881ae88195 /package.json
parenta9bdc46f63f8be227fd6ba608a92df3cb5cf890f (diff)
downloadlustre-f759745772124ecba9d26b252bab2a88fd95200c.tar.gz
lustre-f759745772124ecba9d26b252bab2a88fd95200c.zip
:wrench: Add npm command to spin up a http server and rebuild docs on-change.
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json
index be311bc..da7b872 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,9 @@
"scripts": {
"clean": "rm -rf build dist",
"build": "gleam test && parcel build test/example/index.html",
- "docs": "gleam build docs && cp -a ./build/dev/docs/lustre/. ./docs/",
+ "build:docs": "gleam docs build && cp -a ./build/dev/docs/lustre/. ./docs/",
"start": "gleam test && concurrently --kill-others \"chokidar \"src/*\" \"test/example/*\" -c \\\"gleam test\\\"\" \"parcel test/example/index.html\"",
+ "start:docs": "concurrently --kill-others \"chokidar \"src/*\" \"test/example/*\" -c \\\"npm run build:docs\\\"\" \"http-server docs\"",
"start:clean": "npm run clean && npm start"
},
"author": "",
@@ -18,6 +19,7 @@
"devDependencies": {
"chokidar-cli": "^3.0.0",
"concurrently": "^7.0.0",
+ "http-server": "^14.1.0",
"parcel": "^2.3.0",
"process": "^0.11.10"
},