mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-11-04 22:10:09 -05:00
randomness
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
.aws/credentials
|
**/.aws/credentials
|
||||||
.ssh/known_hosts*
|
**/.ssh/known_hosts*
|
||||||
|
**/.ssh/config_private
|
||||||
*id_rsa*
|
*id_rsa*
|
||||||
*id_ed25519*
|
*id_ed25519*
|
||||||
|
|||||||
1
Brewfile
1
Brewfile
@@ -182,7 +182,6 @@ brew "tor"
|
|||||||
brew "torsocks"
|
brew "torsocks"
|
||||||
brew "travis"
|
brew "travis"
|
||||||
brew "twilio/brew/twilio"
|
brew "twilio/brew/twilio"
|
||||||
brew "typescript"
|
|
||||||
brew "whois", link: true
|
brew "whois", link: true
|
||||||
brew "wireguard-tools"
|
brew "wireguard-tools"
|
||||||
brew "wireguard-go"
|
brew "wireguard-go"
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ then
|
|||||||
curl https://get.volta.sh | bash -s -- --skip-setup
|
curl https://get.volta.sh | bash -s -- --skip-setup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
volta install node@lts
|
|
||||||
volta install node@latest # remove when LTS officially supports arm64
|
volta install node@latest # remove when LTS officially supports arm64
|
||||||
volta install npm@6 # having issues with npm@7 and volta
|
volta install npm@6 # having issues with npm@7 and volta
|
||||||
volta install yarn@1
|
volta install yarn@1
|
||||||
|
volta fetch node@lts # not native on M1 but good to have
|
||||||
|
|
||||||
volta list node
|
volta list node
|
||||||
volta list npm
|
volta list npm
|
||||||
@@ -25,16 +25,20 @@ packages=(
|
|||||||
@lhci/cli
|
@lhci/cli
|
||||||
autoprefixer
|
autoprefixer
|
||||||
browserify
|
browserify
|
||||||
|
dtslint
|
||||||
|
dts-gen
|
||||||
eslint
|
eslint
|
||||||
express
|
express
|
||||||
express-generator
|
express-generator
|
||||||
firebase-tools
|
firebase-tools
|
||||||
gatsby-cli
|
gatsby-cli
|
||||||
gulp
|
gulp
|
||||||
|
gzip-size-cli
|
||||||
json-server
|
json-server
|
||||||
netlify-cli
|
netlify-cli
|
||||||
nodemon
|
nodemon
|
||||||
npm-check-updates
|
npm-check-updates
|
||||||
|
npm-name-cli
|
||||||
pm2
|
pm2
|
||||||
postcss
|
postcss
|
||||||
postcss-cli
|
postcss-cli
|
||||||
@@ -46,13 +50,14 @@ packages=(
|
|||||||
stylelint
|
stylelint
|
||||||
svgo
|
svgo
|
||||||
terser
|
terser
|
||||||
|
typescript
|
||||||
vercel
|
vercel
|
||||||
webpack
|
webpack
|
||||||
webpack-cli
|
webpack-cli
|
||||||
)
|
)
|
||||||
|
|
||||||
for p in "${packages[@]}"; do
|
for p in "${packages[@]}"; do
|
||||||
npm install --global "$p" || echo "$p not found"
|
volta run --no-yarn npm install --global "$p" || echo "$p not found"
|
||||||
done
|
done
|
||||||
|
|
||||||
volta list all
|
volta list all
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ alias dcl="docker-compose logs -f"
|
|||||||
#
|
#
|
||||||
# Node
|
# Node
|
||||||
#
|
#
|
||||||
alias npm_clean="rm -rf node_modules && npm cache clean && npm install"
|
alias fresh_npm="rm -rf node_modules package-lock.json && npm install"
|
||||||
alias yarn_clean="rm -rf node_modules && yarn cache clean && yarn install"
|
alias fresh_yarn="rm -rf node_modules yarn.lock && yarn install"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hugo
|
# Hugo
|
||||||
|
|||||||
@@ -45,8 +45,11 @@ update() {
|
|||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
echo -e "${YELLOW}Updating NPM/Yarn packages...${NC}"
|
echo -e "${YELLOW}Updating NPM/Yarn packages...${NC}"
|
||||||
volta run npm update --global
|
volta install node@latest
|
||||||
volta run yarn global upgrade
|
volta install npm@6 # having issues with npm@7 and volta
|
||||||
|
volta install yarn@1
|
||||||
|
volta run --no-yarn --node latest --npm 6 npm update --global
|
||||||
|
volta run --node latest --yarn 1 yarn global upgrade
|
||||||
|
|
||||||
echo -e "${YELLOW}Updating Ruby gems...${NC}"
|
echo -e "${YELLOW}Updating Ruby gems...${NC}"
|
||||||
gem update --system
|
gem update --system
|
||||||
|
|||||||
Reference in New Issue
Block a user