mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 12:47:28 +01:00
* start upgrade to node 8 * upgrade travis * improve travis * Remove bluebird, babel (except for modules) from server (WIP) (#9947) * remove bluebird, babel from server (except for modules) * fixes * fix path * fix path * fix export * fix export * fix test * fix tests * remove plugin for transform-object-rest-spread since it is supported in node8 * babel: correct syntax rest spread * remove bluebird * update migrations archive readme * fix package-lock.json * fix typo * add package-loc
23 lines
571 B
Bash
Executable File
23 lines
571 B
Bash
Executable File
#!/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 8
|
|
nvm use 8
|
|
nvm alias default current
|
|
|
|
echo Update npm...
|
|
npm install -g npm@5
|
|
|
|
echo Installing global modules...
|
|
npm install -g gulp mocha node-pre-gyp
|