Skip to content

Adds standalone bundle for CLI usage#124

Open
MJRasicci wants to merge 1 commit intoadoxography:mainfrom
MJRasicci:feature/standalone-cli-bundle
Open

Adds standalone bundle for CLI usage#124
MJRasicci wants to merge 1 commit intoadoxography:mainfrom
MJRasicci:feature/standalone-cli-bundle

Conversation

@MJRasicci
Copy link
Copy Markdown

Summary

This PR adds support for using tailwind-scrollbar with Tailwind CSS’s standalone CLI by introducing a pre-built standalone bundle.

What Changed

  • Added a pre-built bundle at bundle/tailwind-scrollbar.mjs.
  • Added scripts/build-bundle.js and wired it into npm scripts.
  • Added a release workflow .github/workflows/publish-standalone-bundle.yml to automatically publish the standalone bundle on release.
  • Updated test workflow .github/workflows/run-tests.yml to verify the committed bundle is up-to-date.
  • Updated docs README.md and website/docs/getting-started.md with standalone CLI usage guidance.
  • Updated package metadata/dependencies as needed for bundle generation and distribution.

Why

Users running Tailwind via the standalone CLI (without a Node.js project/runtime) can now use this plugin directly, with CI safeguards to keep the distributed bundle in sync with source changes.

Testing

npm run lint
npm test
npm run build-types

Breaking Changes

None expected.

Adds a pre-built standalone bundle for use with Tailwind CSS's standalone CLI, allowing users without Node.js environments to easily use the plugin.

Also includes a workflow to automatically publish the bundle with each release, and adds a check in the test workflow to ensure the bundle is up-to-date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant