diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/package.json b/package.json index a44c384..cf98877 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,17 @@ { "devDependencies": { - "watch": "0.16.0" + "watch": "0.17.1" }, "scripts": { - "watch": "npm run watch-server & npm run watch-client", + "watch": "npm run watch-server & npm run watch-elm & npm run watch-js", "watch-server": "watch 'npm run build-and-launch-server --silent' src/server", - "watch-client": "watch 'npm run build-client --silent' src/client", + "watch-elm": "watch 'npm run build-elm --silent' src/client/elm", + "watch-js": "watch 'npm run build-js --silent' src/client/js", - "build": "npm run build-server && npm run build-client", + "build": "npm run build-server && npm run build-elm && npm run build-js", "build-server": "cabal build", - "build-client": "elm make src/client/Main.elm --output public/javascripts/client.js", + "build-elm": "elm make src/client/elm/Main.elm --output public/javascripts/client.js", + "build-js": "cp src/client/js/main.js public/javascripts/main.js && echo 'javascript pasted.'", "build-and-launch-server": "npm run build-server && npm run kill-server && npm run launch-server", "launch-server": "./dist/build/sharedCost/sharedCost &", |