Skip to content

Commit

Permalink
Added an implementation that uses web workers. Added grunt and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanackley committed Jul 9, 2013
1 parent 2c307ad commit fa33cd9
Show file tree
Hide file tree
Showing 33 changed files with 22,494 additions and 9,371 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
54 changes: 54 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
module.exports = function(grunt) {
grunt.initConfig({
requirejs: {
compileWorkerApi: {
options: {
name: "thirdparty/almond",
include: ["workers/api-worker-proxy"],
out: "api-built.js",
optimize: "none",
wrap: {
startFile: "thirdparty/start.frag",
endFile: "thirdparty/end.frag"
},
paths: {
"text": "thirdparty/text"
}
}
},
compileWorker: {
options: {
name: "thirdparty/almond",
include: ["workers/api-worker"],
out: "workers/api-worker-built.js",
optimize: "none",
wrap: {
startFile: "thirdparty/start_worker.frag",
endFile: "thirdparty/end_worker.frag"
}
}
},

compileNoWorker: {
options: {
name: "thirdparty/almond",
include: ["api"],
out: "api-built.js",
optimize: "none",
wrap: {
startFile: "thirdparty/start.frag",
endFile: "thirdparty/end-noworker.frag"
}
}
}

}

});

grunt.loadNpmTasks('grunt-contrib-requirejs');

grunt.registerTask('default', ['requirejs:compileWorker', 'requirejs:compileWorkerApi']);

grunt.registerTask('no-worker', ['requirejs:compileNoWorker'])
}
Loading

0 comments on commit fa33cd9

Please sign in to comment.