mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
[Build] Move report to correct location
This commit is contained in:
parent
3dc8bc87fc
commit
2991e9894d
10
gulpfile.js
10
gulpfile.js
@ -126,12 +126,18 @@ gulp.task('lint', function () {
|
||||
|
||||
gulp.task('checkstyle', function () {
|
||||
var jscs = require('gulp-jscs');
|
||||
var mkdirp = require('mkdirp');
|
||||
var reportName = 'jscs-html-report.html';
|
||||
var reportPath = path.resolve(paths.reports, 'checkstyle', reportName);
|
||||
var moveReport = fs.rename.bind(fs, reportName, reportPath, _.noop);
|
||||
|
||||
mkdirp.sync(path.resolve(paths.reports, 'checkstyle'));
|
||||
|
||||
return gulp.src(paths.scripts)
|
||||
.pipe(jscs())
|
||||
.pipe(jscs.reporter())
|
||||
.pipe(jscs.reporter('jscs-html-reporter'))
|
||||
.pipe(jscs.reporter('fail'));
|
||||
.pipe(jscs.reporter('jscs-html-reporter')).on('finish', moveReport)
|
||||
.pipe(jscs.reporter('fail'))
|
||||
});
|
||||
|
||||
gulp.task('fixstyle', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user