Please review this document before submitting a pull request.
To get started with local development,
- Install the correct version of Node.
asdf install
- Install
package.json
dependencies. Versions are locked inyarn.lock
, so installing them with Yarn is recommended.
yarn
See our How to use local Node packages as project dependencies article to use your development version in a project.
Our code formatting rules are defined in .prettierrc. You can format your code against these standards using Prettier via the format
script in package.json
.
yarn format
To test all plugins, run the test
script in package.json
.
yarn test
To test a specific plugin, run the test
script in package.json
passing it the test file’s path.
yarn test plugins/my-plugin/test
Each plugin is tested using Jest. The easiest way to get started is by looking at existing tests.
- Output: Define what the generated CSS should look like.
- Config: Define the content string to use for generating the CSS. Most plugins require a theme passed as well.
- Add notes to the unreleased section in the CHANGELOG, with summaries of any additions, fixes, updates, or deprecations.
- When a new version is released, a maintainer will move those notes to the appropriate version number in the CHANGELOG.