{
  "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"
  }
}