tailwindcss-helper
v1.0.1
Published
a tailwind CLI installation helper.
Readme
TailwindCSS Installation Helper
tailwindcss-helper automates the process of tailwindcss CLI installation.
It uses node.js and follows the installation guide in the official documentation for tailwindcss with a little helpful tweak.
Features
- Automatically runs
npm init -yif nopackage.jsonexists - Installs
tailwindcssand@tailwindcss/clipackages - Creates a
srcdirectory with a basicindex.htmlandinput.cssfile - Adds a
devscript for building Tailwind CSS in watch mode
Installation
To install the package and its dependencies, run the following command in your project directory:
npm install tailwindcss-helperThis will install tch and all other dependencies listed in package.json.
If you want to install tch globally on your system, you can run:
npm install -g tchUsage
After installing, you can run the tch command-line tool using:
npx tchThis runs the tch CLI without needing a global install.
If you installed tch globally, simply run:
tchScripts (optional)
You can add scripts in your package.json for easier use, for example:
"scripts": {
"tch": "tch"
}Then run with:
npm run tch