refactor: Modularize vagrant scripts

This commit is contained in:
Blade Barringer
2016-01-18 10:08:49 -06:00
parent 0ee7970276
commit 89ef7c24c4
6 changed files with 51 additions and 46 deletions

22
vagrant_scripts/install_node.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
echo Installing nvm...
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | NVM_DIR="/home/vagrant/.nvm" PROFILE="/home/vagrant/.profile" bash
echo "source /home/vagrant/.nvm/nvm.sh" >> /home/vagrant/.profile
echo "nvm install" >> /home/vagrant/.profile
chown -R vagrant:vagrant /home/vagrant/.nvm
source /home/vagrant/.profile
echo Setting up node...
cd /vagrant
nvm install
nvm use
nvm alias default current
echo Update npm...
npm install -g npm@2
echo Installing global modules...
npm install -g gulp bower grunt-cli mocha