mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 06:54:01 +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 () {
|
gulp.task('checkstyle', function () {
|
||||||
var jscs = require('gulp-jscs');
|
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)
|
return gulp.src(paths.scripts)
|
||||||
.pipe(jscs())
|
.pipe(jscs())
|
||||||
.pipe(jscs.reporter())
|
.pipe(jscs.reporter())
|
||||||
.pipe(jscs.reporter('jscs-html-reporter'))
|
.pipe(jscs.reporter('jscs-html-reporter')).on('finish', moveReport)
|
||||||
.pipe(jscs.reporter('fail'));
|
.pipe(jscs.reporter('fail'))
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('fixstyle', function () {
|
gulp.task('fixstyle', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user