Skip to content

Commit 7d5b813

Browse files
Ismaestroiramos
authored andcommitted
feat(package): add build prod task to ci
1 parent d31cdde commit 7d5b813

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
"start": "ng serve --open",
77
"http-server": "http-server dist/ -c-1",
88
"build": "ng build",
9+
"build:prod": "ng build --prod",
910
"build:library": "ng build ngx-example-library",
10-
"deploy": "ng build --prod && npx ngh",
11+
"deploy": "npm run build:prod && npx ngh",
1112
"test": "ng test",
1213
"e2e": "ng e2e",
1314
"lint": "ng lint",
14-
"ci": "npm run lint && npm run test && npm run e2e",
15+
"ci": "npm run lint && npm run test && npm run e2e && npm run build:prod",
1516
"extract": "ngx-translate-extract --input ./src/app --output ./src/assets/i18n/*.json --sort --format namespaced-json --format-indentation ' ' --marker _",
1617
"translate": "node ./scripts/translate.js",
1718
"bundle-report": "ng build --prod --stats-json && webpack-bundle-analyzer dist/stats.json",

0 commit comments

Comments
 (0)