Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
build(jshint): save store temp compiled file
Browse files Browse the repository at this point in the history
Previously if jshint failed the compiled file was also lost resulting
in difficulty determining exact line numbers causing errors.

Now saves the file to gitignore-d directory ./temp
  • Loading branch information
user378230 committed Jul 9, 2016
1 parent 6ce0741 commit da47374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/bower_components
/node_modules
/temp
/.idea
/.tmp
.DS_Store
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gulp.task('watch', ['build','karma-watch'], function() {
});

gulp.task('clean', function(cb) {
del(['dist'], cb);
del(['dist', 'temp'], cb);
});

gulp.task('scripts', ['clean'], function() {
Expand All @@ -51,6 +51,7 @@ gulp.task('scripts', ['clean'], function() {
.pipe($.concat('select_without_templates.js'))
.pipe($.header('(function () { \n"use strict";\n'))
.pipe($.footer('\n}());'))
.pipe(gulp.dest('temp'))
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'))
.pipe($.jshint.reporter('fail'));
Expand Down

0 comments on commit da47374

Please sign in to comment.