JavaScript uglify server
JavaScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public First commit Jan 25, 2012
test First commit Jan 25, 2012
.gitignore First commit Jan 25, 2012
LICSENCE First commit Jan 25, 2012
Makefile First commit Jan 25, 2012
Procfile Add Procfile for Heroku Jan 28, 2012
README.md Update README.md May 29, 2012
app.js First commit Jan 25, 2012
package.json First commit Jan 25, 2012

README.md

uglify-me

This applicaion is JavaScript uglify server for inhouse usage

Prerequisites

You'll need to install the following software to run this application.

  • Node.js (>= 0.6.0)

Usage

$ git clone https://github.com/hakobera/uglify-me.git
$ cd uglify-me
$ npm install
$ node app.js

Usage from curl

You can use this application from curl. Make shell script like below named uglify.sh.

#!/bin/sh
CURRENT=$(cd $(dirname $0) && pwd)

files=''
num=1

echo "Find uglify target files in $CURRENT/$1"
for JS in `ls $CURRENT/$1/*.js`
do
  files="$files -F f$num=@$JS"
  num=`expr $num + 1`
  echo "found $JS"
done

echo "curl $files http://localhost:3000/uglify"
curl $files http://localhost:3000/uglify > $2

If your JavaScript source files to uglify in javascripts directory, then execute below.

uglify.sh javascripts output.js