Skip to content

Commit 6effbfe

Browse files
committed
Use raw nsp
1 parent 183b3a8 commit 6effbfe

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

gulpfile.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ const path = require('path');
33
const gulp = require('gulp');
44
const mocha = require('gulp-mocha');
55
const istanbul = require('gulp-istanbul');
6-
const nsp = require('gulp-nsp');
76
const plumber = require('gulp-plumber');
87
const coveralls = require('gulp-coveralls');
98

10-
gulp.task('nsp', cb => {
11-
nsp({package: path.resolve('package.json')}, cb);
12-
});
13-
149
gulp.task('pre-test', () =>
1510
gulp.src([
1611
'lib/**/*.js'
@@ -43,5 +38,4 @@ gulp.task('coveralls', ['test'], () => {
4338
.pipe(coveralls());
4439
});
4540

46-
gulp.task('prepublish', ['nsp']);
4741
gulp.task('default', ['test', 'coveralls']);

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
"node": ">=4"
1212
},
1313
"scripts": {
14-
"test": "xo && gulp",
14+
"pretest": "xo",
15+
"test": "gulp",
1516
"doc": "jsdoc -c jsdoc.json",
16-
"prepublish": "gulp prepublish"
17+
"prepublish": "nsp check"
1718
},
1819
"files": [
1920
"lib"
@@ -63,12 +64,12 @@
6364
"gulp-coveralls": "^0.1.0",
6465
"gulp-istanbul": "^1.0.0",
6566
"gulp-mocha": "^3.0.1",
66-
"gulp-nsp": "^2.1.0",
6767
"gulp-plumber": "^1.0.0",
6868
"inquirer": "^3.0.1",
6969
"jsdoc": "^3.3.0-beta1",
7070
"mockery": "^2.0.0",
7171
"nock": "^9.0.5",
72+
"nsp": "^2.8.0",
7273
"proxyquire": "^1.0.0",
7374
"sinon": "^2.1.0",
7475
"tui-jsdoc-template": "^1.0.4",

0 commit comments

Comments
 (0)