mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:26:40 +00:00
The binary selection logic has been fixed in zinit, so it now correctly picks the right binary for volta.
65 lines
1.5 KiB
Bash
Executable File
65 lines
1.5 KiB
Bash
Executable File
#
|
|
# Node.js environment setup.
|
|
#
|
|
|
|
# ==============================================================================
|
|
# Volta
|
|
# ==============================================================================
|
|
|
|
zinit light-mode wait lucid as'program' from'gh-r' \
|
|
atclone'./volta completions zsh > _volta' atpull'%atclone' \
|
|
for @volta-cli/volta
|
|
|
|
# ==============================================================================
|
|
# aliases
|
|
# ==============================================================================
|
|
|
|
alias no="node"
|
|
alias np="npm"
|
|
alias ni="npm install"
|
|
alias ngi="npm install -g"
|
|
alias cof="coffee"
|
|
|
|
# ==============================================================================
|
|
# global node packages
|
|
# ==============================================================================
|
|
|
|
install_node_global_packages() {
|
|
local packages=(
|
|
npm
|
|
npx
|
|
yarn
|
|
@commitlint/cli
|
|
@commitlint/config-conventional
|
|
@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
|
|
mermaid.cli
|
|
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
|
|
)
|
|
|
|
volta install "${packages[@]}"
|
|
}
|