From 91124af0754301a82d5084ab60a6a2042152cf73 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 5 Aug 2017 17:03:45 -0400 Subject: [PATCH] fix(nsp): copy shrink-wrap to dist and use nsp to test it --- .travis.yml | 12 ++++++------ package.json | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0dae9212e..6d85e41e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: node_js +node_js: + - '6' + cache: directories: - node_modules @@ -6,9 +9,6 @@ cache: notifications: email: false -node_js: - - '6' - env: global: - ENCRYPTION_LABEL: "a8c5e363dc84" @@ -24,10 +24,10 @@ install: true script: - sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -x -before_script: - - npm prune - after_success: + - if [[ -s package.json ]]; then cp package.json dist; fi + - if [[ -s npm-shrinkwrap.json ]]; then cp package.json dist; fi + - npm prune - npm run semantic-release - npm run publish-travis diff --git a/package.json b/package.json index 0ffdd4f98..46877ee44 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "start:demo": "webpack-dev-server --config config/webpack.demo.js --progress --host 0.0.0.0 --port 8001 --profile --watch --content-base dist-demo", "test": "karma start", "transpile": "gulp transpile", - "semantic-release": "semantic-release pre && cp package.json dist && npm publish dist/ && semantic-release post", + "semantic-release": "semantic-release pre && npm publish dist/ && semantic-release post", "semantic-release-build": "npm run build" }, "license": "Apache-2.0", @@ -133,6 +133,7 @@ "mocha": "3.2.0", "ng-router-loader": "2.1.0", "npm-run-all": "4.0.2", + "nsp": "2.7.0", "null-loader": "0.1.1", "opt-cli": "1.5.1", "optimize-js-plugin": "0.0.4",