Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 2.06 KB

CONTRIBUTING.md

File metadata and controls

90 lines (61 loc) · 2.06 KB

Contributing

Code Style

This project follows AirBnB coding standards. ESLint will report any style violations when tests are run or with npm run lint

Some style violations can automatically be fixed by running npm run fix

Tests

The project has extensive test coverage with Jest.

Run the test-suite a single time with npm run test. To watch and automatically execute on file change run npm run test:watch.

All Pull Requests should have 100% test-covered. Run npm run test:coverage to see a report.

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)
core Changes to the core package
json-api Changes to the json-api package
vue Changes to the vue 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

See conventional-changelog/commitlint for a complete list of types and other rules.

Setup

  1. Fork this repo

  2. Clone your fork:

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

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

    npm install
  5. Test changes

    npm run 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