packages: fix pnpm tasks

Didn't notice this when moving to system's pnpm -_-
This commit is contained in:
Hoang Nguyen 2023-05-20 00:00:00 +07:00
parent 642230a986
commit 3881546e21
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
3 changed files with 18 additions and 47 deletions

View File

@ -5,6 +5,7 @@ skip_list:
- package-latest
- fqcn[action-core]
- name[casing]
- var-naming[no-role-prefix]
warn_list:
- name[template]

View File

@ -7,7 +7,7 @@
import_tasks: go-packages.yml
- name: packages | Install Rust packages with cargo
tags: rust
tags: [rust, cargo]
environment:
CARGO_HOME: '{{ ansible_env.HOME }}/.local/share/cargo'
import_tasks: rust-packages.yml
@ -15,7 +15,7 @@
# Obviously you need to have NodeJS installed.
# Also require settings in .npmrc (*dotfiles* playbook).
- name: packages | Install Javascript packages with pnpm
tags: nodejs
tags: [nodejs, pnpm]
environment:
PNPM_HOME: '{{ ansible_env.HOME }}/.local/share/pnpm'
import_tasks: pnpm-packages.yml

View File

@ -1,90 +1,60 @@
---
- name: packages | Install mermaid-cli
tags: mermaid
command: ~/.local/bin/pnpm add -g @mermaid-js/mermaid-cli@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g @mermaid-js/mermaid-cli@latest
- name: packages | Install marp-cli and its engines
tags: marp
command: ~/.local/bin/pnpm add -g @marp-team/marp-cli@latest @marp-team/marpit@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g @marp-team/marp-cli@latest @marp-team/marpit@latest
- name: packages | Install Vercel's pkg
tags: pkg
command: ~/.local/bin/pnpm add -g pkg@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g pkg@latest
- name: packages | Install mapscii
tags: mapscii
command: ~/.local/bin/pnpm add -g mapscii@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g mapscii@latest
- name: packages | Install carbon-now-cli
tags: carbon
command: ~/.local/bin/pnpm add -g carbon-now-cli@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g carbon-now-cli@latest
- name: packages | Install antora
tags: antora
command: ~/.local/bin/pnpm add -g @antora/cli@latest @antora/site-generator@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g @antora/cli@latest @antora/site-generator@latest
- name: packages | Install wrangler2
tags: wrangler
command: ~/.local/bin/pnpm add -g wrangler@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g wrangler@latest
- name: packages | Install conventional commits suite
tags: conventional-commit
command: ~/.local/bin/pnpm add -g conventional-changelog-cli@latest @commitlint/cli@latest commitizen@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g conventional-changelog-cli@latest @commitlint/cli@latest commitizen@latest
- name: packages | Install swagger-ui-watcher
tags: conventional-commit
command: ~/.local/bin/pnpm add -g swagger-ui-watcher@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g swagger-ui-watcher@latest
- name: packages | Install browser-sync
tags: browser-sync
command: ~/.local/bin/pnpm add -g browser-sync@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g browser-sync@latest
- name: packages | Install wavedrom-cli
tags: wavedrom
command: ~/.local/bin/pnpm add -g wavedrom-cli@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g wavedrom-cli@latest
- name: packages | Install cdktf
tags: cdktf
command: ~/.local/bin/pnpm add -g cdktf-cli@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g cdktf-cli@latest
- name: packages | Install projen
tags: projen
command: ~/.local/bin/pnpm add -g projen@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g projen@latest
- name: packages | Install nx
tags: nx
command: ~/.local/bin/pnpm add -g nx@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g nx@latest
- name: packages | Install serverless
tags: serverless
command: ~/.local/bin/pnpm add -g serverless@latest
args:
removes: ~/.local/bin/pnpm
command: pnpm add -g serverless@latest