Skip to content

Commit

Permalink
Add Windows bat files (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharangj authored Jul 6, 2020
1 parent 16a771f commit e54bb6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
"analyze-stats": "NODE_ENV=production ANALYZE_STATS=true BABEL_TARGET=browser webpack --profile --mode=production -p",
"asset-server": "BABEL_TARGET=browser webpack-dev-server --hot",
"compile": "BABEL_TARGET=browser webpack",
"windows-asset-server": "webpack-dev-server --hot",
"windows-compile": "webpack",
"dev-server": "nodemon --watch app/server --watch app/isomorphic --exec 'BABEL_TARGET=node node start.js' --signal SIGHUP",
"prune-packages": "rm -rf node_modules && npm install && npm dedupe",
"start": "BABEL_TARGET=node node start.js",
Expand Down
6 changes: 6 additions & 0 deletions run-assets.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
call npm install
set BABEL_TARGET=browser
call npm run windows-compile
call npm run windows-asset-server
pause
4 changes: 4 additions & 0 deletions run-backend-server.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
set BABEL_TARGET=node
call node start.js
pause

0 comments on commit e54bb6c

Please sign in to comment.