Fix client development so that it uses the local ng binary; (#177)
authorBenjamin Bouvier <public@benj.me>
Sat, 6 Jan 2018 17:10:51 +0000 (18:10 +0100)
committerChocobozzz <me@florianbigard.com>
Sat, 6 Jan 2018 17:10:51 +0000 (18:10 +0100)
package.json
scripts/watch/client.sh

index 7b30d24fac4f8feb62d539a86a47e7044d9cdb4b..8f72daa4d15f1c791463b5944096331d5bdcd673 100644 (file)
@@ -43,6 +43,7 @@
     "parse-log": "ts-node ./scripts/parse-log.ts",
     "postinstall": "cd client && yarn install --pure-lockfile",
     "tsc": "tsc",
+    "ng": "ng",
     "nodemon": "nodemon",
     "ts-node": "ts-node",
     "tslint": "tslint",
index 6d4759b4ef8a231bc4e43c97fa665ef11877de4e..09dcc23acab1a2c55b70278da557f65629ce089f 100755 (executable)
@@ -2,4 +2,4 @@
 
 cd client || exit -1
 
-ng server --hmr --host localhost --port 3000
+npm run ng -- server --hmr --host localhost --port 3000