- Ruby/Rails code should continue to live in its appropriate directory within
app. - React code should live in
app/javascript/components/. - React component unit tests should use the
.test.jsextension and live next to the components being tested withinapp/javascript/components/.
Run JS unit tests:
$ bin/yarn run test
Run eslint on files in app/javascript/:
$ bin/yarn run lint
Deployment hints (source)
-
Add the nodejs and ruby buildpacks:
$ heroku create $ heroku buildpacks:add --index 1 heroku/nodejs $ heroku buildpacks:add --index 2 heroku/ruby