Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 8b9a46c

Browse files
Rebuilt, added options to example
1 parent 4701aa2 commit 8b9a46c

File tree

6 files changed

+227
-492
lines changed

6 files changed

+227
-492
lines changed

Gruntfile.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ module.exports = function(grunt) {
1111
grunt.loadNpmTasks('grunt-open');
1212
grunt.loadNpmTasks('grunt-mkdir');
1313
grunt.loadNpmTasks('grunt-contrib-coffee');
14-
14+
1515

1616
// Project configuration.
1717
grunt.initConfig({
18-
18+
1919
pkg: grunt.file.readJSON('package.json'),
20-
20+
2121
clean: {
2222
coffee: ['tmp/output_coffee.js'],
2323
dist: ['dist/*', 'tmp'],
2424
example: ['example/<%= pkg.name %>.js']
2525
},
26-
26+
2727
mkdir: {
2828
all: {
2929
options: {
@@ -36,7 +36,7 @@ module.exports = function(grunt) {
3636
coffee: {
3737
compile: {
3838
files: {
39-
'tmp/output_coffee.js':
39+
'tmp/output_coffee.js':
4040
['src/coffee/*.coffee',
4141
'src/coffee/oo/ng-gmap-module.coffee',
4242
'src/coffee/oo/base-object.coffee',
@@ -48,20 +48,20 @@ module.exports = function(grunt) {
4848
}
4949
}
5050
},
51-
51+
5252
concat: {
5353
options: {
5454
separator: ';'
5555
},
5656
dist: {
57-
src: ['src/js/module.js',
57+
src: ['src/js/module.js',
5858
'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',
6161
'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',
6565
'src/js/directives/polygon.js',
6666
'src/js/directives/polyline.js',
6767
'src/js/directives/window.js',
@@ -72,12 +72,12 @@ module.exports = function(grunt) {
7272
example: {
7373
src: ['src/js/module.js',
7474
'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',
7777
'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',
8181
'src/js/directives/polygon.js',
8282
'src/js/directives/polyline.js',
8383
'src/js/directives/window.js',
@@ -86,7 +86,7 @@ module.exports = function(grunt) {
8686
dest: 'example/<%= pkg.name %>.js'
8787
}
8888
},
89-
89+
9090
copy: {
9191
dist: {
9292
files: [{
@@ -95,7 +95,7 @@ module.exports = function(grunt) {
9595
}]
9696
}
9797
},
98-
98+
9999
uglify: {
100100
options: {
101101
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) {
107107
dest: 'dist/<%= pkg.name %>.min.js'
108108
}
109109
},
110-
110+
111111
jshint: {
112112
all: ['Gruntfile.js', 'src/js/**/*.js', 'test/js/**/*.js']
113113
},
114-
114+
115115
test: {
116-
116+
117117
},
118-
118+
119119
watch: {
120120
all: {
121121
options: { livereload: true },
122122
files: ['src/js/**/*.js','src/coffee/**/*.coffee','src/coffee/*.coffee'],
123123
tasks: ['clean:example','coffee','concat:example'],
124124
},
125125
},
126-
126+
127127
open: {
128128
example: {
129129
path: 'http://localhost:3000/example.html'
130130
}
131131
},
132-
132+
133133
connect: {
134134
server: {
135135
options: {
@@ -147,14 +147,14 @@ module.exports = function(grunt) {
147147

148148
// Default task: build a release in dist/
149149
grunt.registerTask('default', ['clean:dist',
150-
'test',
151-
'jshint',
152-
'mkdir',
150+
'test',
151+
'jshint',
152+
'mkdir',
153153
'coffee',
154-
'concat:dist',
154+
'concat:dist',
155155
'copy:dist',
156156
'uglify']);
157-
157+
158158
// Run the example page by creating a local copy of angular-google-maps.js
159159
// and running a webserver on port 3000 with livereload. Web page is opened
160160
// automatically in the default browser.

0 commit comments

Comments
 (0)