-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
66 lines (61 loc) · 1.55 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
/* global module,__dirname */
module.exports = function() {
'use strict';
var path = require( 'path' ),
project = {};
// Paths that the theme should use.
project.paths = {
assets: 'assets/',
authorAssets: 'assets/theme/',
bower: 'assets/bower/',
composer: 'assets/composer/',
config: 'config/',
grunt: 'config/grunt/',
tasks: 'config/grunt/tasks/',
dist: 'dist/',
docs: 'docs/',
languages: 'languages/',
sass: 'assets/theme/sass/',
logs: 'logs/',
reports: 'reports/',
tmp: 'tmp/',
global: {
config: path.join( __dirname, 'config/' ),
grunt: path.join( __dirname, 'config/grunt/' ),
tasks: path.join( __dirname, 'config/grunt/tasks/' )
}
};
project.taskMap = {
addtextdomain: 'grunt-wp-i18n',
cmq: 'grunt-combine-media-queries',
makepot: 'grunt-wp-i18n',
replace: 'grunt-text-replace',
scsslint: 'grunt-scss-lint',
usebanner: 'grunt-banner',
wpcss: 'grunt-wp-css'
};
project.files = {
js: project.paths.assets + '{,*/}js/*.js',
scss: project.paths.authorAssets + 'scss/**/*.scss',
config: project.paths.config + '**/*.js',
php: [
'**/*.php',
'!.git/**',
'!.sass-cache/**',
'!assets/**',
'!css/**',
'!dist/**',
'!fonts/**',
'!images/**',
'!js/**',
'!languages/**',
'!logs/**',
'!bower_components/**',
'!node_modules/**',
'!tmp/**',
'!theme/vendor/**'
],
changelog: 'CHANGELOG.md'
};
return project;
};