All Projects → postcss → Postcss Plugin Boilerplate

postcss / Postcss Plugin Boilerplate

Licence: mit
PostCSS Plugin Boilerplate

Programming Languages

javascript
184084 projects - #8 most used programming language

PostCSS Plugin Boilerplate

Сreate new PostCSS plugins in a few steps:

  1. 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.

    node ./postcss-plugin-boilerplate/start
    

    Call it with --yarn argument, if you prefer yarn package manager:

    node ./postcss-plugin-boilerplate/start --yarn
    

    Or use --no-install if you want to skip dependencies installation.

  3. Your plugin repository will now have a clean Git history. Create the GitHub repository and push your project there.

  4. Add your project to Travis CI.

  5. Write some code to index.js and tests to index.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.

  10. Release by calling npx clean-publish (this tool will remove development configs from package.json).

  11. Fork PostCSS, add your plugin to the Plugins list and send a pull request.

  12. Follow @PostCSS to get the latest updates.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].