@@ -11,19 +11,19 @@ module.exports = function(grunt) {
11
11
grunt . loadNpmTasks ( 'grunt-open' ) ;
12
12
grunt . loadNpmTasks ( 'grunt-mkdir' ) ;
13
13
grunt . loadNpmTasks ( 'grunt-contrib-coffee' ) ;
14
-
14
+
15
15
16
16
// Project configuration.
17
17
grunt . initConfig ( {
18
-
18
+
19
19
pkg : grunt . file . readJSON ( 'package.json' ) ,
20
-
20
+
21
21
clean : {
22
22
coffee : [ 'tmp/output_coffee.js' ] ,
23
23
dist : [ 'dist/*' , 'tmp' ] ,
24
24
example : [ 'example/<%= pkg.name %>.js' ]
25
25
} ,
26
-
26
+
27
27
mkdir : {
28
28
all : {
29
29
options : {
@@ -36,7 +36,7 @@ module.exports = function(grunt) {
36
36
coffee : {
37
37
compile : {
38
38
files : {
39
- 'tmp/output_coffee.js' :
39
+ 'tmp/output_coffee.js' :
40
40
[ 'src/coffee/*.coffee' ,
41
41
'src/coffee/oo/ng-gmap-module.coffee' ,
42
42
'src/coffee/oo/base-object.coffee' ,
@@ -48,20 +48,20 @@ module.exports = function(grunt) {
48
48
}
49
49
}
50
50
} ,
51
-
51
+
52
52
concat : {
53
53
options : {
54
54
separator : ';'
55
55
} ,
56
56
dist : {
57
- src : [ 'src/js/module.js' ,
57
+ src : [ 'src/js/module.js' ,
58
58
'tmp/output_coffee.js' ,
59
- 'src/js/utils/LatLngArraySync.js' ,
60
- 'src/js/utils/MapEvents.js' ,
59
+ 'src/js/utils/LatLngArraySync.js' ,
60
+ 'src/js/utils/MapEvents.js' ,
61
61
'src/js/controllers/polyline-display.js' ,
62
- 'src/js/directives/map.js' ,
63
- 'src/js/directives/marker.js' ,
64
- 'src/js/directives/markers.js' ,
62
+ 'src/js/directives/map.js' ,
63
+ 'src/js/directives/marker.js' ,
64
+ 'src/js/directives/markers.js' ,
65
65
'src/js/directives/polygon.js' ,
66
66
'src/js/directives/polyline.js' ,
67
67
'src/js/directives/window.js' ,
@@ -72,12 +72,12 @@ module.exports = function(grunt) {
72
72
example : {
73
73
src : [ 'src/js/module.js' ,
74
74
'tmp/output_coffee.js' ,
75
- 'src/js/utils/LatLngArraySync.js' ,
76
- 'src/js/utils/MapEvents.js' ,
75
+ 'src/js/utils/LatLngArraySync.js' ,
76
+ 'src/js/utils/MapEvents.js' ,
77
77
'src/js/controllers/polyline-display.js' ,
78
- 'src/js/directives/map.js' ,
79
- 'src/js/directives/marker.js' ,
80
- 'src/js/directives/markers.js' ,
78
+ 'src/js/directives/map.js' ,
79
+ 'src/js/directives/marker.js' ,
80
+ 'src/js/directives/markers.js' ,
81
81
'src/js/directives/polygon.js' ,
82
82
'src/js/directives/polyline.js' ,
83
83
'src/js/directives/window.js' ,
@@ -86,7 +86,7 @@ module.exports = function(grunt) {
86
86
dest : 'example/<%= pkg.name %>.js'
87
87
}
88
88
} ,
89
-
89
+
90
90
copy : {
91
91
dist : {
92
92
files : [ {
@@ -95,7 +95,7 @@ module.exports = function(grunt) {
95
95
} ]
96
96
}
97
97
} ,
98
-
98
+
99
99
uglify : {
100
100
options : {
101
101
banner : '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %>\n * <%= pkg.description %>\n * <%= pkg.repository.type %>: <%= pkg.repository.url %>\n */\n' ,
@@ -107,29 +107,29 @@ module.exports = function(grunt) {
107
107
dest : 'dist/<%= pkg.name %>.min.js'
108
108
}
109
109
} ,
110
-
110
+
111
111
jshint : {
112
112
all : [ 'Gruntfile.js' , 'src/js/**/*.js' , 'test/js/**/*.js' ]
113
113
} ,
114
-
114
+
115
115
test : {
116
-
116
+
117
117
} ,
118
-
118
+
119
119
watch : {
120
120
all : {
121
121
options : { livereload : true } ,
122
122
files : [ 'src/js/**/*.js' , 'src/coffee/**/*.coffee' , 'src/coffee/*.coffee' ] ,
123
123
tasks : [ 'clean:example' , 'coffee' , 'concat:example' ] ,
124
124
} ,
125
125
} ,
126
-
126
+
127
127
open : {
128
128
example : {
129
129
path : 'http://localhost:3000/example.html'
130
130
}
131
131
} ,
132
-
132
+
133
133
connect : {
134
134
server : {
135
135
options : {
@@ -147,14 +147,14 @@ module.exports = function(grunt) {
147
147
148
148
// Default task: build a release in dist/
149
149
grunt . registerTask ( 'default' , [ 'clean:dist' ,
150
- 'test' ,
151
- 'jshint' ,
152
- 'mkdir' ,
150
+ 'test' ,
151
+ 'jshint' ,
152
+ 'mkdir' ,
153
153
'coffee' ,
154
- 'concat:dist' ,
154
+ 'concat:dist' ,
155
155
'copy:dist' ,
156
156
'uglify' ] ) ;
157
-
157
+
158
158
// Run the example page by creating a local copy of angular-google-maps.js
159
159
// and running a webserver on port 3000 with livereload. Web page is opened
160
160
// automatically in the default browser.
0 commit comments