Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#9384 closed enhancement (wontfix)

ShrinkSafe Bash Script Wrapper

Reported by: Miksago Owned by: alex
Priority: high Milestone: tbd
Component: ShrinkSafe Version: 1.3.0
Keywords: Cc: Richard Backhouse
Blocked By: Blocking:


Hi, I was told that to submit something to Dojo I would need to create a ticket for it and a bunch of other stuff.

Well, I've created a really simple wrapper script for running ShrinkSafe?. It's currently written using Bash scripting, although could probably be done in batch scripting as well for win32 users.

Attached it the code, and it requires the uri to the ShrinkSafe? package on your computer.

It's usage is rather simple,

$ ./shrinksafe file1.js [file2.js file3.js ...]
>> file1.min.js [file2.min.js file3.min.js/...]

The above example is assuming that you have placed the script into /usr/bin or something like that.

Hopefully this will be useful to those using ShrinkSafe? in the future.

Attachments (1)

shrinksafe (303 bytes) - added by Miksago 13 years ago.
The bash script source.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by Miksago

Attachment: shrinksafe added

The bash script source.

comment:1 Changed 13 years ago by Adam Peller

We do require a signed CLA for all contributions

I'm not sure this merits inclusion in the toolkit since it makes assumptions about file locations. Also, running the existing command for shrinksafe isn't much harder than invoking this script, but works in pretty much all environments:

{{ java -jar shrinksafe.jar foo.js > bar.js }}

comment:2 Changed 13 years ago by Adam Peller

ic, you're mapping multiple files to different targets. useful, but I'm still not sure it needs to be in the toolkit.

comment:3 Changed 12 years ago by Adam Peller

Cc: Richard Backhouse added
Resolution: wontfix
Status: newclosed

I'd like to see if we can publish this useful script somewhere as a blog post or something, but I'd like to keep the shrinksafe distribution minimalist

comment:4 Changed 12 years ago by miksago

Okay Peller, I'm happy with that, I just thought I should put this out there, and you're right, it's not too had to invoke shrinksafe.

  • Micheil.
Note: See TracTickets for help on using tickets.