Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.22 KB

CONTRIBUTING.md

File metadata and controls

50 lines (30 loc) · 1.22 KB

Contributing to postcss-critical-css

Thank you for your contribution!

  • Issues are welcome.
  • PRs are welcome.

If you'd like to propose a major change, please open an issue first so that the change can be discussed.

Linting, type checking, and testing

Code is linted using eslint, type-checked using flow, and tested using tape.

You can lint your code locally using the following command:

npm run eslint

You can type check your code locally using the following command:

npm run flow

You can test your code locally using the following command:

npm run test

Commits

To ensure proper versioning, commits to are linted using commitlint.

prettier is run via a hook on every commit.

Building

Source code is compliled using babel. You can run the build locally using the following command:

npm run build

Note that code that fails either the linting and/or type-checking step will fail to build successfully.

CI

All commits pushed to the remote repository are tested using Github actions.