-
Notifications
You must be signed in to change notification settings - Fork 64
/
build-config.js
74 lines (74 loc) · 2.94 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
module.exports = {
slug: 'so-widgets-bundle',
jsMinSuffix: '.min',
version: {
src: [
'so-widgets-bundle.php',
'readme.txt'
]
},
less: {
src: [
'admin/**/*.less',
'base/**/*.less',
'css/**/*.less',
'widgets/**/*.less',
'compat/**/*.less',
'!base/less/*.less',
'!base/inc/widgets/less/*.less',
'!widgets/**/styles/*.less'
],
include:[]
},
sass: {
src: [],
include:[]
},
js: {
src: [
'admin/**/*.js',
'base/**/*.js',
'compat/**/*.js',
'js/**/*.js',
'widgets/**/*.js',
'!{node_modules,node_modules/**}', // Ignore node_modules/ and contents
'!{tmp,tmp/**}', // Ignore dist/ and contents
'!**/**/*.min.js' // Ignore already minified files.
]
},
bust : {
src: []
},
copy: {
src: [
'**/!(*.js|*.less|*.css)', // Everything except .js, .css and .less files
'icons/**/*css', // Copy CSS for icon packs.
'js/lib/**/*css', // Copy CSS for JS libs.
'css/lib/**/*css', // Copy CSS for JS libs.
'base/less/*.less', // LESS libraries used in runtime styles
'base/inc/widgets/less/*.less',
'base/inc/installer/css/*css', // Include Installer CSS.
'widgets/**/styles/*.less', // All the widgets' runtime .less files
'!{build,build/**}', // Ignore build/ and contents
'!{tmp,tmp/**}', // Ignore tmp/ and contents
'!so-widgets-bundle.php', // Not the base plugin file. It is copied by the 'version' task.
'!readme.txt', // Not the readme.txt file. It is copied by the 'version' task.
'!readme.md', // Ignore the readme.md file. It is for the github repo.
'!.editorconfig', // Ignore .editorconfig file. Only for development.
'!base/inc/installer/inc/github-plugin-updater.php', // Exclude Installer's Updater.
]
},
i18n: {
src: [
'**/*.php', // All the PHP files.
'!tmp/**/*.php', // Ignore tmp/ and contents
'!dist/**/*.php' // Ignore dist/ and contents
],
},
googleFonts: {
dest: 'base/inc/fonts.php',
},
fontAwesome: {
base: 'icons/fontawesome/',
}
};