Skip to content

Commit

Permalink
update Contributing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jun 28, 2024
1 parent b5e7939 commit 4cce360
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,27 @@ yarn
yarn build
```

Or run this which builds the yarn package, then the webpack files for spec/dummy, and runs tests in
spec/dummy.


```sh
# Optionally change default capybara driver
export DRIVER=selenium_firefox
cd react_on_rails/
yarn run dummy:spec
```

To convert the development environment over to Shakapacker v6 instead of the default Shakapacker v8:

```sh
# Optionally change default capybara driver
export DRIVER=selenium_firefox
cd react_on_rails/
script/convert
yarn run dummy:spec
```

### Run NPM JS tests

```sh
Expand All @@ -142,17 +163,11 @@ yarn test
### Run spec/dummy tests

```sh
cd react_on_rails
npm -g i yalc
bundle && yarn
yalc publish
cd spec/dummy
bundle && yarn
yarn add shakapacker
cd react_on_rails/spec/dummy
rspec
```

### Run package tests and linting
### Run most tests and linting

```sh
cd react_on_rails/
Expand Down

0 comments on commit 4cce360

Please sign in to comment.