-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
43 lines (40 loc) · 963 Bytes
/
gulpfile.js
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var gulp = require('gulp');
var ts = require('gulp-typescript');
var del = require('del');
gulp.task('default', () =>
{
del.sync(['./bin/**/*.*']);
gulp.src('./src/**/*.ts')
.pipe(ts({
noImplicitAny: true,
outDir: 'bin',
target: 'ES6',
module: 'commonjs',
moduleResolution: 'node'
}))
.pipe(gulp.dest('bin/'));
gulp.src('./src/config.json')
.pipe(gulp.dest('bin/'));
});
gulp.task('package', (done) =>
{
gulp.src('src/**/*ts')
.pipe(ts({
noImplicitAny: true,
outDir: 'bin',
target: 'ES6',
module: 'commonjs',
moduleResolution: 'node'
}))
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager/bin'));
gulp.src('src/**/*.json')
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager/bin'));
gulp.src(['package.json', '*.md'])
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager'));
done();
});
gulp.task('clean-package', (done) =>
{
del.sync(['pkg/yamdbf-addon-dm-manager/bin/**', '!pkg/yamdbf-addon-dm-manager/bin']);
done();
});