upd: packages.json (added commands: 'ws-start', 'ws-stop', 'ws-restart') | add: ndli1718.jar (added to .gitignore)

This commit is contained in:
xdrm-brackets 2017-12-07 15:27:15 +01:00
parent ff129222b9
commit 4cfb4a7f4d
2 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
websocket.out
ndli1718.jar
.vscode
.DS_Store
node_modules/

View File

@ -10,7 +10,11 @@
"build:bundle": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"build:dev": "cross-env NODE_ENV=development webpack --progress --hide-modules",
"dev": "npm run build:clean; npm run build:dev",
"build": "npm run build:clean; npm run build:bundle"
"build": "npm run build:clean; npm run build:bundle",
"ws-start": "java -jar ./ndli1718.jar > ./websocket.out 2>&1 &",
"ws-stop": "ps -aux | grep 'java -jar ./ndli1718.jar' | grep -v 'grep' && echo 'killing process..' && kill `ps -aux | grep \"java -jar ./ndli1718.jar\" | grep -v \"grep\" | awk '{print $2}'` && echo 'killed' || return 0",
"ws-restart": "npm run ws-stop; npm run ws-start"
},
"dependencies": {
"vue": "^2.5.9"