This repository has been archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
72 lines (65 loc) · 1.57 KB
/
index.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
/* global require, __dirname */
module.exports = function () {
'use strict';
var path = require('path'),
project = {};
project.paths = {
config: 'grunt/',
grunt: 'grunt/',
languages: 'languages/',
logs: 'logs/',
images: 'images/',
vendor: 'vendor/',
};
project.paths.global = {
config: path.join(__dirname, 'grunt/'),
grunt: path.join(__dirname, 'grunt/')
};
project.taskMap = {
wpcss: 'grunt-wp-css',
addtextdomain: 'grunt-wp-i18n',
litedomain: 'grunt-wp-i18n',
makepot: 'grunt-wp-i18n',
sync: 'grunt-sync',
watch: 'grunt-contrib-watch',
replace: 'grunt-text-replace',
};
project.files = {
config: project.paths.config + '**/*.js',
};
project.files.php = [
'*.php',
'**/*.php',
'!.git/**',
'!vendor/**',
'!node_modules/**',
'!logs/**'
];
project.files.css = [
'*.css',
'**/*.css',
'**/*.css',
'!*.min.css',
'!**/*.min.css',
'!css/vendor/*.css',
'!vendor/**',
'!node_modules/**',
'!logs/**'
];
project.files.js = [
'*.js',
'**/*.js',
'!*.min.js',
'!**/*.min.js',
'!.git/**',
'!vendor/**',
'!js/vendor/*.js',
'!node_modules/**',
'!logs/**'
];
project.hash = {
file_name: 'themeisle-hash.json',
exclude: [ '!languages/**/*', '!tests/**/*', '!logs/**/*', '!grunt/**/*' ]
}
return project;
};