Skip to content

Commit 603705e

Browse files
authored
update gulpfile to include json into dist
updated the gulp file so that it brings in the json data into the dist.
1 parent 7464840 commit 603705e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gulpfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const gulp = require('gulp');
22
const ts = require('gulp-typescript');
3+
const JSON_FILES = ['src/*.json', 'src/**/*.json'];
34

45
// pull in the project TypeScript config
56
const tsProject = ts.createProject('tsconfig.json');
@@ -14,4 +15,9 @@ gulp.task('watch', ['scripts'], () => {
1415
gulp.watch('src/**/*.ts', ['scripts']);
1516
});
1617

17-
gulp.task('default', ['watch']);
18+
gulp.task('assets', function() {
19+
return gulp.src(JSON_FILES)
20+
.pipe(gulp.dest('dist'));
21+
});
22+
23+
gulp.task('default', ['watch', 'assets']);

0 commit comments

Comments
 (0)