diff --git a/.travis.yml b/.travis.yml index c720646e..2d2df496 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_script: after_script: - kill %1 # kill e2e server before_deploy: -- if [[ ! -z "$TRAVIS_TAG" ]]; then npm run build:prod-module; fi +- if [[ ! -z "$TRAVIS_TAG" ]]; then npm run build:prod; fi deploy: - provider: npm skip_cleanup: true diff --git a/package.json b/package.json index 60b3733a..7a929985 100644 --- a/package.json +++ b/package.json @@ -15,16 +15,16 @@ "test": "npm run lint && node ./build/run_tests.js", "branch-release": "git reset --hard && branch-release", "lint": "tslint -e \"lib/**/*{ngfactory|css.shim}.ts\" lib/**/*.ts", - "unit": "npm run build:sass && karma start", + "unit": "karma start", "e2e": "npm run build:prod && npm run e2e-copy && npm run webdriver && protractor", "deploy": "node ./build/prepare_deploy.js && deploy-to-gh-pages --update demo", "ngc": "ngc -p .", + "clean:dist": "npm run rimraf -- dist/", "clean:aot": "npm run rimraf -- .tmp lib/**/*.css", "rimraf": "rimraf", - "webpack:prod": "npm run clean:aot && npm run build:sass && webpack --config build/webpack.prod.js --profile --bail", + "webpack:prod": "webpack --config build/webpack.prod.js --profile --bail", "build:sass": "node-sass -q -o lib lib", - "build:prod": "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:prod": "npm run clean:aot && npm run build:sass && 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",