Permalink
Browse files

Added growl notice for compile and removed compiled JS files which ke…

…ep changing even without source changes. May put them back in later. Maybe.
  • Loading branch information...
jacwright committed Jan 29, 2012
1 parent d8ccfd5 commit 42f72d627dabf4c91429383fdf69b2bdae671a46
Showing with 2 additions and 10,819 deletions.
  1. +2 −0 Cakefile
  2. +0 −3,356 src/admin/js/app.js
  3. +0 −3,731 src/admin/js/login.js
  4. +0 −3,732 src/admin/js/register.js
View
@@ -1,6 +1,7 @@
fs = require 'fs'
browserify = require 'browserify'
uglify = require 'uglify-js'
+exec = require('child_process').exec
base = "#{__dirname}/src/admin/js"
watching = false
@@ -20,6 +21,7 @@ package = (files, output) ->
write = ->
fs.writeFileSync output, bundle.bundle()
console.log(ansi.green, 'Wrote', output, ansi.none)
+ exec('growlnotify -m "' + output.split('/').pop() + ' has been recompiled." "Recompile"')
if watching
bundle.on 'bundle', -> write()
Oops, something went wrong.

0 comments on commit 42f72d6

Please sign in to comment.