Permalink
Browse files

Added minified browser version.

  • Loading branch information...
1 parent 615981e commit 3257828177da94d3830c695ce1769d68eb75b765 @toots committed May 13, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −1 Cakefile
  2. +1 −0 lib/browser/asana.min.js
  3. +2 −1 package.json
View
@@ -14,7 +14,8 @@ call = (command, fn) ->
build = (fn) ->
call "coffee -c -o lib/node/ src/node/*.coffee", ->
call "rm -rf tmp && mkdir tmp && cp src/node/*.coffee src/browser/*.coffee tmp && browserify tmp/entry.coffee -o lib/browser/asana.js", ->
- call "rm -rf tmp && mkdir tmp && cp src/node/*.coffee test/*.coffee test/browser/wrapper.coffee tmp && browserify tmp/wrapper.coffee -o test/browser/files/bundle.js", fn
+ call "minifyjs lib/browser/asana.js > lib/browser/asana.min.js", ->
+ call "rm -rf tmp && mkdir tmp && cp src/node/*.coffee test/*.coffee test/browser/wrapper.coffee tmp && browserify tmp/wrapper.coffee -o test/browser/files/bundle.js", fn
task 'build', 'Compile coffee scripts into plain Javascript files', ->
build ->
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -34,6 +34,7 @@
},
"devDependencies" : {
"browserify" : "1.10.12",
- "coffee-script" : "1.3.1"
+ "coffee-script" : "1.3.1",
+ "minifyjs" : "0.1.0"
}
}

0 comments on commit 3257828

Please sign in to comment.