mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-04 07:33:45 +00:00
Improve the package.json scripts
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>
This commit is contained in:
parent
df83298c54
commit
0da4c9d90d
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ npm-debug.log
|
||||
/.idea/
|
||||
.env
|
||||
build/
|
||||
.vscode/
|
||||
|
@ -52,7 +52,9 @@
|
||||
"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",
|
||||
|
Loading…
Reference in New Issue
Block a user