Skip to content

Commit

Permalink
Install yarn and use it to install global packages
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson authored and Pierre Besson committed Oct 12, 2016
1 parent a34eccb commit 6975163
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It is fully based on Open Source software, most importantly:

- Ubuntu
- OpenJDK (Oracle JDK can't be used because of license issues)
- NPM, Bower and Gulp
- Yarn, NPM, Bower and Gulp
- Docker and Docker Compose (see the [JHipster Docker Compose documentation](http://jhipster.github.io/docker-compose/) to learn how to run your application, database or even a full micro-service architecture with Docker)
- [Ubuntu Make](https://wiki.ubuntu.com/ubuntu-make) so you can easily install your favorite IDE (type `umake ide idea` for Intellij IDEA or `umake ide eclipse` for Eclipse)
- Chromium and Firefox Web browsers
Expand Down
14 changes: 10 additions & 4 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ apt-get install -y nodejs unzip python g++ build-essential
# update npm
npm install -g npm

# install yarn
npm install -g yarn

# install yeoman grunt bower gulp
npm install -g yo bower gulp
yarn global add yo bower gulp

# install JHipster
npm install -g [email protected]
yarn global add [email protected]

# install JHipster UML
npm install -g [email protected]
yarn global add [email protected]

################################################################################
# Install the graphical environment
Expand Down Expand Up @@ -107,7 +110,7 @@ ln -s /opt/cf /usr/bin/cf

# install the AWS tools
pip install awscli
npm install -g aws-sdk progress node-uuid
yarn global add aws-sdk progress node-uuid

#install Guake
apt-get install -y guake
Expand Down Expand Up @@ -160,6 +163,9 @@ chmod +x /usr/local/bin/docker-compose
# configure docker group (docker commands can be launched without sudo)
usermod -aG docker vagrant

# fix ownership of yarn cache
chown -R vagrant:vagrant /home/vagrant/.yarn-cache

# clean the box
apt-get -y autoclean
apt-get -y clean
Expand Down

0 comments on commit 6975163

Please sign in to comment.