Skip to content

Latest commit

 

History

History
141 lines (94 loc) · 2.53 KB

CONTRIBUTING.md

File metadata and controls

141 lines (94 loc) · 2.53 KB

Contributing

Table of Contents

Pull requests are welcome! By participating in this project, you agree to abide by our code of conduct.

Fork

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:

Test

Open Cypress:

npm run cypress:open

Lint

Run ESLint:

npm run lint

Fix lint errors:

npm run lint:fix

Type check:

npm run lint:tsc

Docs

Generate TypeDoc:

npm run docs

Generate docs in watch mode:

npm run docs:watch

View docs in your browser:

open docs/index.html

Release

Release and publish are automated with Release Please.