Browse Source

feat: Merge pull request #826 from pelias/repo-crawler-add-dep-check

Add dependency checks to pre-commit and travis
pull/836/head v3.21.0
Diana Shkolnikov 8 years ago committed by GitHub
parent
commit
df5eb736d0
  1. 8
      .travis.yml
  2. 9
      package.json

8
.travis.yml

@ -1,8 +1,5 @@
sudo: false sudo: false
language: node_js language: node_js
cache:
directories:
- node_modules
notifications: notifications:
email: false email: false
node_js: node_js:
@ -10,11 +7,10 @@ node_js:
- 6 - 6
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures:
env: env:
global: global:
- CXX=g++-4.8 - CXX=g++-4.8
script: "npm run travis" script: npm run travis
addons: addons:
apt: apt:
sources: sources:
@ -22,7 +18,7 @@ addons:
packages: packages:
- g++-4.8 - g++-4.8
before_install: before_install:
- npm i -g npm@^2.0.0 - npm i -g npm@^3.0.0
before_script: before_script:
- npm prune - npm prune
after_success: after_success:

9
package.json

@ -14,11 +14,12 @@
"lint": "jshint .", "lint": "jshint .",
"start": "node index.js", "start": "node index.js",
"test": "npm run unit", "test": "npm run unit",
"travis": "npm test", "travis": "npm run check-dependencies && npm test",
"unit": "./bin/units", "unit": "./bin/units",
"validate": "npm ls", "validate": "npm ls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post", "semantic-release": "semantic-release pre && npm publish && semantic-release post",
"config": "node -e \"console.log(JSON.stringify(require( 'pelias-config' ).generate(require('./schema')), null, 2))\"" "config": "node -e \"console.log(JSON.stringify(require( 'pelias-config' ).generate(require('./schema')), null, 2))\"",
"check-dependencies": "node_modules/.bin/npm-check --production --ignore pelias-interpolation"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -74,6 +75,7 @@
"difflet": "^1.0.1", "difflet": "^1.0.1",
"istanbul": "^0.4.2", "istanbul": "^0.4.2",
"jshint": "^2.5.6", "jshint": "^2.5.6",
"npm-check": "^5.4.0",
"nsp": "^2.2.0", "nsp": "^2.2.0",
"precommit-hook": "^3.0.0", "precommit-hook": "^3.0.0",
"proxyquire": "^1.7.10", "proxyquire": "^1.7.10",
@ -87,6 +89,7 @@
"pre-commit": [ "pre-commit": [
"lint", "lint",
"validate", "validate",
"test" "test",
"check-dependencies"
] ]
} }

Loading…
Cancel
Save