feat(tools): install Node-based CLI tools with mise

Use `mise` to install and manage tools normally installed with `npm`.
This commit is contained in:
2024-05-09 02:23:13 +01:00
parent 1158360c21
commit 2cbd074bac
2 changed files with 25 additions and 30 deletions

View File

@@ -11,6 +11,31 @@
"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "latest"
"go:google.golang.org/protobuf/cmd/protoc-gen-go" = "latest"
"go:mvdan.cc/gofumpt" = "latest"
"npm:@mermaid-js/mermaid-cli" = "latest"
"npm:@prettier/plugin-php" = "latest"
"npm:@prettier/plugin-ruby" = "latest"
"npm:@prettier/plugin-xml" = "latest"
"npm:dockerfile-language-server-nodejs" = "latest"
"npm:eslint" = "latest"
"npm:eslint-config-prettier" = "latest"
"npm:eslint-plugin-prettier" = "latest"
"npm:eslint_d" = "latest"
"npm:htmllint-cli" = "latest"
"npm:httpsnippet" = "latest"
"npm:jsonlint" = "latest"
"npm:localtunnel" = "latest"
"npm:markdown-it" = "latest"
"npm:prettier" = "latest"
"npm:prettier-plugin-toml" = "latest"
"npm:prettier-pnp" = "latest"
"npm:stylelint" = "latest"
"npm:typescript" = "latest"
"npm:typescript-formatter" = "latest"
"npm:typescript-language-server" = "latest"
"npm:uuid-cli" = "latest"
"npm:vscode-css-languageserver-bin" = "latest"
"npm:vscode-json-languageserver" = "latest"
"npm:yaml-language-server" = "latest"
1password-cli = "latest"
actionlint = "latest"
buf = "latest"

View File

@@ -8,36 +8,6 @@
install_node_global_packages() {
local npm_packages=(
@commitlint/cli
@commitlint/config-conventional
@mermaid-js/mermaid-cli
@prettier/plugin-php
@prettier/plugin-ruby
@prettier/plugin-xml
dockerfile-language-server-nodejs
eslint
eslint-config-prettier
eslint-plugin-prettier
eslint_d
htmllint-cli
httpsnippet
js-beautify
jsonlint
localtunnel
markdown-it
prettier
prettier-plugin-toml
prettier-pnp
standard-version
stylelint
tslint
typescript
typescript-formatter
typescript-language-server
uuid-cli
vscode-css-languageserver-bin
vscode-json-languageserver
yaml-language-server
)
npm install -g "${npm_packages[@]}"