From 2cbd074bace9fc22f49a56177d475d910ffc54ba Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 9 May 2024 02:23:13 +0100 Subject: [PATCH] feat(tools): install Node-based CLI tools with mise Use `mise` to install and manage tools normally installed with `npm`. --- config/mise/config.toml | 25 +++++++++++++++++++++++++ zsh/nodejs.zsh | 30 ------------------------------ 2 files changed, 25 insertions(+), 30 deletions(-) diff --git a/config/mise/config.toml b/config/mise/config.toml index aeae901..23510a4 100644 --- a/config/mise/config.toml +++ b/config/mise/config.toml @@ -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" diff --git a/zsh/nodejs.zsh b/zsh/nodejs.zsh index bc40136..9defe6b 100755 --- a/zsh/nodejs.zsh +++ b/zsh/nodejs.zsh @@ -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[@]}"