mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
31 lines
655 B
YAML
31 lines
655 B
YAML
|
distributable: ~
|
||
|
display-name: zx
|
||
|
versions:
|
||
|
github: google/zx/tags
|
||
|
dependencies:
|
||
|
nodejs.org: '*'
|
||
|
build:
|
||
|
dependencies:
|
||
|
npmjs.com: '*'
|
||
|
curl.se: '*'
|
||
|
script:
|
||
|
- curl -L https://registry.npmjs.org/zx/-/zx-{{version}}.tgz --output zx-{{version}}.tgz
|
||
|
- npm i $ARGS
|
||
|
- run: ln -s ../libexec/bin/zx zx
|
||
|
working-directory: "{{prefix}}/bin"
|
||
|
env:
|
||
|
ARGS:
|
||
|
- -ddd
|
||
|
- --global
|
||
|
- --build-from-source
|
||
|
- --prefix={{prefix}}/libexec
|
||
|
- --unsafe-perm
|
||
|
- zx-{{version}}.tgz
|
||
|
provides:
|
||
|
- bin/zx
|
||
|
test:
|
||
|
script:
|
||
|
- zx --version | grep {{version}}
|
||
|
- zx test.mjs | grep "name is bar"
|
||
|
- ls | grep bar
|