Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Marsch committed Apr 1, 2016
1 parent 5937b25 commit a7d2c24
Show file tree
Hide file tree
Showing 6 changed files with 926 additions and 387 deletions.
18 changes: 13 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@ module.exports = function(grunt) {
options: {
globals: {}
},
all: 'src/Triangulate.js'
all: 'src/index.js'
},

concat: {
default: {
options: {
separator: "\n",
banner: "(function(global) {",
footer: "}(this));"
banner: "\n(function(global) {",
footer: "if (typeof global.define === 'function') {\n"+
"global.define([], Triangulate);\n"+
"} else if (typeof global.exports === 'object') {\n"+
"global.module.exports = Triangulate;\n"+
"} else {\n"+
"global.Triangulate = Triangulate;\n"+
"}\n"+
"}(this));\n"
},
src: [
"node_modules/earcut/dist/earcut.dev.js",
//"node_modules/earcut/dist/earcut.dev.js",
"src/earcut.dev.js",
"node_modules/Color/dist/Color.debug.js",
"src/Triangulate.js"
"src/index.js"
],
dest: 'dist/<%=pkg.name%>.debug.js'
}
Expand Down
Loading

0 comments on commit a7d2c24

Please sign in to comment.