Files
dotfiles/zsh/nodejs.zsh
Jim Myhrberg 664f06bbdb refactor: use rtx to manage Go, Python, NodeJS, and more
This means g, pyenv, and volta are gone. And a lot of other tools
previously installed with zinit are also installed with rtx now instead.

This includes starship, direnv, shfmt, jq, and more.
2023-03-09 23:35:17 +00:00

45 lines
938 B
Bash
Executable File

#
# Node.js environment setup.
#
# ==============================================================================
# global node packages
# ==============================================================================
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
appcenter-cli
eslint
eslint-config-prettier
eslint-plugin-prettier
eslint_d
htmllint-cli
httpsnippet
js-beautify
jsonlint
localtunnel
markdown-it
prettier
prettier-plugin-toml
standard-version
stylelint
tslint
typescript
typescript-formatter
typescript-language-server
uuid-cli
vscode-css-languageserver-bin
vscode-json-languageserver
yaml-language-server
yarn
)
npm install -g "${npm_packages[@]}"
}