Support for dev and dev:* commands

This commit is contained in:
dannyrb 2019-08-05 23:15:07 -04:00
parent ce72d8bb15
commit b081e73297
3 changed files with 18 additions and 3 deletions

12
.scripts/dev.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
PROJECT=$1
if [ -z "$PROJECT" ]
then
# Default
npx lerna run dev:viewer
else
eval "npx lerna run dev:$PROJECT"
fi
read -p 'Press [Enter] key to continue...'

View File

@ -12,7 +12,10 @@
},
"scripts": {
"cm": "npx git-cz",
"start": "lerna run lerna:start --parallel",
"dev": ".scripts/dev.sh",
"dev:core": "",
"dev:ui": "",
"build": "",
"build:package": "lerna run build:package --parallel",
"build:pwa:ci": "",
"test:unit": "jest --collectCoverage",

View File

@ -16,7 +16,6 @@
},
"proxy": "http://localhost:8042",
"scripts": {
"lerna:start": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --mode development -w -d",
"build:package": "webpack --config config/webpack.prod.js",
"test:unit": "jest --watch",
"test:unit:ci": "jest --ci --runInBand --collectCoverage",
@ -34,7 +33,8 @@
"copy:webworkers": "cpx \"node_modules/cornerstone-wado-image-loader/dist/*.min.js*\" \"public\" -v",
"cy": "cypress open",
"cy:run": "cypress run",
"cy:run:ci": "yarn run cy:run -- --record"
"cy:run:ci": "yarn run cy:run -- --record",
"dev:viewer": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --mode development -w -d"
},
"resolutions": {
"browserslist": "4.6.2",