Add npm prune and update to travis.

This commit is contained in:
John-David Dalton
2016-08-08 16:52:12 -07:00
parent 36cf5a7ff3
commit 3ef032cbaf

View File

@@ -48,6 +48,7 @@ before_install:
- "npm set loglevel error"
- "npm set progress false"
- "npm i -g npm@\"^2.0.0\""
- "npm prune && npm update --dev"
- |
PATTERN[0]="|\s*if\s*\(isHostObject\b[\s\S]+?\}(?=\n)|"
PATTERN[1]="|\s*if\s*\(enumerate\b[\s\S]+?\};\s*\}|"
@@ -68,7 +69,7 @@ before_install:
- "rm -rf ./node_modules/lodash-cli"
- "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./node_modules/lodash-cli"
- "mkdir -p ./node_modules/lodash-cli/node_modules/lodash && cd $_ && cp ../../../../lodash.js ./lodash.js && cp ../../../../package.json ./package.json"
- "cd ../../ && npm i && cd ../../"
- "cd ../../ && npm i --production && cd ../../"
script:
# Detect code coverage.