Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
df6b44e541
commit
410d0b33c6
46 changed files with 566 additions and 249 deletions
49
post-install
Executable file
49
post-install
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# post-install
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This is the post-install script for my dotfiles. It should be only run
|
||||
# after install has been run and the system has been rebooted. This script
|
||||
# installs global npm packages.
|
||||
#
|
||||
# USAGE:
|
||||
# ./post-install
|
||||
. ./system/.local/bin/utils
|
||||
|
||||
#######################################
|
||||
# Configuration variables
|
||||
#######################################
|
||||
# Array of npm packages which should be installed globally
|
||||
NPM_PACKAGES=(
|
||||
"@vue/cli"
|
||||
"eslint"
|
||||
"gatsby-cli"
|
||||
"npm-check-updates"
|
||||
)
|
||||
|
||||
RUST_COMPONENTS=(
|
||||
"rls-preview"
|
||||
"rustfmt-preview"
|
||||
)
|
||||
|
||||
#######################################
|
||||
# Main code
|
||||
#######################################
|
||||
print_header "Setup notes directory"
|
||||
if [ ! -d "${HOME}/Notes" ]
|
||||
then
|
||||
git clone gl:notes "${HOME}/Notes"
|
||||
fi
|
||||
|
||||
print_header "Installing global npm packages"
|
||||
npm i -g "${NPM_PACKAGES[@]}"
|
||||
|
||||
print_header "Install Rust toolchain and components"
|
||||
rustup toolchain install beta
|
||||
rustup default beta
|
||||
rustup component add "${RUST_COMPONENTS[@]}"
|
Loading…
Add table
Add a link
Reference in a new issue