forked from streamlink/streamlink-twitch-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
39 lines (32 loc) · 1.04 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
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" ),
// additional config variables, eg. `version = $(git describe --tags --dirty)`
postProcess: require( r( "build", "tasks", "common", "post-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" ),
dist: r( "dist" )
}
},
// automatically initialize and load modules on demand
init: true,
jitGrunt: true
});
};