aboutsummaryrefslogtreecommitdiff
path: root/package.json
blob: a44c384dbff1e9471642700bdf18b1877fb42ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 --silent' src/server",
    "watch-client": "watch 'npm run build-client --silent' 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"
  }
}