mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
yui.github.io/yuicompressor
This commit is contained in:
parent
abe77b49b1
commit
97c00d50d8
2 changed files with 21 additions and 0 deletions
19
projects/yui.github.io/yuicompressor/package.yml
Normal file
19
projects/yui.github.io/yuicompressor/package.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
distributable:
|
||||
url: https://github.com/yui/yuicompressor/releases/download/v{{version}}/yuicompressor-{{version}}.zip
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: yui/yuicompressor
|
||||
warnings:
|
||||
- vendored
|
||||
dependencies:
|
||||
openjdk.org: '*'
|
||||
build:
|
||||
script:
|
||||
- mkdir -p {{prefix}}/bin
|
||||
- echo -e '#!/bin/bash\njava -jar $(dirname "$0")/yuicompressor-{{version}}.jar $@' > ./yuicompressor
|
||||
- install yuicompressor-{{version}}.jar yuicompressor {{prefix}}/bin/
|
||||
provides:
|
||||
- bin/yuicompressor
|
||||
test:
|
||||
script:
|
||||
- yuicompressor --nomunge --preserve-semi ./test.js | grep 'var i=1;console.log(i);'
|
2
projects/yui.github.io/yuicompressor/test.js
vendored
Normal file
2
projects/yui.github.io/yuicompressor/test.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
var i = 1; // foo
|
||||
console.log(i); // bar
|
Loading…
Reference in a new issue