forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
49 lines (41 loc) · 1.04 KB
/
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
45
46
47
48
49
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')
require('./tasks/example-repos')
// 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', [
'example-repos:build',
'lint',
'dist',
'archive',
'test:single' // headless, single run
])
// group these somewhat unrelated tasks together for CI
gulp.task('lint-and-example-repos', [ 'lint', 'example-repos:build' ])
gulp.task('clean', function() {
return del([ 'dist/', 'tmp/', '.awcache/' ])
})