Pull requests are welcome! By participating in this project, you agree to abide by our code of conduct.
Fork, then clone the repository:
# replace <USER> with your username
git clone git@github.com:<USER>/cypress-cucumber-steps.git
cd cypress-cucumber-steps
Use nvm to set the Node.js version:
nvm use
Install the dependencies:
npm install
Make your changes. Add tests and/or documentation. Ensure all tests and lint pass:
npm test
npm run lint
npm run lint:tsc
Write a commit message that follows the Conventional Commits specification:
- feat: A new feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- test: Add missing tests or correct existing tests
- docs: Documentation only changes
The commit message will be linted during the pre-commit Git hook. To manually lint the most recent commit message:
git log -1 --pretty=format:"%s" | npx commitlint
Push to your fork and create a pull request.
At this point you're waiting on us. We'll try to review pull requests within 1-3 business days. We may suggest changes, improvements, and/or alternatives.
Things that will improve the chance that your pull request will be accepted:
- Write tests that pass CI.
- Write good documentation.
- Write a good commit message.
Open Cypress:
npm run cypress:open
Run ESLint:
npm run lint
Fix lint errors:
npm run lint:fix
Type check:
npm run lint:tsc
Generate TypeDoc:
npm run docs
Generate docs in watch mode:
npm run docs:watch
View docs in your browser:
open docs/index.html
Release and publish are automated with Release Please.