Skip to content

Commit b2c126d

Browse files
committed
npm run test script added to travis script
1 parent 9cda874 commit b2c126d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ before_script:
1919
- npm install -g @angular/cli
2020

2121
script:
22-
- npm run prod
22+
- npm run test

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"nodemon": "nodemon dist/server/server.js",
1111
"dev": "tsc && npm run post-dev",
1212
"post-dev": "concurrently \"tsc -w\" \"nodemon dist/server/server.js\"",
13-
"prod": "tsc && npm run post-prod",
14-
"post-prod": "concurrently \"tsc\" \"node dist/server/server.js\"",
15-
"test": "ng test",
13+
"prod": "ng build --prod --aot && tsc && npm run post-prod",
14+
"post-prod": "node dist/server/server.js",
15+
"test": "ng build --prod --aot && tsc",
1616
"lint": "ng lint",
1717
"e2e": "ng e2e"
1818
},

0 commit comments

Comments
 (0)