forked from JudeHu/maptalks.TextPath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (26 loc) · 846 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
const gulp = require('gulp'),
pkg = require('./package.json'),
BundleHelper = require('maptalks-build-helpers').BundleHelper;
const bundleHelper = new BundleHelper(pkg);
gulp.task('build', () => {
return bundleHelper.bundle('index.js');
});
gulp.task('minify', ['build'], () => {
bundleHelper.minify();
});
gulp.task('watch', ['build'], () => {
gulp.watch(['index.js', './gulpfile.js'], ['build']);
});
/*
const TestHelper = require('maptalks-build-helpers').TestHelper;
const testHelper = new TestHelper();
const karmaConfig = require('./karma.config.js');
gulp.task('test', ['build'], () => {
testHelper.test(karmaConfig);
});
gulp.task('tdd', ['build'], () => {
karmaConfig.singleRun = false;
gulp.watch(['index.js'], ['test']);
testHelper.test(karmaConfig);
}); */
gulp.task('default', ['watch']);