install yarn
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
export install_dir="$dotfiles_dir/install"
|
export install_dir="$dotfiles_dir/install"
|
||||||
source "$install_dir/utils.sh"
|
source "$install_dir/utils.sh"
|
||||||
@@ -23,8 +23,9 @@ fi
|
|||||||
touch "$install_lock_file"
|
touch "$install_lock_file"
|
||||||
|
|
||||||
# Install all scripts by default
|
# Install all scripts by default
|
||||||
|
|
||||||
if [ -z "$TARGET" ]; then
|
if [ -z "$TARGET" ]; then
|
||||||
TARGET="all"
|
export TARGET="all"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TARGET" == "all" ]; then
|
if [ "$TARGET" == "all" ]; then
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ fi
|
|||||||
|
|
||||||
printf "nvm is installed, upgrading...\n"
|
printf "nvm is installed, upgrading...\n"
|
||||||
git --git-dir="$NVM_DIR/.git" pull
|
git --git-dir="$NVM_DIR/.git" pull
|
||||||
nvm update --lts node
|
|
||||||
nvm update node
|
|
||||||
nvm update npm
|
|
||||||
nvm --version
|
nvm --version
|
||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
|
|||||||
17
install/21-yarn.sh
Executable file
17
install/21-yarn.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# yarn is installed
|
||||||
|
if not_installed "yarn"; then
|
||||||
|
|
||||||
|
echo "Installing yarn..."
|
||||||
|
|
||||||
|
# Install nvm
|
||||||
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||||
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
|
update
|
||||||
|
sudo apt install --no-install-recommends yarn
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "yarn is installed"
|
||||||
|
yarn --version
|
||||||
0
install/utils.sh
Normal file → Executable file
0
install/utils.sh
Normal file → Executable file
Reference in New Issue
Block a user