-
Notifications
You must be signed in to change notification settings - Fork 10
/
build-config.js
62 lines (62 loc) · 2.32 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
module.exports = {
slug: 'so-css',
jsMinSuffix: '.min',
version: {
src: [
'so-css.php',
'readme.txt'
]
},
less: {
src:['css/**/*.less'],
include:[]
},
sass: {
src: [],
include:[]
},
js: {
src: [
'js/**/*.js',
'lib/**/*.js',
'!js/main.js', // Ignore main.js used to compile css.js
'!{build,build/**}', // Ignore build/ and contents
'!{tmp,tmp/**}' // Ignore dist/ and contents
]
},
browserify : {
src: 'js/main.js',
dest: 'js/',
fileName: 'css.js',
watchFiles: [
'js/**',
]
},
bust: {
src: []
},
copy: {
src: [
'**/!(*.js|*.less)', // Everything except .js and .less files
'lib/**/*.*', // libraries used at runtime
'!{node_modules,node_modules/**}', // Ignore build/ and contents
'!{build,build/**}', // Ignore build/ and contents
'!{tmp,tmp/**}', // Ignore tmp/ and contents
'!{dist,dist/**}', // Ignore dist/ and contents
'!so-css.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.
'!package.json', // Not the package.json file.
'!package-lock.json', // Not the package-lock.json file.
'inc/installer/css/*css', // Include Installer CSS.
'inc/installer/js/*js', // Include Installer Js.
'!inc/installer/inc/github-plugin-updater.php', // Exclude Installer Standalone Updater.
]
},
i18n: {
src: [
'**/*.php', // All the PHP files.
'!tmp/**/*.php', // Ignore tmp/ and contents
'!dist/**/*.php' // Ignore dist/ and contents
],
},
};