aboutsummaryrefslogtreecommitdiff
path: root/package.json
blob: 9cc8f10c38ecd6106a3af1a7f717d615e76e711d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "devDependencies": {
    "nodemon": "1.9.1"
  },
  "scripts": {
    "start": "npm run watch",

    "watch": "npm run watch-server & npm run watch-elm & npm run watch-js",
    "watch-server": "nodemon -e hs,conf --exec 'npm run build-and-launch-server --silent'",
    "watch-elm": "nodemon -e elm --exec 'npm run build-elm --silent'",
    "watch-js": "nodemon --watch src/client/js  --exec 'npm run build-js --silent'",

    "build": "npm run build-server && npm run build-elm && npm run build-js",
    "build-server": "cabal build",
    "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 &",
    "kill-server": "pkill sharedCost || true"
  }
}