-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
2,577 additions
and
917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# compress and build tasks require uglify-js for optimization. compile is sufficient for creating working (uncompressed) game code. | ||
# Cakefile template from: http://caseybrant.com/2012/03/20/sample-cakefile.html | ||
|
||
FILE_NAME = 'gpdk' # the name given to the output .js file | ||
OUTPUT_DIR = 'lib' # the directory where the output .js file lives | ||
|
||
{exec} = require 'child_process' | ||
|
||
task 'compile', 'Compiles coffee in src/ to js in OUTPUT_DIR/', -> | ||
compile() | ||
|
||
compile = (callback) -> | ||
fileString = 'src/game/modules src/game/objects/abstract src/game/objects/base src/physics/objects src/physics/modules src' | ||
exec "coffee -b -j #{OUTPUT_DIR}/#{FILE_NAME}.js -c #{fileString}", (err, stdout, stderr) -> | ||
throw err if err | ||
console.log "Compiled coffee files" | ||
callback?() |
Oops, something went wrong.