Skip to content

Commit 1b9ca33

Browse files
committed
Update Readme and Rakefile for master
1 parent 7e57634 commit 1b9ca33

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Code Climate](https://img.shields.io/codeclimate/github/reactjs/react-rails.svg?style=flat-square)](https://codeclimate.com/github/reactjs/react-rails)
77
[![Test Coverage](https://img.shields.io/codeclimate/coverage/github/reactjs/react-rails.svg?style=flat-square)](https://codeclimate.com/github/reactjs/react-rails/coverage)
88

9-
You are looking at the 2.3 stable branch. This branch is for maintaining the prebundled 15.6 ReactJS with Addons. Gem version 2.4.x onwards and master will no longer have React Addons.
9+
Gem version 2.4.x onwards and master will no longer have React Addons.
1010

1111
If you need to make changes for the prebundled react, see the migration docs here:
1212
https://reactjs.org/blog/2016/11/16/react-v15.4.0.html

Diff for: Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ def copy_react_asset(webpack_file, destination_file)
1212
FileUtils.cp(full_webpack_path, full_destination_path)
1313
end
1414

15+
# Move to `dirname` and execute `yarn {cmd}`
16+
def yarn_run_in(dirname, cmd)
17+
Dir.chdir(dirname) do
18+
`yarn #{cmd}`
19+
end
20+
end
21+
1522
namespace :react do
1623
desc 'Run the JS build process to put files in the gem source'
1724
task update: [:install, :build, :copy]

0 commit comments

Comments
 (0)