From fe8b2e39bb8380d3e52bd7a540ccf3912c4956b4 Mon Sep 17 00:00:00 2001 From: Stefan Wrobel Date: Mon, 27 Feb 2017 17:26:35 -0800 Subject: [PATCH] Simplify installation instructions --- README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4aa0b1c..7cce637 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,16 @@ Your Rails application needs to use Webpacker and have the React integration don First, you need to add the webpacker-react gem to your Rails app Gemfile: ```ruby -gem 'webpacker-react', "~>0.1.0" +gem 'webpacker-react', "~> 0.1.0" ``` -Once done, run `bundler` to install the gem. +Once done, run `bundle` to install the gem. -Then you need to update your `vendor/package.json` file to include the `webpacker-react` NPM module: -```json - "dependencies": { - "..." - "webpacker-react": "~>0.1.0" - }, -``` +Then you need to update your `package.json` file to include the `webpacker-react` NPM module: + +`./bin/yarn add webpacker-react@0.1.x` -Finally, run `./bin/yarn` to install the module. You are now all set! +You are now all set! ### Note about versions