Skip to content

Commit

Permalink
bundle task added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Marsch committed Apr 3, 2016
1 parent bd2880a commit fa66eda
Show file tree
Hide file tree
Showing 7 changed files with 1,948 additions and 42 deletions.
26 changes: 21 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ module.exports = function(grunt) {
globals: {}
},
all: [
'src/GeoJSON.js',
'src/triangulate.js',
'src/vector.js'
'src/vec2.js',
'src/vec3.js',
'src/split.js',
'src/Triangulate.js'
]
},

concat: {

default: {
options: {
separator: '\n',
Expand All @@ -34,10 +36,24 @@ module.exports = function(grunt) {
'node_modules/earcut/src/earcut.js',
'src/vec2.js',
'src/vec3.js',
'src/triangulate.js',
'src/GeoJSON.js'
'src/split.js',
'src/Triangulate.js'
],
dest: 'dist/<%=pkg.name%>.debug.js'
},

'bundle': {
options: {
separator: '\n'
},
src: [
'lib/earcut.custom.js',
'src/vec2.js',
'src/vec3.js',
'src/split.js',
'src/Triangulate.js'
],
dest: 'dist/<%=pkg.name%>.bundle.js'
}
},

Expand Down
Loading

0 comments on commit fa66eda

Please sign in to comment.