Skip to content

Commit

Permalink
added $z attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyko committed May 8, 2014
1 parent b752b6d commit 772948a
Show file tree
Hide file tree
Showing 44 changed files with 2,577 additions and 917 deletions.
17 changes: 17 additions & 0 deletions Cakefile
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?()
Loading

0 comments on commit 772948a

Please sign in to comment.