forked from themeblvd/jumpstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
64 lines (56 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const { task, series, parallel } = require('gulp');
const { clean } = require('./build/tasks/clean');
const { buildPot } = require('./build/tasks/build-pot');
const { copyTheme, zipTheme } = require('./build/tasks/build-theme');
const {
buildFontAwesomeShim,
buildFontAwesomeJson,
buildFontAwesomeJs
} = require('./build/tasks/fontawesome');
const {
buildAdminScripts,
minifyAdminScripts,
buildAdminStyles
} = require('./build/tasks/admin-assets');
// Build Font Awesome assets.
task('build-fontawesome-shim', buildFontAwesomeShim);
task('build-fontawesome-json', buildFontAwesomeJson);
task('build-fontawesome-js', buildFontAwesomeJs);
task(
'build-fontawesome',
series(
'build-fontawesome-shim',
'build-fontawesome-json',
'build-fontawesome-js'
)
);
// Build admin assets.
task('build-admin-script-options', () => buildAdminScripts('options.js'));
task('build-admin-script-utils', () => buildAdminScripts('utils.js'));
task('minify-admin-scripts', minifyAdminScripts);
task('build-admin-styles', buildAdminStyles);
task(
'build-admin',
parallel(
'build-admin-script-options',
'build-admin-script-utils',
'minify-admin-scripts',
'build-admin-styles'
)
);
// Final build.
task('clean', clean);
task('build-pot', buildPot);
task('copy-theme', copyTheme);
// task('clean-copied-theme', cleanCopiedTheme);
task('zip-theme', zipTheme);
task(
'build',
series(
'clean',
parallel('build-fontawesome', 'build-admin', 'build-pot'),
'copy-theme',
// 'clean-copied-theme',
'zip-theme'
)
);