forked from Codeinwp/zerif-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
59 lines (55 loc) · 1.41 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
/* jshint node:true */
/* global require, process */
var timeGrunt = require('time-grunt');
var path = require('path');
var loadGruntConfig = require('load-grunt-config');
module.exports = function (grunt) {
'use strict';
timeGrunt(grunt);
var project = {
paths: {
get config() {
return this.grunt;
},
css: 'css/',
grunt: 'grunt/',
images: 'images/',
js: 'js/',
languages: 'languages/',
logs: 'logs/'
},
files: {
css: [
'*.css',
'css/*.css',
'!css/*.min.css',
'!css/vendor/*.css'
],
js: [
'*.js',
'grunt/**/*.js',
'js/**/*.js',
'js/**/*.js',
'!js/**/*.min.js',
'!js/vendor/*.js'
],
php: [
'**/*.php',
'!node_modules/**/*.php'
],
get config() {
return project.paths.config + '*.js';
},
grunt: 'Gruntfile.js'
},
pkg: grunt.file.readJSON('package.json')
};
loadGruntConfig(grunt, {
configPath: path.join(process.cwd(), project.paths.config),
data: project,
jitGrunt: {
staticMappings: {
}
}
});
};