Skip to content

Commit

Permalink
Modified lint command to accept multiple arguments (#537)
Browse files Browse the repository at this point in the history
This change fixes the lint command apply to client/ directory as well.

ISSUE=#533
  • Loading branch information
sapzape authored and romandev committed Nov 22, 2017
1 parent ad5d57d commit 7937ac6
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,48 @@ gulp.task('default', (callback) => {

gulp.task('lint', () => {
gulp.src('./server/**/*.ts')
.pipe(tslint({
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
.pipe(tslint({
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
});

gulp.task('lint:fix', () => {
gulp.src('./server/**/*.ts')
.pipe(tslint({
fix: true,
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
.pipe(tslint({
fix: true,
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
});

// FIXME(sapzape): Temporarily separated until the lint error in the client area
// is resolved. Please see https://github.com/lunchclass/absolute/issues/533
gulp.task('lint_client', () => {
gulp.src('./client/**/*.ts')
.pipe(tslint({
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
});

// FIXME(sapzape): Temporarily separated until the lint error in the client area
// is resolved. Please see https://github.com/lunchclass/absolute/issues/533
gulp.task('lint_client:fix', () => {
gulp.src('./client/**/*.ts')
.pipe(tslint({
fix: true,
formatter: 'codeFrame'
}))
.pipe(tslint.report({
summarizeFailureOutput: true
}));
});

gulp.task('test', ['webpack'], runCommand('jest'));
Expand Down

0 comments on commit 7937ac6

Please sign in to comment.