forked from jaanauati/react-dfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
27 lines (23 loc) · 926 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
const timeGrunt = require('time-grunt');
const loadGruntConfig = require('load-grunt-config');
module.exports = function gruntFile(grunt) {
// determine time to complete tasks
timeGrunt(grunt);
// load all grunt tasks using load-grunt-config
loadGruntConfig(grunt, {
init: true,
data: {
// path to Grunt file for exclusion
gruntfile: 'Gruntfile.js',
// generalize the module information for banner output
banner: '/**\n * NGS Project: <%= package.name %> - v<%= package.version %>\n' +
' * Description: <%= package.description %>\n' +
' * Date Built: <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %>' +
' | <%= package.author.name %>;\n**/\n',
},
loadGruntTasks: {
pattern: ['grunt-*', '@*/grunt-*', 'gruntify-*'],
},
});
};