-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbldr.config.js
More file actions
71 lines (64 loc) · 1.48 KB
/
bldr.config.js
File metadata and controls
71 lines (64 loc) · 1.48 KB
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
65
66
67
68
69
70
71
import { bldrConfig } from '@bluecadet/bldr/config';
/**
* Config vars for standard builds
*/
let full_css_config = [];
let full_js_config = [];
let full_sdc_config = {
directory: [
// './web/themes/custom/uva/components',
// './web/modules/custom/uva_utility/components',
],
assetSubDirectory: 'assets',
};
let drupal_modules = [
'./web/themes/custom/pai',
'./web/themes/custom/pai_admin',
'./web/modules/custom/img_processor',
'./web/modules/custom/pai_admin_mod',
'./web/modules/custom/pai_quick_edit',
'./web/modules/custom/pai_redirect',
'./web/modules/custom/pai_utility',
];
let watch_paths = [];
drupal_modules.forEach((val, i) => {
full_css_config.push({
src: val + '/assets/src/css/**/*.css',
dest: val + '/assets/dist/css',
watch: [val + '/assets/src/css/**/*.css'],
});
full_js_config.push({
src: val + '/assets/src/js/**/*.js',
dest: val + '/assets/dist/js',
watch: [val + '/assets/src/js/**/*.js'],
});
watch_paths.push(val);
});
export default bldrConfig({
css: full_css_config,
js: full_js_config,
sdc: full_sdc_config,
watchPaths: watch_paths,
eslint: {
useEslint: false,
options: {},
forceBuildIfError: true,
},
stylelint: {
useStyleLint: true,
forceBuildIfError: true,
},
rollup: {
useRollup: true,
useTerser: false,
sdcOptions: {
bundle: true,
minify: false,
format: 'es'
},
},
browsersync: {
disable: true,
instanceName: null,
},
});