forked from purothemes/polestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-config.js
61 lines (61 loc) · 2.36 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
module.exports = {
slug: 'polestar',
jsMinSuffix: '.min',
version: {
src: [
'functions.php',
'readme.txt'
]
},
sass: {
src: [
'sass/**/*.scss',
],
include: [
'sass',
],
external: {
src: [
'inc/extras/css/*.scss'
],
include: [
'inc/extras/css'
],
}
},
js: {
src: [
'js/**/*.js',
'woocommerce/js/**/*.js',
'inc/*/js/**/*.js',
'!inc/customizer-library/js/**', // Ignore inc/customizer-library/js/ contents.
'!{node_modules,node_modules/**}', // Ignore node_modules/ and contents.
'!{tmp,tmp/**}' // Ignore tmp/ and contents.
]
},
css: {
src: [
'style.css',
'style-editor.css',
'woocommerce.css',
'css/polestar-icons.css',
],
},
copy: {
src: [
'**/!(*.js|*.scss|*.md|style.css|woocommerce.css)', // Everything except .js and .scss files.
'inc/customizer-library/js/**', // Add the unminified inc/customizer-library/js/ contents.
'!{build,build/**}', // Ignore build/ and contents.
'!{sass,sass/**}', // Ignore sass/ and contents.
'!{tmp,tmp/**}', // Ignore tmp/ and contents.
'!config.codekit3', // Not the CodeKit file. (If there is one.)
'!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
]
},
googleFonts: {
dest: 'inc/customizer-library/extensions/data/fonts.php',
}
};