#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: |
Description
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)
Change History (5)
Changed 12 years ago by
Attachment: | shrinksafe added |
---|
comment:1 Changed 12 years ago by
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 12 years ago by
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 11 years ago by
Cc: | Richard Backhouse added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
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 11 years ago by
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.
The bash script source.