Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix .ts files being copied to the build dir (#325)
Browse files Browse the repository at this point in the history
Before this change, running `gulp` would incorrectly copy `.ts`
test files to the `build/test` directory.
  • Loading branch information
DominicKramer committed Aug 23, 2017
1 parent b58b2f7 commit 17be882
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const tslintPath = path.join(__dirname, 'tslint.json');
const outDir = 'build';
const sources = ['src/**/*.ts'];
const unitTests = ['test/**/*.ts'];
const unitTestsSupportFiles = ['test/**/*', '!test/**/*.ts'];
const systemTests = ['system-test/**/*.ts'];
const systemTestsSupportFiles = ['system-test/**/*', '!system-test/**/*.ts'];
const allFiles = sources.concat(unitTests).concat(systemTests);

let exitOnError = true;
Expand Down Expand Up @@ -88,7 +90,7 @@ gulp.task('compile', () => {
});

gulp.task('test.system.copy', () => {
return gulp.src(['system-test/**/*'])
return gulp.src(systemTestsSupportFiles)
.pipe(gulp.dest(`${outDir}/system-test`));
});

Expand All @@ -112,7 +114,7 @@ gulp.task('test.packagejson.copy', () => {
});

gulp.task('test.unit.copy', () => {
return gulp.src(['test/**/*'])
return gulp.src(unitTestsSupportFiles)
.pipe(gulp.dest(`${outDir}/test`));
});

Expand Down

0 comments on commit 17be882

Please sign in to comment.