Skip to content

Commit

Permalink
Merge a5f93e8 into 7a930e2
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeperio-bot committed Dec 10, 2015
2 parents 7a930e2 + a5f93e8 commit f5f9db4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"parser": "babel-eslint",
"extends": "dustinspecker/esnext"
}
20 changes: 10 additions & 10 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ const srcFiles = 'src/*.js'

gulp.task('clean', () => del(destDir));

gulp.task('lint', () => {
return gulp.src([srcFiles, testFiles])
gulp.task('lint', () =>
gulp.src(['gulpfile.babel.js', srcFiles, testFiles])
.pipe(eslint())
.pipe(eslint.formatEach('./node_modules/eslint-path-formatter'))
.pipe(eslint.failOnError())
.pipe(jscs())
.pipe(jscs.reporter('fail'))
.pipe(jscs.reporter())
.pipe(jshint());
});
.pipe(jshint())
);

gulp.task('compile', ['clean', 'lint'], () => {
return gulp.src(srcFiles)
gulp.task('compile', ['clean', 'lint'], () =>
gulp.src(srcFiles)
.pipe(babel())
.pipe(gulp.dest(destDir));
});
.pipe(gulp.dest(destDir))
);

gulp.task('test', ['compile'], (cb) => {
gulp.src([destDir + '*.js'])
gulp.task('test', ['compile'], cb => {
gulp.src([`${destDir}*.js`])
.pipe(istanbul())
.pipe(istanbul.hookRequire())
.on('finish', () => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
"dependencies": {},
"devDependencies": {
"babel-core": "^6.0.12",
"babel-eslint": "^5.0.0-beta6",
"babel-preset-es2015": "^6.0.12",
"coveralls": "^2.11.1",
"del": "^2.0.2",
"eslint-config-dustinspecker": "^0.1.0",
"eslint-config-dustinspecker": "^0.2.5",
"eslint-path-formatter": "^0.1.1",
"eslint-plugin-new-with-error": "^1.1.0",
"eslint-plugin-no-use-extend-native": "^0.3.1",
Expand Down

0 comments on commit f5f9db4

Please sign in to comment.