forked from cipherdevgroup/cipher-theme-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
69 lines (62 loc) · 1.68 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
/* global require, __dirname */
module.exports = function () {
'use strict';
var path = require('path');
var project = {};
project.paths = {
config: 'config/',
assets: 'assets/',
dist: 'dist/',
css: 'css/',
cssSrc: 'scss/',
cssSrcVend: 'scss/vendor/',
cssVend: 'css/vendor/',
js: 'js/',
jsSrc: 'js/',
jsVend: 'js/vendor/',
images: 'images/',
imagesSrc: 'assets/theme/images/',
imagesVend: 'assets/theme/images/vendor/',
fonts: 'fonts/',
fontsSrc: 'fonts/',
fontsVend: '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: 'ttech-wp-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;
};