Skip to content

Commit f6fbb57

Browse files
committed
Flattened things out a bit
1 parent 2d904f3 commit f6fbb57

1 file changed

Lines changed: 52 additions & 50 deletions

File tree

index.js

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,63 @@ module.exports = function() {
33
'use strict';
44

55
var path = require( 'path' ),
6-
project = null;
7-
8-
project = {
9-
paths: {
10-
config: 'config/',
11-
assets: 'assets/',
12-
languages: 'languages/',
13-
release: 'release/',
14-
tmp: 'tmp/',
15-
jsSrc: 'js/src/',
16-
cssSrc: 'css/src/',
17-
fontSrc: 'font/src/',
18-
imagesSrc: 'images/src/',
19-
bower: 'bower/',
20-
grunt: 'config/grunt/',
21-
tasks: 'config/grunt/tasks/',
22-
global: {
23-
config: path.join( __dirname, 'config/' ),
24-
grunt: path.join( __dirname, 'config/grunt/' ),
25-
tasks: path.join( __dirname, 'config/grunt/tasks/' )
26-
}
27-
},
28-
taskMap: {
29-
addtextdomain: 'grunt-wp-i18n',
30-
makepot: 'grunt-wp-i18n',
31-
usebanner: 'grunt-banner',
32-
wpcss: 'grunt-wp-css'
33-
}
6+
project = {};
7+
8+
project.paths = {
9+
config: 'config/',
10+
assets: 'assets/',
11+
languages: 'languages/',
12+
release: 'release/',
13+
tmp: 'tmp/',
14+
jsSrc: 'js/src/',
15+
cssSrc: 'css/src/',
16+
fontSrc: 'font/src/',
17+
imagesSrc: 'images/src/',
18+
bower: 'bower/',
19+
grunt: 'config/grunt/',
20+
tasks: 'config/grunt/tasks/'
21+
};
22+
23+
project.paths.global = {
24+
config: path.join( __dirname, 'config/' ),
25+
grunt: path.join( __dirname, 'config/grunt/' ),
26+
tasks: path.join( __dirname, 'config/grunt/tasks/' )
27+
};
28+
29+
project.taskMap = {
30+
addtextdomain: 'grunt-wp-i18n',
31+
makepot: 'grunt-wp-i18n',
32+
usebanner: 'grunt-banner',
33+
wpcss: 'grunt-wp-css'
3434
};
3535

3636
project.files = {
37-
js: [
38-
project.paths.jsSrc + '**/*.js',
39-
'!' + project.paths.jsSrc + '**/*.min.js',
40-
'!' + project.paths.jsSrc + 'vendor/'
41-
],
4237
scss: project.paths.cssSrc + '**/*.scss',
43-
config: project.paths.config + '**/*.js',
44-
php: [
45-
'*.php',
46-
'**/*.php',
47-
'!.git/**',
48-
'!.sass-cache/**',
49-
'!assets/**',
50-
'!css/**',
51-
'!release/**',
52-
'!fonts/**',
53-
'!images/**',
54-
'!js/**',
55-
'!languages/**',
56-
'!bower_components/**',
57-
'!node_modules/**',
58-
'!tmp/**'
59-
]
38+
config: project.paths.config + '**/*.js'
6039
};
6140

41+
project.files.js = [
42+
project.paths.jsSrc + '**/*.js',
43+
'!' + project.paths.jsSrc + '**/*.min.js',
44+
'!' + project.paths.jsSrc + 'vendor/'
45+
];
46+
47+
project.files.php = [
48+
'*.php',
49+
'**/*.php',
50+
'!.git/**',
51+
'!.sass-cache/**',
52+
'!assets/**',
53+
'!css/**',
54+
'!release/**',
55+
'!fonts/**',
56+
'!images/**',
57+
'!js/**',
58+
'!languages/**',
59+
'!bower_components/**',
60+
'!node_modules/**',
61+
'!tmp/**'
62+
];
63+
6264
return project;
6365
};

0 commit comments

Comments
 (0)