From 6effbfe92d1445f73a879c13e551bf814446ed86 Mon Sep 17 00:00:00 2001 From: Simon Boudrias Date: Tue, 12 Sep 2017 21:33:18 +0800 Subject: [PATCH] Use raw nsp --- gulpfile.js | 6 ------ package.json | 7 ++++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 5d9bffc5..5dbd4226 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -3,14 +3,9 @@ const path = require('path'); const gulp = require('gulp'); const mocha = require('gulp-mocha'); const istanbul = require('gulp-istanbul'); -const nsp = require('gulp-nsp'); const plumber = require('gulp-plumber'); const coveralls = require('gulp-coveralls'); -gulp.task('nsp', cb => { - nsp({package: path.resolve('package.json')}, cb); -}); - gulp.task('pre-test', () => gulp.src([ 'lib/**/*.js' @@ -43,5 +38,4 @@ gulp.task('coveralls', ['test'], () => { .pipe(coveralls()); }); -gulp.task('prepublish', ['nsp']); gulp.task('default', ['test', 'coveralls']); diff --git a/package.json b/package.json index 0e907636..49b5af68 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,10 @@ "node": ">=4" }, "scripts": { - "test": "xo && gulp", + "pretest": "xo", + "test": "gulp", "doc": "jsdoc -c jsdoc.json", - "prepublish": "gulp prepublish" + "prepublish": "nsp check" }, "files": [ "lib" @@ -63,12 +64,12 @@ "gulp-coveralls": "^0.1.0", "gulp-istanbul": "^1.0.0", "gulp-mocha": "^3.0.1", - "gulp-nsp": "^2.1.0", "gulp-plumber": "^1.0.0", "inquirer": "^3.0.1", "jsdoc": "^3.3.0-beta1", "mockery": "^2.0.0", "nock": "^9.0.5", + "nsp": "^2.8.0", "proxyquire": "^1.0.0", "sinon": "^2.1.0", "tui-jsdoc-template": "^1.0.4",