dotfiles/post-install.sh
Severin Kaderli 09d9f2c1c8 Move utils.sh to system/bin
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2018-12-13 21:36:04 +01:00

28 lines
No EOL
760 B
Bash
Executable file

#!/bin/bash
#
# This is the post installation script. This should be executed only after
# install.sh has been executed completly and the system has been rebooted
# after that.
#
# This script installs npm packages.
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Usage: ./post-install.sh
. ./system/bin/utils.sh
#######################################
# Configuration variables
#######################################
# Array of npm packages which should be installed globally
NPM_PACKAGES=(
"@vue/cli"
"gatsby-cli"
"npm-check-updates"
)
#######################################
# Main code
#######################################
# Install global npm packages
print_header "Installing global npm packages"
npm i -g "${NPM_PACKAGES[@]}"