Skip to content

Commit

Permalink
Set order for js
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobeat committed Sep 1, 2012
1 parent 27ccabe commit 1d642cb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Cakefile
@@ -1,7 +1,15 @@
require 'flour'
flour = require 'flour'

task 'build', ->
bundle 'lib/*.js', 'dist/telepong.js'
bundle [
'lib/main.js'
'lib/telepong.js'
'lib/game.js'
], 'dist/telepong.js'

task 'watch', ->

flour.minifiers['.js'] = (file, cb) -> cb file.buffer

invoke 'build'
watch 'lib/*.js', -> invoke 'build'

0 comments on commit 1d642cb

Please sign in to comment.