forked from FOSSBilling/FOSSBilling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.babel.js
More file actions
33 lines (26 loc) · 816 Bytes
/
gulpfile.babel.js
File metadata and controls
33 lines (26 loc) · 816 Bytes
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
'use strict';
import gulp from 'gulp';
import chug from 'gulp-chug';
import yargs from 'yargs';
const { argv } = yargs
.options({
nodeModulesPath: {
'description': '<path> path to node_modules directory',
type: 'string',
requiresArgs: true,
required: false,
}
});
const config = [
'--node-modules-path',
argv.nodeModulesPath || '../../../node_modules',
];
export const buildThemeAdmin = function buildThemeAdmin() {
return gulp.src('src/bb-themes/admin_default/gulpfile.babel.js', { read: false })
.pipe(chug({ args: config, tasks: 'build' }));
}
buildThemeAdmin.description = 'Build theme Admin assets.';
export const build = gulp.parallel(buildThemeAdmin);
build.description = 'Build assets.';
gulp.task('admin_default', buildThemeAdmin);
export default build;