Skip to content

Latest commit

History

History
87 lines (61 loc) 路 1.92 KB

CONTRIBUTING.md

File metadata and controls

87 lines (61 loc) 路 1.92 KB

Contributing

Code Style

This project follows JavaScript Standard Style with a couple of tweaks. ESLint will report any style violations when tests are run or with yarn lint

Some style violations can automatically be fixed by running yarn fix

Commit Messages

Semantic commit messages are used:

feat(category): added feature x
Category Usage
empty Changes to monorepo, no change to packages (alternatively, the filename - e.g readme)
kitsu Changes to the kitsu package
kitsu-core Changes to the kitsu-core package
Type Usage
ci Continuous Integration changes
chore Build scripts, no production code change
feat New feature/enhancement
fix Fix a bug for users - not build related issues
refactor Refactoring production code, optimisations
style Formatting changes, no code change
test Adding, refactoring or fixing tests

Requirements

  • git 2.0.0 or newer
  • node.js 7.0.0 or newer
  • yarn 1.0.0 or newer (optional)

Setup

  1. Fork this repo

  2. Clone your fork:

    git clone https://github.com/your-username/kitsu.git
    cd kitsu
  3. Create a feature branch:

    git checkout -b your-feature-name
  4. Install dependencies:

    yarn
    # or
    npm install
  5. Test changes

    yarn test
    # or
    npm test
    
  6. Commit changes:

    git commit -am 'feat: add feature name'
  7. Push changes:

    git push origin your-feature-name
  8. Open a pull request