aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL.md
diff options
context:
space:
mode:
authorLuc Donnet2017-12-22 13:39:02 +0100
committerLuc Donnet2017-12-22 13:39:02 +0100
commit3520953b696a138b9f0b049ff8af636a3b575bcd (patch)
tree1f4dc54ca5f33d852c21f60ae01343b68b088c80 /INSTALL.md
parent259675ffe9d9bebad3fdd677a1c84eff4a85cbec (diff)
downloadchouette-core-3520953b696a138b9f0b049ff8af636a3b575bcd.tar.bz2
Update node and yarn chapter in INSTALL.md
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md43
1 files changed, 19 insertions, 24 deletions
diff --git a/INSTALL.md b/INSTALL.md
index e1ef88205..28ffdeb4d 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -10,15 +10,30 @@ rvm install 2.3.1
## Node and Yarn
-Yarn needs a node version 6.12.0, if you use Node Version Manager [NVM](https://github.com/creationix/nvm) you can rely on the content of `.nvmrc`.
+Yarn needs node. If you use Node Version Manager [NVM](https://github.com/creationix/nvm) you can rely on the content of `.nvmrc`. Otherwise please make sure to use a compatible version, still best to use the same as indicated by `.nvrmc`.
-Otherwise please make sure to use a compatible version, still best to use the same as indicated by `.nvrmc`.
+* Install node
-Then install yarn :
+```sh
+nvm install 6.12.0
+```
+
+* Install [yarn](https://yarnpkg.com/lang/en/docs/install/)
+
+```sh
+// On macOS
+brew install yarn
+
+// On Debian/ubuntu
+curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
+echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
+sudo apt-get update && sudo apt-get install yarn
+```
+* Install nodes packages
```sh
-brew install yarn // macOS
+yarn install
```
### Installation Caveats
@@ -100,8 +115,6 @@ Go into your local repository and install the gems
bundle install
```
-### Installation Caveats
-
#### Nokogiri on macOS
http://www.nokogiri.org/tutorials/installing_nokogiri.html tells us that `xz` can cause troubles, here is what to do
@@ -112,24 +125,6 @@ gem install nokogiri # or bundle install
brew link xz
```
-### Install yarn and packages
-
-Need to install [yarn](https://yarnpkg.com/lang/en/docs/install/)
-
-```sh
-// On macOS
-brew install yarn
-
-// On Debian/ubuntu
-curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
-echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
-sudo apt-get update && sudo apt-get install yarn
-```
-
-```sh
-yarn install
-```
-
### Database
#### Create database