Support for dev and dev:* commands
This commit is contained in:
parent
ce72d8bb15
commit
b081e73297
12
.scripts/dev.sh
Normal file
12
.scripts/dev.sh
Normal 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...'
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user