From ccf858e75703812895e8f9e3a01373cd534c9a47 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:24:09 +0200 Subject: [PATCH] +bitwarden.com (#5113) * new file: projects/bitwarden.com/package.yml * npm: '@bitwarden/cli' --- projects/bitwarden.com/package.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/bitwarden.com/package.yml diff --git a/projects/bitwarden.com/package.yml b/projects/bitwarden.com/package.yml new file mode 100644 index 00000000..996c3af7 --- /dev/null +++ b/projects/bitwarden.com/package.yml @@ -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}}