-
Notifications
You must be signed in to change notification settings - Fork 487
/
Copy pathgulpfile.js
46 lines (36 loc) · 947 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
var path = require('path');
var gulp = require('gulp-help')(require('gulp'));
var plugins = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var _ = require('./lib/lodash_utils');
var BOOTSTRAP_VAR_FILE = path.join('src','scss', 'bootstrap', '_variables.scss');
var BOOTSTRAP_VAR_DIR = path.dirname(BOOTSTRAP_VAR_FILE);
var config = {
BOOTSTRAP_VAR_FILE: BOOTSTRAP_VAR_FILE,
BOOTSTRAP_VAR_DIR: BOOTSTRAP_VAR_DIR,
SRC_GLOB: 'src/**/*'
};
var tasks = require('require-dir')('./tasks');
_.invoke(tasks, 'call', tasks, gulp, plugins, _, config);
gulp.task('default', ['build']);
gulp.task('build', function(cb) {
runSequence(
'build:patch-bootstrap',
'build:metalsmith',
'build:clean-bootstrap-patch',
cb
);
});
gulp.task(
'release',
function(cb) {
runSequence(
'build:patch-bootstrap',
'release:clean',
'release:build',
'release:zip',
'build:clean-bootstrap-patch',
cb
);
}
);