CLI command to build Tailwind CSS for code components

Created on 20 May 2025, about 1 month ago

Overview

The CLI tool needs to be able to build Tailwind CSS taking into account the markup for all "online" components combined with any local component(s).

β†’ See: 🌱 [Meta] CLI tool for code components Active

Proposed resolution

  1. Implement this command as a wrapper around the right package from https://github.com/tailwindlabs/tailwindcss.
  2. Before running the Tailwind CSS build, download the JS source of all code components into a local directory, e.g., ~/.xb.
  3. Read the location for your local directory for components from an environment variable or .env file established in πŸ“Œ Set up first authenticated request from CLI Postponed .
  4. Allow users to select components interactively or passed as a CLI argument. Make sure there is an option to select all.
  5. Add the JS source of all selected components to the locally cached collection of all "online" components, run the Tailwind build on that folder.
  6. Write the generated CSS to dist/index.css at the root of the local components directory.
  7. Extend the upload command ( ✨ CLI command to upload code components Postponed ) to run this compilation, and upload the compiled CSS as the global asset library's compiled CSS.
✨ Feature request
Status

Postponed

Version

0.0

Component

CLI Tool

Created by

πŸ‡³πŸ‡±Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024