diff --git a/CHANGELOG.md b/CHANGELOG.md index 9400d817c..bad5e4444 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ Contributors: please follow the recommendations outlined at [keepachangelog.com] ## [Unreleased] +## [6.3.1] +##### Changed +- Improved generator post-install help messages. [#631](https://github.com/shakacode/react_on_rails/pull/631) by [justin808](https://github.com/justin808). + ## [6.3.0] ##### Changed - Modified register API to allow registration of renderers, allowing a user to manually render their app to the DOM. This allows for code splitting and deferred loading. [#581](https://github.com/shakacode/react_on_rails/pull/581) by [jtibbertsma](https://github.com/jtibbertsma). @@ -393,7 +397,8 @@ Best done with Object destructing: ##### Fixed - Fix several generator related issues. -[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.3.0...master +[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.3.1...master +[6.3.1]: https://github.com/shakacode/react_on_rails/compare/6.3.0...6.3.1 [6.3.0]: https://github.com/shakacode/react_on_rails/compare/6.2.1...6.3.0 [6.2.1]: https://github.com/shakacode/react_on_rails/compare/6.2.0...6.2.1 [6.2.0]: https://github.com/shakacode/react_on_rails/compare/6.1.2...6.2.0 diff --git a/lib/generators/react_on_rails/base_generator.rb b/lib/generators/react_on_rails/base_generator.rb index c296fde4f..cccd79e8c 100644 --- a/lib/generators/react_on_rails/base_generator.rb +++ b/lib/generators/react_on_rails/base_generator.rb @@ -117,8 +117,10 @@ def append_to_spec_rails_helper else GeneratorMessages.add_info( <<-MSG.strip_heredoc - Did not find spec/rails_helper.rb or spec/spec_helper.rb to add line - config.example_status_persistence_file_path = "spec/examples.txt" + Did not find spec/rails_helper.rb or spec/spec_helper.rb to add + # Ensure that if we are running js tests, we are using latest webpack assets + # This will use the defaults of :js and :server_rendering meta tags + ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config) MSG ) end @@ -141,9 +143,9 @@ def print_helpful_message bundle && npm i - - Run the npm rails-server command to load the rails server. + - Run the foreman command to start the rails server and run webpack in watch mode. - npm run rails-server + foreman start -f Procfile.dev - Visit http://localhost:3000/hello_world and see your React On Rails app running! MSG