Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hakobera/uglify-me

JavaScript uglify server
https://github.com/hakobera/uglify-me

Last synced: about 1 month ago
JSON representation

JavaScript uglify server

Awesome Lists containing this project

README

        

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