-
-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathGruntfile.js
37 lines (31 loc) · 949 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
const { resolve: r } = require( "path" );
module.exports = function( grunt ) {
"use strict";
// load custom tasks
grunt.loadTasks( "build/tasks/custom" );
// load task configs
require( "load-grunt-config" )( grunt, {
// load config files and avoid file name collisions
overridePath: r( "build", "tasks", "configs" ),
configPath: r( "src", "config" ),
data: {
dir: {
root: r( "." ),
cache: r( "build", "cache" ),
releases: r( "build", "releases" ),
resources: r( "build", "resources" ),
tmp: r( "build", "tmp" ),
tmp_dev: r( "build", "tmp", "dev" ),
tmp_prod: r( "build", "tmp", "prod" ),
tmp_test: r( "build", "tmp", "test" ),
tmp_coverage: r( "build", "tmp", "coverage" ),
tmp_installer: r( "build", "tmp", "installer" ),
travis: r( "build", "travis" ),
dist: r( "dist" )
}
},
// automatically initialize and load modules on demand
init: true,
jitGrunt: true
});
};