[Pkg-javascript-commits] [sockjs-client] 217/434: Removing unused `minify.coffee` script
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit e57caa69a854aecab28e3fcfddea16df2061bc35
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Nov 28 15:25:23 2011 +0000
Removing unused `minify.coffee` script
---
bin/minify.coffee | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/bin/minify.coffee b/bin/minify.coffee
deleted file mode 100644
index 78da0e9..0000000
--- a/bin/minify.coffee
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env coffee
-
-fs = require('fs')
-uglify = require('uglify-js')
-optparse = require('optparse')
-
-switches = [
- ['-p', '--pretty', 'Prettify javascript']
-]
-
-minify_options = {toplevel: true}
-parser = new optparse.OptionParser(switches)
-parser.on 'pretty', ->
- minify_options.beautify = true
-
-filenames = parser.parse(process.ARGV.slice(2))
-
-content = for filename in filenames
- fs.readFileSync(filename, encoding='utf8')
-
-console.warn(" [.] Minifying:", filenames.join(', '))
-
-minify = (data, minify_options)->
- ast = uglify.parser.parse(data)
- ast = uglify.uglify.ast_mangle(ast, minify_options)
- ast = uglify.uglify.ast_squeeze(ast)
- uglify.uglify.gen_code(ast, minify_options)
-
-process.stdout.write(minify(content.join('\n'), minify_options))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list