mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
google.com/zx (#3562)
* new file: projects/google.com/zx/package.yml new file: projects/google.com/zx/test.mjs * fixes --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
aa028c50b6
commit
f193be5d01
2 changed files with 35 additions and 0 deletions
30
projects/google.com/zx/package.yml
Normal file
30
projects/google.com/zx/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
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
|
5
projects/google.com/zx/test.mjs
Normal file
5
projects/google.com/zx/test.mjs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env zx
|
||||
|
||||
let name = YAML.parse('foo: bar').foo
|
||||
console.log(`name is ${name}`)
|
||||
await $`touch ${name}`
|
Loading…
Reference in a new issue