Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Move linting after build (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Young authored Mar 15, 2017
1 parent bc3bbf4 commit 16fe713
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,7 @@ function errorHandler(err) {
process.exit(1);
}

gulp.task('tslint-src', function () {
return gulp.src(['./src/**/*.ts'])
.pipe(tslint())
.pipe(tslint.report('prose', { emitError: true}))
.on('error', errorHandler);
});

gulp.task('tslint-test', function () {
return gulp.src(['./test/**/*.ts'])
.pipe(tslint())
.pipe(tslint.report('prose', { emitError: true}))
.on('error', errorHandler);
});

gulp.task('tslint-test-integration', function () {
return gulp.src(['./test-integration/**/*.ts'])
.pipe(tslint())
.pipe(tslint.report('prose', { emitError: true}))
.on('error', errorHandler);
});

gulp.task('clean', ['tslint-src', 'tslint-test', 'tslint-test-integration'], function (done) {
gulp.task('clean', function (done) {
return del(['out/**', '!out', '!out/src/credentialstore/linux', '!out/src/credentialstore/osx', '!out/src/credentialstore/win32'], done);
});

Expand All @@ -75,7 +54,14 @@ gulp.task('build', ['copyresources'], function () {
.pipe(gulp.dest('./out'));
});

gulp.task('publishbuild', ['build'], function () {
gulp.task('tslint', ['build'], function () {
return gulp.src(['./src/**/*.ts', './test/**/*.ts', './test-integration/**/*.ts'])
.pipe(tslint())
.pipe(tslint.report('prose', { emitError: true}))
.on('error', errorHandler);
});

gulp.task('publishbuild', ['tslint'], function () {
gulp.src(['./src/credentialstore/**/*.js'])
.pipe(gulp.dest('./out/src/credentialstore'));
gulp.src(['./src/credentialstore/bin/win32/*'])
Expand Down

0 comments on commit 16fe713

Please sign in to comment.