forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
44 lines (37 loc) · 881 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
44
const gulp = require('gulp')
const del = require('del')
require('./tasks/webpack')
require('./tasks/ts-types')
require('./tasks/minify')
require('./tasks/archive')
require('./tasks/test')
require('./tasks/lint')
require('./tasks/bump')
// when running just `gulp`
gulp.task('default', [ 'dist' ])
// everything needed for running demos and developing
gulp.task('dev', [
'webpack:dev',
'ts-types'
])
// watch anything that needs to be built
gulp.task('watch', [
'webpack:watch',
'ts-types:watch'
])
// generates all files that end up in package manager release
gulp.task('dist', [
'webpack',
'ts-types',
'minify'
])
// like dist, but runs tests and linting, and generates archive
gulp.task('release', [
'lint',
'dist',
'archive',
'test:single' // headless, single run
])
gulp.task('clean', function() {
return del([ 'dist/', 'tmp/', '.awcache/' ])
})