-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
68 lines (61 loc) · 1.53 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
/* global require, __dirname */
module.exports = function() {
'use strict';
var path = require( 'path' ),
project = {};
project.paths = {
config: 'config/',
assets: 'assets/',
dist: 'dist/',
css: 'css/',
cssSrc: 'assets/theme/scss/',
cssVend: 'assets/theme/scss/vendor/',
js: 'js/',
jsSrc: 'assets/theme/js/',
jsVend: 'assets/theme/js/vendor/',
images: 'images/',
imagesSrc: 'assets/theme/images/',
imagesVend: 'assets/theme/images/vendor/',
fonts: 'fonts/',
fontsSrc: 'assets/theme/fonts/',
fontsVend: 'assets/theme/fonts/vendor/',
phpVend: 'includes/vendor/',
languages: 'languages/',
composer: 'assets/composer/',
node: 'node_modules/',
grunt: 'config/grunt/',
tasks: 'tasks/'
};
project.paths.global = {
config: path.join( __dirname, 'config/' ),
grunt: path.join( __dirname, 'config/grunt/' ),
tasks: path.join( __dirname, 'tasks/' )
};
project.taskMap = {
addtextdomain: 'grunt-wp-i18n',
makepot: 'grunt-wp-i18n',
readpkg: 'cipher-theme-config'
};
project.files = {
js: project.paths.jsSrc + '**/*.js',
scss: project.paths.cssSrc + '**/*.scss',
config: project.paths.config + '**/*.js',
changelog: 'CHANGELOG.md'
};
project.files.php = [
'*.php',
'**/*.php',
'!.git/**',
'!.sass-cache/**',
'!assets/**',
'!css/**',
'!dist/**',
'!fonts/**',
'!images/**',
'!js/**',
'!languages/**',
'!bower_components/**',
'!node_modules/**'
];
return project;
};