Skip to content

Commit c37dd9d

Browse files
committed
Add helpful scripts to package.json
1 parent 5cb2943 commit c37dd9d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
"description": "A port of Elm-UI to Purescript Concur",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "spago test",
8+
"clean": "rimraf .cache .spago .psci_modules output .pulp-cache prod dist",
9+
"build": "spago build",
10+
"dev": "rimraf dist && spago build && parcel build --public-url ./ index.html",
11+
"prod": "rimraf prod dist && mkdir prod && spago bundle-app --main Main --to prod/index.prod.js && java -jar closure-compiler/closure-compiler-v20190301.jar --js prod/index.prod.js --js_output_file prod/index.js && cp index.html prod/index.html && parcel build --public-url ./ prod/index.html && rimraf prod",
12+
"docs": "npm run prod && rimraf docs && mv dist docs",
13+
"start": "spago build && parcel index.html",
14+
"watch": "spago build && parcel watch index.html"
815
},
916
"author": "",
1017
"license": "ISC",
1118
"devDependencies": {
1219
"parcel-bundler": "^1.12.4",
1320
"purescript": "^0.13.6",
21+
"rimraf": "^3.0.0",
1422
"spago": "^0.14.0"
1523
},
1624
"dependencies": {

0 commit comments

Comments
 (0)