Commit e9b42815 authored by Jonathan Cunanan's avatar Jonathan Cunanan

Add Server watch mode

parent 4eafde70
{
"execMap": {
"js": "babel-node"
},
"watch": ["src/*", "public/*"],
"ext": "js, html, css, json"
}
This diff is collapsed.
......@@ -4,10 +4,11 @@
"private": true,
"scripts": {
"start": "npm run prod",
"dev": "NODE_ENV=development babel-node ./src/bin/www",
"dev": "NODE_ENV=development npm run watch ./src/bin/www",
"prod": "npm run build && NODE_ENV=production node ./dist/bin/www",
"build": "npm run clean && babel ./src --out-dir dist",
"clean": "rimraf dist"
"clean": "rimraf dist",
"watch": "nodemon --config ./nodemon.json --"
},
"dependencies": {
"cookie-parser": "~1.4.3",
......@@ -22,6 +23,7 @@
"@babel/node": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0"
"eslint-plugin-import": "^2.16.0",
"nodemon": "^1.18.9"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment