Skip to content

Latest commit

 

History

History
 
 

dummy

Using NPM for react_on_rails

  • Use 'yalc link' to hook up the spec/dummy/client/node_modules to the top level
  • Be sure to install yarn dependencies in spec/dummy/client

Initial setup

Read Dev Initial Setup in Tips for Contributors.

Setup yalc

cd react_on_rails
bundle install
yalc publish
cd spec/dummy
bundle install
yalc link react-on-rails

Run yarn if not done yet

cd react_on_rails
yarn run dummy:install 
cd spec/dummy
yarn build:rescript

Starting the Sample App

Hot Reloading of Rails Assets

foreman start -f Procfile.dev

Static Loading of Rails Assets

foreman start -f Procfile.dev-static

Creating Assets for Tests

foreman start -f Procfile.spec