Skip to content

Commit b6e94d8

Browse files
committed
TEMPORARY commit for readme
1 parent 563630c commit b6e94d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For version 2.7 documentation checkout [2.7-stable](https://github.com/reactjs/r
1212
## Summary
1313
React-Rails is a flexible tool to use [React](http://facebook.github.io/react/) with Rails. The benefits:
1414
* Automatically renders React server-side and client-side
15-
* Supports [Shakapacker](https://github.com/shakacode/shakapacker) v6.x
15+
* Supports [Shakapacker](https://github.com/shakacode/shakapacker) v7
1616
* Supports Sprockets 4.x, 3.x
1717
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [TypeScript](https://www.typescriptlang.org/), [CoffeeScript](http://coffeescript.org/)
1818

@@ -92,20 +92,20 @@ _Alternatively, get started with [Sprockets](#use-with-asset-pipeline)_
9292
Prevent installing default javascript dependencies by using `--skip-javascript` option:
9393

9494
```bash
95-
$ rails new my-app --skip-javascript
96-
$ cd my-app
95+
rails new my-app --skip-javascript
96+
cd my-app
9797
```
9898

9999
2. Install `shakapacker`:
100100
```bash
101-
$ bundle add shakapacker --strict
102-
$ rails webpacker:install
101+
bundle add shakapacker --strict
102+
rails shakapacker:install
103103
```
104104

105105
3. Install `react` and some other required npm packages:
106106
```bash
107-
$ yarn add react react-dom @babel/preset-react prop-types \
108-
css-loader style-loader mini-css-extract-plugin css-minimizer-webpack-plugin
107+
yarn add react react-dom @babel/preset-react prop-types \
108+
css-loader style-loader mini-css-extract-plugin css-minimizer-webpack-plugin
109109
```
110110

111111
Also update the Babel configuration in the `package.json` file:
@@ -169,7 +169,7 @@ Output: greeting: Hello from react-rails", inspect webpage in your browser to se
169169
In order to run dev server with HMR feature you need to parallely run:
170170

171171
```bash
172-
$ ./bin/webpacker-dev-server
172+
$ ./bin/shakapacker-dev-server
173173
```
174174

175175
Note: On Rails 6 you need to specify `webpack-dev-server` host. To this end, update `config/initializers/content_security_policy.rb` and uncomment relevant lines.
@@ -780,7 +780,7 @@ For example, to change the [ES6 Component template](https://github.com/reactjs/r
780780

781781
### 2.7 to 3.0
782782
- Keep your `react_ujs` up to date: `yarn upgrade`
783-
- **Drop support for Webpacker:** Before any ReactRails upgrade, make sure upgrading from Webpacker to Shakapacker 6.x.
783+
- **Drop support for Webpacker:** Before any ReactRails upgrade, make sure upgrading from Webpacker to Shakapacker 7. For more information check out Shakapacker
784784
- **SSR:** ReactRails 3.x requires separate compilations for server & client bundles. See [Webpack config](https://github.com/reactjs/react-rails/tree/master/test/dummy/config/webpack) directory in the dummy app to addapt the new implementation.
785785

786786
### 2.3 to 2.4

0 commit comments

Comments
 (0)