npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sleepygogo/tailwindcss-cli

v0.1.1

Published

A CLI Tool for easy TailwindCSS installation

Downloads

6

Readme

imagen

This project has been made to facilitate the installation of TailwindCSS, creating files, and adding dependencies as needed. This has been fine-tuned for personal use, but contributions are welcome.

Usage 📖

Running the command

npx @sleepygogo/tailwindcss-cli

Will ask you what kind of installation you need, and then create the files and install the dependencies using the package manager used in your project.

This is meant to be used on almost clear projects, and destructive behavior could be possible.

Supported installations ☄️

Standard 🪛

Using this option, will create the tailwind.config.js and postcss.config.js files found in Using PostCSS's installation guide on TailwindCSS official docs. Further modifications may be needed for your project needs and specifications.

Vite

Using any option of this category, will create the tailwind.config.js file from Using Vite on TailwindCSS official docs, based on the framework choosen.

  • React ready ⚛️

This is mainly thought for Vite based projects. React frameworks as Gatsby, or Remix will be added in the future.

  • Vue ready ✨

This is mainly thought for Vite based projects. Vue frameworks as Nuxt will be added in the future.

  • Svelte ready 🧡

This is mainly thought for Vite based projects. Svelte frameworks as SvelteKit will be added in the future.

Next.js ready 🚀

Using this option will create the tailwind.config.js already configured for Next.js projects found in Using Next.js's installation guide. Option thought specially for projects created without Tailwind already added via the create-next-app.

Express ready 💻

Using this option will create the tailwind.config.js specially thought for Express projects using a view engine, as it'll ask which one you're using.

Running this command will generate a tailwind.css file right next to your main one. This is so you can compile the classes from that file onto your main one. It'll also add the command for doing so:

{
  "scripts": {
    "build:css": "npx tailwindcss -i path/to/tailwind.css -o path/to/style.css"
  }
}

It'll, also, ask if you want to also add quick scripts for tailwind's class compilation while you use the dev server. This was tuned for personal use, and may not be particularly useful for your project. It'll basically:

  • Install nodemon and npm-run-all

  • Create dev: scripts that whill run your applicacion, and tailwind's class compilation while you use the dev server using the --watch flag on Tailwindcss CLI. This is done for compatibility between OS's.