-
Notifications
You must be signed in to change notification settings - Fork 8
/
Gruntfile.js
66 lines (53 loc) · 1.49 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
60
61
62
63
64
65
66
(function a() {
'use strict';
//tijdelijk test commentaar
module.exports = function(grunt) {
// define settings
var settings = {
dir: {
src: 'src/',
dist: 'dist/',
doc: 'docs/',
test: 'test/',
temp: 'temp',
coverage: 'temp/coverage/'
},
pkg: grunt.file.readJSON('bower.json'),
applicationName: 'cow',
modules: [
{
// The requirejs include which makes the application:
name: 'cow',
exclude: []
}
],
// array of bower modules that need to be update before builds (mostly because they are changing prereleases)
bowerModulesToUpdate: []
};
//autoload all grunt plugins mentioned in devDependencies package.json
require('load-grunt-tasks')(grunt);
grunt.config.init(settings);
// load task configurations
var configs = require('load-grunt-configs')(grunt, {
config: {
src: 'grunt/grunt-tasks/configs/*.js'
}
});
grunt.config.merge(configs);
// load task definitions
grunt.loadTasks('grunt/grunt-tasks');
// finally overwrite configuration with project specific information
//load local-task configurations, if they are present
var localconfigs = require('load-grunt-configs')(grunt, {
config: {
src: 'grunt-tasks-local/configs/*.js'
}
});
grunt.config.merge(localconfigs);
// load local task definitions
grunt.loadTasks('grunt-tasks-local');
// end of local overwrites
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
};
}());