mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-11-04 22:10:09 -05:00
a boatload of changes/fixes
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
set -e
|
||||
|
||||
# fetch and install Volta (better nvm)
|
||||
if ! command -v volta &>/dev/null; then
|
||||
# curl https://get.volta.sh | bash -s -- --skip-setup
|
||||
brew install volta
|
||||
if ! command -v fnm &>/dev/null; then
|
||||
echo "fnm not found, exiting..."
|
||||
return
|
||||
fi
|
||||
|
||||
volta install node@latest # remove when LTS officially supports arm64
|
||||
volta install npm@8
|
||||
volta install yarn@1
|
||||
volta fetch node@lts # not native on M1 but good to have
|
||||
|
||||
volta list node
|
||||
volta list npm
|
||||
volta list yarn
|
||||
fnm install --latest --corepack-enabled
|
||||
npm install --global npm
|
||||
|
||||
# npm ls --global --parseable --depth=0 | awk '{gsub(/\/.*\//,"",$1); print}' | sort -u
|
||||
packages=(
|
||||
@angular/cli
|
||||
@babel/cli
|
||||
@babel/core
|
||||
@lhci/cli
|
||||
@@ -26,10 +20,11 @@ packages=(
|
||||
autoprefixer
|
||||
cross-env
|
||||
depcheck
|
||||
dtslint
|
||||
dts-gen
|
||||
dtslint
|
||||
esbuild
|
||||
eslint
|
||||
gatsby-cli
|
||||
gzip-size-cli
|
||||
json-server
|
||||
markdownlint-cli2
|
||||
@@ -44,6 +39,7 @@ packages=(
|
||||
prettier
|
||||
release-it
|
||||
rollup
|
||||
serverless
|
||||
stylelint
|
||||
superstatic
|
||||
svgo
|
||||
@@ -56,9 +52,7 @@ packages=(
|
||||
)
|
||||
|
||||
for p in "${packages[@]}"; do
|
||||
volta run --no-yarn -- npm install --global "$p" || echo "$p not found"
|
||||
NPM_CONFIG_FUND=false npm install --global --no-audit "$p" || echo "$p not found"
|
||||
done
|
||||
|
||||
unset p packages
|
||||
|
||||
volta list all
|
||||
|
||||
Reference in New Issue
Block a user