forked from spacemandev-git/fvtt-card-support
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.ts
26 lines (23 loc) · 946 Bytes
/
gulpfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const gulp = require('gulp');
const ts = require('gulp-typescript');
const project = ts.createProject('tsconfig.json')
gulp.task('compile', () => {
return gulp.src('src/**/*.ts')
.pipe(project())
.pipe(gulp.dest('dist/'))
})
gulp.task('copy', async () => {
return new Promise((resolve,reject)=>{
gulp.src('README.md').pipe(gulp.dest('dist/'))
gulp.src('src/module.json').pipe(gulp.dest('dist/'))
gulp.src('src/assets/**').pipe(gulp.dest('dist/assets/'))
gulp.src('src/templates/**').pipe(gulp.dest('dist/templates/'))
gulp.src('src/sample/**').pipe(gulp.dest('dist/sample/'))
gulp.src('src/styles/**').pipe(gulp.dest('dist/styles/'))
gulp.src('src/lang/**/*.json').pipe(gulp.dest('dist/lang/'))
gulp.src('src/lib/**/*.js').pipe(gulp.dest('dist/lib/'))
gulp.src('src/cardhotbar/**').pipe(gulp.dest('dist/cardhotbar/'))
resolve();
})
})
gulp.task('build', gulp.parallel('compile', 'copy'));