+bitwarden.com (#5113)

* new file:   projects/bitwarden.com/package.yml

* npm: '@bitwarden/cli'
This commit is contained in:
Andrew 2024-02-04 23:24:09 +02:00 committed by GitHub
parent 4ec877cac6
commit ccf858e757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,35 @@
distributable:
url: https://registry.npmjs.org/@bitwarden/cli/-/cli-{{version}}.tgz
strip-components: 1
versions:
npm: '@bitwarden/cli'
dependencies:
nodejs.org: ^20
build:
dependencies:
npmjs.com: '*'
script:
- npm i husky
- git init
- npm i $ARGS .
- run: ln -s ../libexec/bin/bw bw
working-directory: ${{prefix}}/bin
env:
ARGS:
- -ddd
- --global
- --build-from-source
- --prefix={{prefix}}/libexec
- --install-links
- --unsafe-perm
provides:
- bin/bw
test:
- bw generate --length 10
- echo "Testing" | bw encode | grep 'VGVzdGluZw'
- bw --version | grep {{version}}