Сreate new PostCSS plugins in a few steps:
-
Clone this repository:
git clone https://github.com/postcss/postcss-plugin-boilerplate.git
2. Execute the wizard script. It will ask you a few questions
and fill all files with your data.
```sh
node ./postcss-plugin-boilerplate/start
```
3. Your plugin repository will now have a clean Git history.
[Create the GitHub repository](https://github.com/new)
and push your project there.
4. Add your project to [Travis CI](https://travis-ci.org).
5. Write some code to `index.js` and tests to `test.js`.
6. Execute `npm test` command
7. Add input and output CSS examples to `README.md`.
8. Add options descriptions if your plugin has them.
9. Fill `CHANGELOG.md` with initial version and release it to npm.
10. Fork [PostCSS](https://github.com/postcss/postcss), add your plugin to
[Plugins section](https://github.com/postcss/postcss/blob/master/docs/plugins.md)
in `README.md`, and send a pull request.
11. Follow [@PostCSS](https://twitter.com/postcss) to get the latest updates.