forked from Netcentric/fe-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.febuild
More file actions
41 lines (39 loc) · 1.08 KB
/
Copy path.febuild
File metadata and controls
41 lines (39 loc) · 1.08 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
const path = require('path');
module.exports = function (defaultConfig) {
const rootPath = __dirname;
const sourcesPath = path.join(rootPath, 'src');
const common = path.join(sourcesPath, 'common');
const includePaths = [path.join(common, 'styles'), defaultConfig.general.nodeModules];
return {
general: {
projectKey: 'febuild',
rootPath,
sourcesPath,
destinationPath: path.join(rootPath, 'dist'),
common,
sourceKey: 'src',
bundleKey: 'dist'
},
sass: {
includePaths
},
resolve: {
alias: {
common
}
},
clientlibs: {
override: true,
skipCategories: ['febuild.author']
},
templates: {
clientlibTemplate: (category, prefix) => `<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
allowProxy="{Boolean}true"
categories="[${prefix}.${category}]"
cssProcessor="[default:none, min:none]"
jsProcessor="[default:none, min:none]" />`
}
};
}