Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.36 KB

CONTRIBUTING.md

File metadata and controls

49 lines (31 loc) · 1.36 KB

Contributing

Hey! Thanks for your interest in improving qnm! There are plenty of ways you can help!

Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.

Submitting an issue

Please provide us with an issue in case you've found a bug, want a new feature, have an awesome idea, or there is something you want to discuss.

Submitting a Pull Request

Good pull requests, such as patches, improvements, and new features, are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.

Local Setup

Fork the repo, clone, install dependencies and run the tests:

git clone [email protected]:<username>/qnm.git
cd qnm
npm install
npm test

To test the qnm command, run the following from the project root:

npm link

Now you should be able to run qnm from anywhare, and it will be linked to your local project.

Test

In order to run the tests in watch mode (jest), run the following command:

npm run test:watch

Lint

In order to run the linter (eslint), run the following command:

npm run lint
  • The linter will run before commit on staged files, using husky and lint-stage.