Skip to content

How to compile custom standalone CLI #12294

Discussion options

You must be logged in to vote

I had the same itch, so I wrote a GitHub Actions workflow that will repackage the standalone CLI and bundle daisyUI whenever either of the projects gets a new release. Feel free to use tailwind-cli-extra till we get a better upstream solution.

If you would like to compile the CLI yourself, then here are the steps to do so:

  • clone the tailwindcss repository and checkout the latest release tag
  • install Node version 16 (I used nvm for this):
    nvm install 16
    # switch to the stable engine
    node ./scripts/swap-engines.js
  • build Tailwind CSS:
    #  install dependencies
    npm install
    # build
    npm run build
  • install standalone CLI dependencies:
    cd standalone-cli
    npm install
  • add daisyUI as a dependency:
    np…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davidalejandroaguilar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants