-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
34 lines (27 loc) · 888 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
'use strict';
module.exports = function(grunt) {
// Node path
var path = require('path');
// Load our custom tasks
grunt.loadTasks('tasks');
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Load config
var gruntConfig = grunt.file.readYAML('_config.yaml');
require('load-grunt-config')(grunt, {
init: true,
// Make data object available in tasks
data: {
pkg: grunt.file.readJSON('package.json')
},
// Load grunt tasks and aliases
configPath: path.join(process.cwd(), gruntConfig.grunt + '/config'),
overridePath: path.join(process.cwd(), gruntConfig.grunt),
// Allow for just in time loading
jitGrunt: {
// Static routes
instrument: 'grunt-istanbul',
jasmine_node: 'jasmine-node'
}
});
};