This repository was archived by the owner on Sep 20, 2020. It is now read-only.
File tree 1 file changed +21
-6
lines changed
1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,23 @@ module.exports = function (grunt) {
34
34
@toc 5.
35
35
*/
36
36
grunt . initConfig ( {
37
+ pkg : grunt . file . readJSON ( 'package.json' ) ,
38
+ meta : {
39
+ banner : '/**\n' +
40
+ ' * <%= pkg.description %>\n' +
41
+ ' * @version v<%= pkg.version %><%= buildtag %>\n' +
42
+ ' * @link <%= pkg.homepage %>\n' +
43
+ ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' +
44
+ ' */'
45
+ } ,
37
46
concat : {
38
- options : { } ,
47
+ options : {
48
+ banner : '<%= meta.banner %>\n\n' +
49
+ '(function (window, angular, undefined) {\n' ,
50
+ footer : '})(window, window.angular);'
51
+ } ,
39
52
dist : {
40
- src : [ 'src/_intro.js.txt' ] . concat ( files . src ) . concat ( [ 'src/_outtro.js.txt' ] ) ,
53
+ src : files . src ,
41
54
dest : 'build/ct-ui-router-extras.js'
42
55
}
43
56
} ,
@@ -83,12 +96,14 @@ module.exports = function (grunt) {
83
96
} ,
84
97
uglify : {
85
98
options : {
86
- mangle : false
99
+ mangle : false ,
100
+ banner : '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
101
+ '<%= grunt.template.today("yyyy-mm-dd") %> */'
87
102
} ,
88
103
build : {
89
- files : { } ,
90
- src : 'build/ct-ui-router-extras.js' ,
91
- dest : 'build/ct-ui-router-extras.min.js'
104
+ files : {
105
+ 'build/ct-ui-router-extras.min.js' : [ 'build/ct-ui-router-extras.js' ]
106
+ }
92
107
}
93
108
} ,
94
109
karma : {
You can’t perform that action at this time.
0 commit comments