-
Notifications
You must be signed in to change notification settings - Fork 212
/
Gruntfile.js
47 lines (44 loc) · 1.71 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
module.exports = function (grunt) {
'use strict';
var path = require('path');
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'config/grunt'),
data: {
meta: {
banner: '/**\n' +
' * <%= pkg.name %>\n' +
' * <%= pkg.description %>\n' +
' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @link <%= pkg.homepage %>\n' +
' * @author <%= pkg.authors.join(", ") %>\n' +
' * @license MIT License, http://www.opensource.org/licenses/MIT\n' +
' */\n\n',
'banner-ui': '/**\n' +
' * <%= pkg.name %>-ui\n' +
' * Extension module of angular-permission for access control within ui-router\n' +
' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @link <%= pkg.homepage %>\n' +
' * @author <%= pkg.authors.join(", ") %>\n' +
' * @license MIT License, http://www.opensource.org/licenses/MIT\n' +
' */\n\n',
'banner-ng': '/**\n' +
' * <%= pkg.name %>-ng\n' +
' * Extension module of angular-permission for access control within angular-route\n' +
' * @version v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @link <%= pkg.homepage %>\n' +
' * @author <%= pkg.authors.join(", ") %>\n' +
' * @license MIT License, http://www.opensource.org/licenses/MIT\n' +
' */\n\n'
},
pkg: grunt.file.readJSON('bower.json'),
paths: {
src: 'src',
dist: 'dist',
test: 'test',
config: 'config',
coverage: 'coverage'
}
}
});
grunt.task.renameTask('jsbeautifier', 'beautifier');
};