Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contributing notes #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
18.14.0
37 changes: 37 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Getting started
Create your own fork, and develop changes on a new branch.
It's expected you add tests, and lint and format your code before submitting a PR.

### Node
Ensure you have a compatible node version mentioned in `.node-version`

For example, with nodenv:
`nodenv install`

### Packages
Using yarn package manager:
`yarn install`

### Dev server
`yarn dev`

### Running tests
Optionally specify file or folder for a specific test.
`yarn test [path]`

### Test with local project

Generate dist files with: `yarn build`

Then, in your other project directory:

Include with local file reference: `yarn add file:/path/to/stimulus-rails-nested-form`

Update reference to this dir, eg:
```js
import NestedForm from '/path/to/stimulus-rails-nested-form/dist/stimulus-rails-nested-form.umd.js' // the default module entry point is broken for webpacker
```

### Linting and formatting
`yarn lint`
`yarn format`
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ See [stimulus-rails-nested-form documentation](https://www.stimulus-components.c
## 👷‍♂️ Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.
See [CONTRIBUTING.md] for more details.

## 📝 License

Expand Down