This is a small helper ruby script to minify multiple JavaScript files in a directory using UglifyJS2.
ruby minifier.rb "target/path"
or async mode
ruby minifier.rb "target/path" t
- UglifyJS 2
- MiniTest
-
rubygems.org/gems/minitest/versions/5.7.0 (for tests)
- MiniTest Reporters
-
github.com/kern/minitest-reporters (for tests)
Run the following command:
ruby minify_test.rb