Skip to content

Commit

Permalink
Also write eslint.xml on build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Dec 15, 2016
1 parent 0427301 commit 7c5afaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ node_js:
- "6"
- "5"
- "4"
before_install: npm install -g gulp
before_install: npm install -g gulp
script: gulp travis
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
.pipe(eslint.format());
});

gulp.task("lint:build", function() {
return gulp.src(["*.js", "src/*.js", "test/*.js"])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.format("checkstyle", fs.createWriteStream("eslint.xml")));
});

gulp.task("compress", function() {
gulp.src("src/*.js")
.pipe(rename({
Expand Down Expand Up @@ -79,6 +86,6 @@

gulp.task("all", ["default"]);
gulp.task("test", ["mocha", "mocha-tap", "karma"]);
gulp.task("default", ["bower", "lint", "compress", "test"]);
gulp.task("default", ["bower", "lint", "lint:build", "compress", "test"]);
gulp.task("travis", ["default"]);
}());

0 comments on commit 7c5afaf

Please sign in to comment.