1. Include a `prestart` script, which runs the build
2. Make the `start` script just start the demo server
3. Add a new `dev` script, which contains the nodemon logic
4. nodemon now watches for changes in `*.ts` files and runs the start command
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
/.idea/
.env
build/
+.vscode/
"typescript": "^2.0.3"
},
"scripts": {
- "start": "nodemon --watch src --watch addons --watch demo --exec bash -c './bin/build && node demo/app'",
+ "prestart": "npm run build",
+ "start": "node demo/app",
+ "dev": "nodemon -e js,ts --watch src --watch demo --exec npm start",
"lint": "tslint src/**/*.ts",
"test": "mocha --recursive ./lib",
"build:docs": "jsdoc -c jsdoc.json",