forked from AfterShip/rate-limiter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
27 lines (21 loc) · 680 Bytes
/
Copy pathGruntfile.js
File metadata and controls
27 lines (21 loc) · 680 Bytes
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
'use strict';
const loadGruntConfig = require('load-grunt-config');
const path = require('path');
module.exports = function (grunt) {
loadGruntConfig(grunt, {
pkg: grunt.file.readJSON('package.json'), // Loads grunt tasks defined in package.json
configPath: path.join(process.cwd(), 'grunt-config'), // path to task.js files, defaults to grunt dir
init: true, // auto grunt.initConfig
config: {
// additional config vars
},
loadGruntTasks: {
pattern: ['grunt-*', '@*/grunt-*']
}
});
// Tasks
grunt.registerTask('coverage', ['mocha_istanbul:coverage']);
grunt.registerTask('lint', ['eslint']);
// Default task
grunt.registerTask('default', []);
};