Create Tailwind CSS plugin and publish on npm with ease
tailwindcss-plugin-demo is generated with create-tailwind-plugin
airbnb-base
and prettier
$ npx create-tailwind-plugin
Alternatively, you can also pass following options to avoid prompt questions.
$ npx create-tailwind-plugin --name="Your Plugin Name" --description="Your Plugin Description" --author="Your Name" --github-username="Your Github Username" --initialize-git --install-packages
Option | Description |
---|---|
--name |
Used in README.md and in package.json as name key |
--description |
Used in README.md and in package.json as description key |
--author |
Used in LICENSE and in package.json as author key |
--github-username |
Used in package.json in repository.url , bugs.url , and homepage keys |
--initialize-git |
Runs git init && git add --all command in plugin directory |
--install-packages |
Runs npm install && npm run format --silent command in plugin directory |
npm install
and npm run watch
commands in your plugin directorynpm run release
command, when you're ready to publish on npmFeel free to open an issue, if you are having a trouble with create-tailwind-plugin
. PR's are welcome.
Create Tailwind CSS Plugin is licensed under the MIT License.