build module before npm publish

This commit is contained in:
Roman Hotsiy 2016-10-14 12:19:53 +03:00
parent b3de9f98ae
commit 7fee427ba2
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ before_script:
after_script:
- kill %1 # kill e2e server
before_deploy:
- npm run build-dist
- npm run build:prod-module
deploy:
- provider: npm
skip_cleanup: true

View File

@ -21,7 +21,8 @@
"ngc": "ngc -p .",
"webpack:prod": "webpack --config build/webpack.prod.js --profile --bail",
"build:sass": "node-sass -q -o lib lib",
"build:prod": "npm run build:sass && npm run ngc && npm run webpack:prod && IS_MODULE=true npm run webpack:prod",
"build:prod": "npm run build:sass && npm run ngc && npm run webpack:prod",
"build:prod-module": "npm run build:sass && npm run ngc && npm run webpack:prod && IS_MODULE=true npm run webpack:prod",
"build-dist": "npm run build:prod",
"stats": "webpack --config build/webpack.prod.js --json > stats.json",
"start": "webpack-dev-server --config build/webpack.dev.js --content-base demo",