johnmuhl / javascript-tools-tmbundle forked from subtleGradient/javascript-tools.tmbundle

Essential Tools for developing Javascript in TextMate

This URL has Read+Write access

javascript-tools-tmbundle / Commands / Compress current file.tmCommand
100644 24 lines (23 sloc) 0.732 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>cat &gt;'/tmp/compress_this_file.js'
java -jar "$TM_BUNDLE_SUPPORT/bin/custom_rhino.jar" -c '/tmp/compress_this_file.js'</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
<string>^@c</string>
<key>name</key>
<string>Dojo ShrinkSafe (current file)</string>
<key>output</key>
<string>replaceDocument</string>
<key>scope</key>
<string>source.js</string>
<key>uuid</key>
<string>0B51E320-D218-4352-8AEF-096B3232E818</string>
</dict>
</plist>