Skip to content

Commit

Permalink
Update dev tools installation with Volta and latest NodeJS
Browse files Browse the repository at this point in the history
  • Loading branch information
Goran Ninkovic committed Mar 29, 2024
1 parent f9de5ca commit 47d6116
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ansible-playbook ./playbook.yml -K -e username=$(whoami) -e=gui=true -e=dev_tool
- lazydocker
- libutempter0
- make
- nvm with latest nodejs
- volta with latest nodejs
- postman
- python3-pip
- redshift
Expand Down
3 changes: 0 additions & 3 deletions post-installation/defaults/.zsh_plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ ohmyzsh/ohmyzsh path:plugins/history kind:defer
ohmyzsh/ohmyzsh path:plugins/bun kind:defer
ohmyzsh/ohmyzsh path:plugins/colored-man-pages kind:defer

# Node Version Manager
lukechilds/zsh-nvm kind:defer

# Provides syntax highlighting for the shell
zdharma-continuum/fast-syntax-highlighting kind:defer

Expand Down
9 changes: 4 additions & 5 deletions post-installation/defaults/.zshrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Load the antidote plugin manager
source ${ZDOTDIR:-~}/.antidote/antidote.zsh

# Env variables required for plugins
export NVM_LAZY_LOAD=true
export NVM_AUTO_USE=true
export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim' 'nvim' 'code' 'java' 'phpstorm' 'intellij-idea-ultimate' 'intellij-idea-community' 'webstorm' 'git' 'gitkraken')

# Check if the plugins file is older than the txt file and regenerate it if needed
zsh_plugins=${ZDOTDIR:-$HOME}/.zsh_plugins
if [[ ! ${zsh_plugins}.zsh -nt ${zsh_plugins}.txt ]]; then
Expand Down Expand Up @@ -113,3 +108,7 @@ export FZF_TMUX_HEIGHT=50
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

# volta
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
10 changes: 10 additions & 0 deletions post-installation/tasks/dev_tools_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
curl -s "https://get.sdkman.io" | bash
become_user: "{{ username }}"

- name: Install Volta
ansible.builtin.shell: |
curl https://get.volta.sh | bash
become_user: "{{ username }}"

- name: Install latest NodeJS using Volta
ansible.builtin.shell: >
zsh -i -c "volta install node"
become_user: "{{ username }}"

- name: Download and install Hyperfine
ansible.builtin.include_tasks: install_github_asset.yaml
vars:
Expand Down
3 changes: 0 additions & 3 deletions post-installation/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
ansible.builtin.include_tasks: fonts.yaml
when: fonts or all

- name: Install node and npm with nvm
ansible.builtin.include_tasks: node.yaml

- name: Install vpn software
ansible.builtin.include_tasks: vpn.yaml
when: vpn or all
Expand Down
10 changes: 0 additions & 10 deletions post-installation/tasks/node.yaml

This file was deleted.

0 comments on commit 47d6116

Please sign in to comment.