Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.36 KB

CONTRIBUTING.md

File metadata and controls

45 lines (32 loc) · 1.36 KB

Contributing

  1. Fork it
  2. Install dependencies (npm install)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes - follow commitizen convention (git commit -am 'feat(cli): added some feature')
  5. Lint and test your changes (npm run lint && npm test)
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Recommended tools

  • Visual Studio Code 1.33.0+
  • VSCode Extensions:
    • Prettier - Code Formatter
    • ESLint
    • EditorConfig for VS Code
    • Coverage Gutters
    • Visual Studio Code Commitizen Support

Testing

Use Jest to write tests. Run the test suite with this command:

npm test

Coverage

Generate test coverage report with this command:

npm run test:cov

Coverage Gutters VSCode extension uses coverage report to display code coverage directly in the editor.

Code Style

Use Prettier and EditorConfig to maintain code style and best practices. Please make sure your PR adheres to the guides by running:

npm run lint