2017-09-19 14:47:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Install NVM for simple node.js version management
|
2018-06-11 22:54:43 +00:00
|
|
|
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
# This enables NVM without a logout/login
|
|
|
|
export NVM_DIR="/home/vagrant/.nvm"
|
|
|
|
# shellcheck source=/dev/null
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
|
|
|
|
# Install Node, Ember CLI, and Phantom for UI development
|
2019-04-08 23:50:37 +00:00
|
|
|
nvm install 10
|
|
|
|
nvm alias default 10
|
2018-06-11 22:54:43 +00:00
|
|
|
npm install -g ember-cli
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
# Install Yarn for front-end dependency management
|
2018-06-11 22:54:43 +00:00
|
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
|
2018-06-12 23:34:44 +00:00
|
|
|
|
|
|
|
# Install Chrome for running tests (in headless mode)
|
|
|
|
wget -qO- - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
|
|
|
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y google-chrome-stable
|