Sometimes you just want to run a fetch without building the whole static site.
If you run npm run fetch
, this will fetch and run the transformers
to get all the token data from Figma, but will not generate the static site.
The contents of the fetch and transform will be exported to the exported
directory.
If you run npm run transform:preview
, this will use the already fetched content and
only generate new previews. We use this internally for regenerating previews
when a template file changes during watch mode. Its useful if you change a
template but are happy to reuse the existing tokens rather than refetching
If you run npm run transform:styles
, this will use the already fetched content and
only generate new style tokens. We use this internally for regenerating style
tokens without refetching the main tokens file.