use consisten naming convention for npm tasks and use npm-run-all for docker task
Showing
... | ... | @@ -7,8 +7,9 @@ |
"tsc:w": "tsc -w", | ||
"lite": "lite-server", | ||
"typings": "typings", | ||
"docker-build": "docker build -t ng2-quickstart .", | ||
"docker": "npm run docker-build && docker run -it --rm -p 3000:3000 -p 3001:3001 ng2-quickstart", | ||
"docker:build": "docker build -t ng2-quickstart .", | ||
"docker:run": "docker run -it --rm -p 3000:3000 -p 3001:3001 ng2-quickstart", | ||
"docker": "npm-run-all docker:build docker:run", | ||
"postinstall": "typings install" | ||
}, | ||
"license": "ISC", | ||
... | ... |
Please register or sign in to comment