-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
27 lines (26 loc) · 862 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
'use strict';
/* eslint-disable no-console */
try {
var gulp = require('gulp-help')(require('gulp'));
var $ = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var requireDir = require('require-dir');
requireDir('./gulp-tasks');
} catch (e) {
console.log(e.toString());
console.log('>>>> Failed to require dependency modules');
console.log('>>>> Please try "npm install"');
process.exit(1);
}
// Run tasks: clean, lint, build, docs, watch, server
gulp.task('default', function (cb) {
$.util.log(
'Building the library and documentation, and watching for changes in files...'
);
runSequence('clean', 'lint', 'build', 'mini', 'docs', 'watch', 'server', function () {
cb();
$.util.log(
$.util.colors.green('All set! Please run "gulp help" to see all build command usages.'), '\n'
);
});
});