Skip to content

Commit 7f5b9cc

Browse files
author
Philipp Alferov
committed
Integrate gulp
1 parent 0f5a87d commit 7f5b9cc

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ root: true
22

33
env:
44
node: true
5+
es6: true
6+
7+
ecmaFeatures:
8+
modules: true
59

610
extends:
711
"eslint:recommended"

gulpfile.babel.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import gulp from 'gulp';
2+
import mocha from 'gulp-mocha';
3+
4+
const src = './index.js';
5+
6+
gulp.task('test', () => {
7+
return gulp.src('test.js', { read: false })
8+
.pipe(mocha({ reporter: 'nyan' }));
9+
});
10+
11+
gulp.task('watch', () => {
12+
gulp.watch(src, ['test']);
13+
});
14+
15+
gulp.task('default', ['watch']);

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"tree"
1515
],
1616
"devDependencies": {
17+
"babel-core": "^5.8.24",
1718
"eslint": "^1.4.1",
19+
"gulp": "^3.9.0",
20+
"gulp-mocha": "^2.1.3",
1821
"mocha": "^2.3.0"
1922
},
2023
"author": "Philipp Alferov <philipp.alferov@gmail.com>",

0 commit comments

Comments
 (0)