-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-config.js
75 lines (75 loc) · 2.35 KB
/
build-config.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
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
slug: 'siteorigin-north',
jsMinSuffix: '.min',
version: {
src: [
'functions.php',
'readme.txt'
]
},
sass: {
src: [
'sass/**/*.scss',
],
include: [
'sass',
],
external: {
src: [
'inc/settings/css/**/*.scss',
],
include: [
'inc/settings/css'
],
}
},
less: {
src: [],
include: [],
external: {
src: [
'inc/panels-lite/css/**/*.less',
],
include: [
'inc/panels-lite/css',
],
},
},
js: {
src: [
'js/**/*.js',
'inc/settings/js/**/*.js',
'inc/settings/chosen/**/*.js',
'inc/panels-lite/js/*.js',
'!{node_modules,node_modules/**}', // Ignore node_modules/ and contents
'!{tests,tests/**}', // Ignore tests/ and contents
'!{tmp,tmp/**}' // Ignore tmp/ and contents
]
},
css: {
src: [
'style.css',
'woocommerce.css',
'woocommerce-rtl.css',
'woocommerce-smallscreen-rtl.css',
'css/flexslider.css',
'css/north-icons.css',
],
},
copy: {
src: [
'**/!(*.js|*.scss|*.md|style.css|woocommerce.css|woocommerce-rtl.css|woocommerce-smallscreen-rtl.css)', // Everything except .js and .scss files and the output of LESS/CSS tasks
'!{build,build/**}', // Ignore build/ and contents
'!{sass,sass/**}', // Ignore sass/ and contents
'inc/settings/chosen/*.js', // Ensure necessary .js files ignored in the first glob are copied
'!{inc/settings/bin,inc/settings/bin/**}', // Ignore settings/bin/ and contents
'!{inc/settings/README.md}', // Ignore settings/README.md
'!{tests,tests/**}', // Ignore tests/ and contents
'!{tmp,tmp/**}', // Ignore tmp/ and contents
'!phpunit.xml', // Not the unit tests configuration file. (If there is one.)
'!functions.php', // Not the functions .php file. It is copied by the 'version' task.
'!readme.txt', // Not the readme.txt file. It is copied by the 'version' task.
'!npm-debug.log' // Ignore debug log from NPM if it's there
]
}
};