{"id":19652999,"url":"https://github.com/csstools/create-postcss-plugin","last_synced_at":"2025-04-28T17:31:04.212Z","repository":{"id":34710293,"uuid":"38686686","full_name":"csstools/create-postcss-plugin","owner":"csstools","description":"Quickly create new PostCSS plugins","archived":true,"fork":false,"pushed_at":"2019-11-09T12:33:30.000Z","size":29,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-25T05:06:17.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bonovoxly/elktail","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T12:37:58.000Z","updated_at":"2024-09-29T10:05:39.000Z","dependencies_parsed_at":"2022-08-03T22:15:14.235Z","dependency_job_id":null,"html_url":"https://github.com/csstools/create-postcss-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fcreate-postcss-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fcreate-postcss-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fcreate-postcss-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fcreate-postcss-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/create-postcss-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251217012,"owners_count":21554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T15:12:52.587Z","updated_at":"2025-04-28T17:31:04.134Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create PostCSS Plugin [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][PostCSS]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Gitter Chat][git-img]][git-url]\n\n[Create PostCSS Plugin] lets you quickly create new [PostCSS] plugins with\ndocumentation, tests, and built-in compiling for supported Node environments.\n\n```sh\nnpm init postcss-plugin YOUR_DESTINATION\n```\n\nAlternatively, you can use the `npx` command:\n\n```sh\nnpx create-postcss-plugin YOUR_DESTINATION\n```\n\nAfter completing the instructions, write your plugin to `src/index.js` and\nupdate `README.md` with further details outlining your plugin functionality.\n\n## Usage\n\nBy default, **Create PostCSS Plugin** provides you the following prompts:\n\n```\nPlugin Name: [TITLE]\nKeywords: [KEYWORDS]\n```\n\nOnce completed, you will see the following message:\n\n```\nSuccess! Created PostCSS [TITLE] at [DIRECTORY]\n\nWe suggest that you begin by typing:\n  cd [DIRECTORY]\n  npm test\n\nHappy PostCSS-ing!\n```\n\nTo skip all prompts, you must at least provide a title and keywords.\n\n```sh\ncreate-postcss-plugin --title Stuff --keywords comma,separated,keywords\n```\n\nIf your system cannot access git user information from `.gitconfig`, you must\nalso provide an author, email, and user.\n\n```sh\ncreate-postcss-plugin --title Stuff --author \"Cee S Esse\" --email \"postcss@postcss.org\" --user ceesesse --keywords comma,separated,keywords\n```\n\n## Options\n\nYou can pass options into postcss-plugin to automate plugin creation.\n\n### to\n\nThe `to` argument defines the destination of the new project. The first\nundefined argument will also determine this value.\n\n```sh\nnpm init postcss-plugin --to path/to/plugin\n```\n\n### title\n\nThe `title` argument defines the formal name of the project.\n\n```sh\nnpm init postcss-plugin --title Stuff\n```\n\n```sh\nnpm init postcss-plugin --title \"Awesome Blossom\"\n```\n\n### id\n\nThe `id` argument defines the id used by the project package.json and\nrepository.\n\n```sh\nnpm init postcss-plugin --id awes-blos\n```\n\n### desc\n\nThe `desc` or `description` argument defines the description used by the\nproject README.md and package.json.\n\n```sh\n# becomes \"Use exciting new functions\" and \"Awesome Blossom lets you create new functions in CSS.\"\nnpm init postcss-plugin --desc \"use exciting new functions\"\n```\n\n```sh\n# becomes \"Use exciting new functions\" and \"Awesome Blossom lets you create new functions in CSS.\"\nnpm init postcss-plugin --description \"use exciting new functions\"\n```\n\n### author\n\nThe `author` argument defines the author used by the project package.json.\n\n```sh\nnpm init postcss-plugin --author \"Cee S Esse\"\n```\n\n### email\n\nThe `email` argument defines the email used by the project package.json.\n\n```sh\nnpm init postcss-plugin --email \"postcss@postcss.org\"\n```\n\n### user\n\nThe `user` argument defines the user or organization hosting the project.\n\n```sh\nnpm init postcss-plugin --user \"postcss\"\n```\n\n### keywords\n\nThe `keywords` argument defines the keywords used by the project package.json.\n\n```sh\nnpm init postcss-plugin --keywords \"awesome,blossom\"\n```\n\n### no-install\n\nThe `no-install` argument instructs the project to not automatically install\ndependencies.\n\n```sh\nnpm init postcss-plugin --no-install\n```\n\n[Create PostCSS Plugin]: https://github.com/csstools/create-postcss-plugin\n[PostCSS]: https://github.com/postcss/postcss\n\n[cli-img]: https://img.shields.io/travis/csstools/create-postcss-plugin/master.svg\n[cli-url]: https://travis-ci.org/csstools/create-postcss-plugin\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/create-postcss-plugin.svg\n[npm-url]: https://www.npmjs.com/package/create-postcss-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fcreate-postcss-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fcreate-postcss-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fcreate-postcss-plugin/lists"}