Skip to content

Conversation

@drwpow
Copy link
Collaborator

@drwpow drwpow commented Jun 1, 2025

Changes

Satisfies #399 by adding a way to preprocess tokens. Calling it “transform” because it mirrors a lot of standard AST visitor patterns.

Docs were added describing usage + examples. Testing it in another context, so may make incremental updates to it over time.


Other noise in this PR was just some unrelated housekeeping that bugged me. I tend to do it as a procrastination task (which happened no fewer than 4 times during this PR when I got stuck on something).

How to Review

  • Tests added
  • Docs added

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 1, 2025

Deploying terrazzo with  Cloudflare Pages  Cloudflare Pages

Latest commit: ccb0fbd
Status: ✅  Deploy successful!
Preview URL: https://3c268c9c.terrazzo.pages.dev
Branch Preview URL: https://drwpow-transform-api.terrazzo.pages.dev

View logs

@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2025

🦋 Changeset detected

Latest commit: ccb0fbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@terrazzo/parser Patch
@terrazzo/cli Patch
@terrazzo/plugin-css Patch
@terrazzo/plugin-js Patch
@terrazzo/plugin-tailwind Patch
@terrazzo/token-tools Patch
@terrazzo/plugin-sass Patch
@terrazzo/plugin-swift Patch
@terrazzo/token-lab Patch
@terrazzo/use-color Patch
@terrazzo/react-color-picker Patch
@terrazzo/tiles Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@drwpow drwpow force-pushed the drwpow/transform-api branch 12 times, most recently from 7c45cde to f46f081 Compare June 2, 2025 03:50
@drwpow drwpow force-pushed the drwpow/transform-api branch from f46f081 to ccb0fbd Compare June 2, 2025 09:14
@drwpow drwpow marked this pull request as ready for review June 2, 2025 09:14
@drwpow drwpow merged commit 84335da into main Jun 2, 2025
9 checks passed
@drwpow drwpow deleted the drwpow/transform-api branch June 2, 2025 09:17
@drwpow drwpow mentioned this pull request Jun 2, 2025
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.

2 participants