From e803cf0df0c18d0412222e33bb4a83c47b2a525a Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 26 Jun 2018 19:19:38 +0000 Subject: [PATCH] more windows changes --- install_run.bat | 7 ------- package.json | 2 ++ update_run.bat | 8 ++++++++ 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 install_run.bat create mode 100644 update_run.bat diff --git a/install_run.bat b/install_run.bat deleted file mode 100644 index e3da47b..0000000 --- a/install_run.bat +++ /dev/null @@ -1,7 +0,0 @@ -git pull -npm install -npm run prod-run | bunyan -echo. -echo EXITED -echo. -PAUSE diff --git a/package.json b/package.json index 2f9c267..dd92e94 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,10 @@ "build-status:js": "browserify app/status/index.js -o public/status.js --debug -t [ babelify ]", "watch:server": "nodemon index.js", "start": "node index.js", + "start:win": "node index.js | bunyan", "dev-run": "run-p watch:js watch-client:js watch-status:js watch:server watch:styl watch-client:styl watch-status:styl", "prod-run": "npm run build:js && npm run build-client:js && npm run build-status:js && npm run build:styl && npm run build-client:styl && npm run build-status:styl && npm start", + "build": "npm run build:js && npm run build-client:js && npm run build-status:js && npm run build:styl && npm run build-client:styl && npm run build-status:styl", "test": "env NODE_ENV=test mocha --require babel-register --recursive --reporter dot", "docker": "docker run -it --rm --name my-running-script -v \"$PWD\":/usr/src/app -w /usr/src/app node:alpine", "docker:test": "npm run docker -- npm install && npm run test", diff --git a/update_run.bat b/update_run.bat new file mode 100644 index 0000000..fbc1b5a --- /dev/null +++ b/update_run.bat @@ -0,0 +1,8 @@ +git pull master +CALL npm install +CALL npm run build +CALL npm run start:win +echo. +echo EXITED +echo. +PAUSE