-
Notifications
You must be signed in to change notification settings - Fork 27
/
Gruntfile.js
46 lines (43 loc) · 958 Bytes
/
Gruntfile.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
/* global require, process */
module.exports = function(grunt) {
'use strict';
require('time-grunt')(grunt);
// Define project configuration
var project = {
paths: {
get config() {
return this.grunt + 'config/';
},
grunt: 'grunt/',
languages: 'languages/',
logs: 'logs/'
},
files: {
php: [
'*.php'
],
phptests: 'tests/**/*.php',
get config() {
return project.paths.config + '*.js';
},
get changelog() {
return project.paths.theme + 'changelog.txt';
},
grunt: 'Gruntfile.js'
},
pkg: grunt.file.readJSON( 'package.json' )
};
// Load Grunt configurations and tasks
require( 'load-grunt-config' )(grunt, {
configPath: require( 'path' ).join( process.cwd(), project.paths.config ),
data: project,
jitGrunt: {
staticMappings: {
addtextdomain: 'grunt-wp-i18n',
makepot: 'grunt-wp-i18n',
glotpress_download: 'grunt-glotpress',
wpcss: 'grunt-wp-css'
}
}
});
};