[Build] Normalize reporting for QA tasks

https://developer.nasa.gov/ResourceProspector/warp/issues/191
This commit is contained in:
Victor Woeltjen
2016-07-21 12:07:28 -07:00
parent 14f1a1f740
commit 41156cec7c
3 changed files with 9 additions and 3 deletions

View File

@ -42,6 +42,7 @@ var gulp = require('gulp'),
main: 'main.js',
dist: 'dist',
assets: 'dist/assets',
reports: 'dist/reports',
scss: ['./platform/**/*.scss', './example/**/*.scss'],
scripts: [ 'main.js', 'platform/**/*.js', 'src/**/*.js' ],
specs: [ 'platform/**/*Spec.js', 'src/**/*Spec.js' ],
@ -112,6 +113,10 @@ gulp.task('lint', function () {
.pipe(jshint({ jasmine: true }));
return merge(scriptLint, specLint)
.pipe(jshint.reporter('gulp-jshint-html-reporter', {
filename: paths.reports + '/lint/jshint-report.html',
createMissingFolders : true
}))
.pipe(jshint.reporter('default'))
.pipe(jshint.reporter('fail'));
});