forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
51 lines (44 loc) · 951 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
45
46
47
48
49
50
51
var gulp = require('gulp');
var del = require('del');
require('./tasks/modules');
require('./tasks/minify');
require('./tasks/archive');
require('./tasks/locale');
require('./tasks/test');
require('./tasks/lint');
require('./tasks/bump');
// when running just `gulp`
gulp.task('default', [ 'dist' ]);
gulp.task('clean', [
'modules:clean',
'locale:clean',
'minify:clean',
'archive:clean'
], function() {
return del([ // kill these directories, and anything leftover in them
'dist/',
'tmp/'
]);
});
gulp.task('watch', [
'modules:watch',
'locale:watch'
]);
// everything needed for running demos and developing
gulp.task('dev', [
'modules',
'locale'
]);
// generates all files that end up in package manager release
gulp.task('dist', [
'modules',
'locale',
'minify'
]);
// like dist, but runs tests and linting, and generates archive
gulp.task('release', [
'lint',
'dist',
'archive',
'test:single' // headless, single run
]);