diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package.json b/package.json new file mode 100644 index 0000000..ad80280 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "devDependencies": { + "watch": "0.16.0" + }, + "scripts": { + "watch": "npm run watch-server & npm run watch-client", + "watch-server": "watch 'npm run build-and-launch-server' src/server", + "watch-client": "watch 'npm run build-client' src/client", + + "build": "npm run build-server && npm run build-client", + "build-server": "cabal build", + "build-client": "elm make src/client/Main.elm --output public/javascripts/client.js", + + "build-and-launch-server": "npm run build-server && npm run kill-server && npm run launch-server", + "launch-server": "./dist/build/sharedCost/sharedCost &", + "kill-server": "pkill sharedCost || true" + } +} |