Skip to content

Commit

Permalink
modularized it
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Metcalf committed Jul 19, 2013
1 parent 472affe commit 7db2e02
Show file tree
Hide file tree
Showing 8 changed files with 509 additions and 369 deletions.
18 changes: 4 additions & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@ module.exports = function(grunt) {
https://github.com/leaflet-extras/RTree.\n\
******************************************************************************/\n\
(function(){\n\
/*global module,window,self */\n\
/*global module,window,self,RTree */\n\
\'use strict\';\n',
footer:'if (typeof module !== \'undefined\' && module.exports) {\n\
module.exports = rTree;\n\
}else if(typeof document === \'undefined\'){\n\
self.rTree = rTree;\n\
self.RTree = RTree;\n\
}else{\n\
window.rTree = rTree;\n\
window.RTree = RTree;\n\
}\n\
})(this);\n',

uglify: {
all: {
src: 'dist/rtree.js',
Expand All @@ -30,10 +21,9 @@ module.exports = function(grunt) {
concat: {
all: {
options:{
banner: '<%= banner %>',
footer:'<%= footer %>'
banner: '<%= banner %>'
},
src: ['src/rtree.js','src/rtree.json.js','src/rtree.geojson.js','src/rtree.end.js','src/rtree.rectangle.js'],
src: ['src/rtree.js','src/rtree.json.js','src/rtree.end.js','src/rtree.rectangle.js','src/rtree.geojson.js'],
dest: 'dist/rtree.js'
}
},
Expand Down
Loading

0 comments on commit 7db2e02

Please sign in to comment.