Install node using volta
This commit is contained in:
@@ -138,7 +138,7 @@ function getHomebrewDirectoryPath() {
|
|||||||
print -- ${homebrew_prefix:-$(getDefaultHomebrewPrefix)}/Homebrew
|
print -- ${homebrew_prefix:-$(getDefaultHomebrewPrefix)}/Homebrew
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_folders() {
|
function configureFolders() {
|
||||||
local dirPath
|
local dirPath
|
||||||
for dirPath in ${HOME}/bin ${HOME}/.vim/{backups,swaps}; do
|
for dirPath in ${HOME}/bin ${HOME}/.vim/{backups,swaps}; do
|
||||||
[[ ! -d ${dirPath} ]] && indicateActivity -- "Creating ${dirPath}" mkdir ${dirPath}
|
[[ ! -d ${dirPath} ]] && indicateActivity -- "Creating ${dirPath}" mkdir ${dirPath}
|
||||||
@@ -146,10 +146,15 @@ function configure_folders() {
|
|||||||
indicateActivity -- 'Hide folders' hideFolders
|
indicateActivity -- 'Hide folders' hideFolders
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function installNode() {
|
||||||
|
volta install node
|
||||||
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
lop -y h1 -- -i 'Setup User'
|
lop -y h1 -- -i 'Setup User'
|
||||||
[[ $(id -u) -eq 0 ]] && { loptty -- -e 'Command must not be run as root.' -e $dirPath; return 16 }
|
[[ $(id -u) -eq 0 ]] && { loptty -- -e 'Command must not be run as root.' -e $dirPath; return 16 }
|
||||||
configure_folders
|
configureFolders
|
||||||
|
indicateActivity -- 'Install node' installNode
|
||||||
local homebrew_prefix=`getDefaultHomebrewPrefix`
|
local homebrew_prefix=`getDefaultHomebrewPrefix`
|
||||||
local homebrew_directory=`getHomebrewDirectoryPath`
|
local homebrew_directory=`getHomebrewDirectoryPath`
|
||||||
checkExecPrerequisites || return 17
|
checkExecPrerequisites || return 17
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ function installBrews() {
|
|||||||
installBrew imap-backup
|
installBrew imap-backup
|
||||||
installBrew imapsync
|
installBrew imapsync
|
||||||
installBrew nmap
|
installBrew nmap
|
||||||
installBrew node
|
|
||||||
installBrew pdfgrep
|
installBrew pdfgrep
|
||||||
installBrew php
|
installBrew php
|
||||||
installBrew python
|
installBrew python
|
||||||
@@ -85,6 +84,7 @@ function installBrews() {
|
|||||||
installBrew sqlite
|
installBrew sqlite
|
||||||
installBrew tree
|
installBrew tree
|
||||||
installBrew tidy-html5
|
installBrew tidy-html5
|
||||||
|
installBrew volta
|
||||||
installBrew yq
|
installBrew yq
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user