This repository was archived by the owner on May 25, 2019. It is now read-only.
File tree 5 files changed +22
-5
lines changed
5 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
- bower_components
2
+ bower_components
3
+ dist
4
+ out
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module.exports = function (grunt) {
6
6
grunt . registerTask ( 'default' , [ 'jshint' , 'karma:unit' ] ) ;
7
7
grunt . registerTask ( 'build-doc' , [ 'uglify' , 'copy' ] ) ;
8
8
grunt . registerTask ( 'server' , [ 'karma:start' ] ) ;
9
+ grunt . registerTask ( 'dist' , [ 'ngmin' , 'uglify' ] ) ;
9
10
10
11
// HACK TO ACCESS TO THE COMPONENT-PUBLISHER
11
12
function fakeTargetTask ( prefix ) {
@@ -86,14 +87,27 @@ module.exports = function (grunt) {
86
87
globals : { }
87
88
}
88
89
} ,
90
+
89
91
uglify : {
90
92
options : { banner : '<%= meta.banner %>' } ,
91
93
build : {
92
- files : {
93
- '<%= dist %>/build/<%= meta.view.repoName %>.min.js' : [ '<%= meta.view.repoName %>.js' ]
94
- }
94
+ expand : true ,
95
+ cwd : 'dist' ,
96
+ src : [ '*.js' ] ,
97
+ ext : '.min.js' ,
98
+ dest : 'dist'
99
+ }
100
+ } ,
101
+
102
+ ngmin : {
103
+ main : {
104
+ expand : true ,
105
+ cwd : 'src' ,
106
+ src : [ '*.js' ] ,
107
+ dest : 'dist'
95
108
}
96
109
} ,
110
+
97
111
copy : {
98
112
main : {
99
113
files : [
Original file line number Diff line number Diff line change 16
16
"grunt-contrib-watch" : " 0.5.x" ,
17
17
"grunt-conventional-changelog" : " 1.x" ,
18
18
"grunt-karma" : " 0.6.x" ,
19
+ "grunt-ngmin" : " 0.0.x" ,
19
20
"karma" : " 0.10.x" ,
20
21
"karma-chrome-launcher" : " 0.1.x" ,
21
22
"karma-coffee-preprocessor" : " 0.1.x" ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports = function(config) {
17
17
'bower_components/angular/angular.js' ,
18
18
'bower_components/angular-mocks/angular-mocks.js' ,
19
19
'bower_components/angular-ui-utils/modules/event/event.js' ,
20
- 'ui-map.js ' ,
20
+ 'src/* ' ,
21
21
'test/googlemaps.js' ,
22
22
'test/*Spec.js'
23
23
] ,
You can’t perform that action at this time.
0 commit comments