-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathbuild-config.js
More file actions
106 lines (104 loc) · 4.44 KB
/
build-config.js
File metadata and controls
106 lines (104 loc) · 4.44 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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: [
// Use restrictive positive patterns instead of broad match + exclusions.
// This fixes Gulp 5 exclusion pattern bug where !build/** is ignored.
// Root level files (excluding those handled by version task).
'changelog.txt',
'wpml-config.xml',
// Directory-based patterns.
'admin/**/!(*.js|*.less|*.css)',
'base/**/!(*.js|*.less|*.css)',
'compat/**/!(*.js|*.less|*.css)',
'css/**/!(*.js|*.less|*.css)',
'icons/**/!(*.js|*.less|*.css)',
'js/**/!(*.js|*.less|*.css)',
'widgets/**/!(*.js|*.less|*.css)',
'css/*.css', // Copy static root CSS assets.
'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', // Widget LESS libraries.
'base/inc/installer/css/*css', // Include Installer CSS.
'widgets/**/styles/*.less', // All the widgets' runtime .less files.
'!{build,build/**}', // Ignore build/ and contents
'!{node_modules,node_modules/**}', // Ignore node_modules/ and contents.
'!{tests,tests/**}', // Ignore tests/ and contents.
'!{tmp,tmp/**}', // Ignore tmp/ and contents
'!playwright.config.js', // Exclude playwright config file.
'!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.
'!{package.json,package-lock.json}', // Exclude node package files.
]
},
pot: {
src: [
'**/*.php', // All the PHP files.
'!tmp/**/*.php', // Ignore tmp/ and contents.
'!dist/**/*.php' // Ignore dist/ and contents.
],
textdomain: 'so-widgets-bundle',
destFile: 'so-widgets-bundle.pot',
package: 'SiteOrigin Widgets Bundle',
bugReport: 'http://www.siteorigin.com/thread',
lastTranslator: 'SiteOrigin <support@siteorigin.com>',
team: 'SiteOrigin <support@siteorigin.com>'
},
googleFonts: {
dest: 'base/inc/fonts.php',
},
fontAwesome: {
base: 'icons/fontawesome/',
version: '6.7.2',
css: {
dest: 'icons/fontawesome/'
},
fonts: {
dest: 'icons/fontawesome/webfonts/'
}
}
};