From a84c2e8784fd099a76572017c80160dd3a00c89f Mon Sep 17 00:00:00 2001 From: Philipp Alferov Date: Fri, 2 Oct 2015 22:04:36 -0400 Subject: [PATCH] Use 'npm run' instead of 'gulp' --- gulpfile.babel.js | 18 ------------------ package.json | 6 ++---- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 gulpfile.babel.js diff --git a/gulpfile.babel.js b/gulpfile.babel.js deleted file mode 100644 index 52d8aac..0000000 --- a/gulpfile.babel.js +++ /dev/null @@ -1,18 +0,0 @@ -import gulp from 'gulp'; -import mocha from 'gulp-mocha'; - -const config = { - src: './index.js', - test: './test/**/*.js' -}; - -gulp.task('test', () => { - return gulp.src(config.test, { read: false }) - .pipe(mocha({ reporter: 'nyan' })); -}); - -gulp.task('watch', () => { - gulp.watch([config.src, config.test], ['test']); -}); - -gulp.task('default', ['watch']); diff --git a/package.json b/package.json index f0835c5..2f4e914 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Convert a plain array of nodes (with pointers to parent nodes) to a tree", "main": "index.js", "scripts": { - "test": "mocha" + "test": "mocha --reporter nyan", + "tdd": "npm test -- --watch" }, "repository": "alferov/array-to-tree", "keywords": [ @@ -17,11 +18,8 @@ "nested" ], "devDependencies": { - "babel-core": "^5.8.24", "chai": "^3.2.0", "eslint": "^1.4.1", - "gulp": "^3.9.0", - "gulp-mocha": "^2.1.3", "mocha": "^2.3.0" }, "author": {