microsoft / fluentui-token-pipeline

The Fluent UI token pipeline generates source code for Fluent UI libraries.
https://microsoft.github.io/fluentui-token-pipeline/
Other
41 stars 18 forks source link

Add NPM packaging to the standalone JSON repo #28

Closed TravisSpomer closed 3 years ago

TravisSpomer commented 3 years ago

Fluent UI React Web wants to consume tokens as an NPM package. I should add NPM packaging to my standalone JSON repo to show how this could be done.

Unlike a typical JavaScript library, that NPM package would just contain the build folder of fully-built files (CSS, JSON, etc.) and not the source code.

TravisSpomer commented 3 years ago

I'm now publishing a sample NPM token package using a GitHub Actions workflow.

It's just a sample right now, but it could be easily copied for real tokens whenever we have a set that we're ready to publish as a package.