Skip to content

Commit da47374

Browse files
committed
build(jshint): save store temp compiled file
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
1 parent 6ce0741 commit da47374

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/bower_components
22
/node_modules
3+
/temp
34
/.idea
45
/.tmp
56
.DS_Store

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ gulp.task('watch', ['build','karma-watch'], function() {
2828
});
2929

3030
gulp.task('clean', function(cb) {
31-
del(['dist'], cb);
31+
del(['dist', 'temp'], cb);
3232
});
3333

3434
gulp.task('scripts', ['clean'], function() {
@@ -51,6 +51,7 @@ gulp.task('scripts', ['clean'], function() {
5151
.pipe($.concat('select_without_templates.js'))
5252
.pipe($.header('(function () { \n"use strict";\n'))
5353
.pipe($.footer('\n}());'))
54+
.pipe(gulp.dest('temp'))
5455
.pipe($.jshint())
5556
.pipe($.jshint.reporter('jshint-stylish'))
5657
.pipe($.jshint.reporter('fail'));

0 commit comments

Comments
 (0)