forked from Yoast/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
41 lines (39 loc) · 862 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
var path = require( "path" );
var loadGruntConfig = require( "load-grunt-config" );
module.exports = function( grunt ) {
// Define project configuration.
var project = {
paths: {
grunt: "grunt/",
js: "js/",
css: "css/",
get config() {
return this.grunt + "config/";
},
},
files: {
js: [
"js/**/*.js",
"grunt/config/*.js",
"!js/config/*.js",
"<%= files.grunt %>",
],
jsDontLint: [
"!js/templates.js",
],
scss: "css/*.scss",
templates: "templates/**/*.jst",
jed: "node_modules/jed/jed.js",
get config() {
return project.paths.config + "*.js";
},
grunt: "Gruntfile.js",
},
pkg: grunt.file.readJSON( "package.json" ),
};
// Load Grunt configurations and tasks
loadGruntConfig( grunt, {
configPath: path.join( process.cwd(), project.paths.config ),
data: project,
} );
};