From a1eebf7bd8d1831a408a49dea66e4ca95338f312 Mon Sep 17 00:00:00 2001 From: Kahlil Lechelt Date: Thu, 7 Apr 2016 16:18:25 +0200 Subject: [PATCH 1/2] use npm-run-all instead of concurrently for nicer syntax in scripts --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4ee4f7959..a80c0ad42 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "angular2-quickstart", "version": "1.0.0", "scripts": { - "start": "concurrently \"npm run tsc:w\" \"npm run lite\" ", + "start": "npm-run-all --parallel tsc:w lite", "tsc": "tsc", "tsc:w": "tsc -w", "lite": "lite-server", @@ -21,9 +21,9 @@ "zone.js": "0.6.6" }, "devDependencies": { - "concurrently": "^2.0.0", "lite-server": "^2.1.0", + "npm-run-all": "^1.7.0", "typescript": "^1.8.9", - "typings":"^0.7.11" + "typings": "^0.7.11" } } From ae1f3648bbb040911bc377b05d3f04876e8fd8fd Mon Sep 17 00:00:00 2001 From: Kahlil Lechelt Date: Thu, 7 Apr 2016 16:20:41 +0200 Subject: [PATCH 2/2] use consisten naming convention for npm tasks and use npm-run-all for docker task --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a80c0ad42..85db271cd 100644 --- a/package.json +++ b/package.json @@ -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",