patternfly / design-tokens

MIT License
1 stars 8 forks source link

feat(build): Add CLI for scss build with option for custom selector #35

Closed wise-king-sullyman closed 4 months ago

wise-king-sullyman commented 5 months ago

Closes #9

The changes to build.js look significant, but the only real change I made with it was changing it to a function that's exported rather than it just being a script file that runs.

By default yarn build:scss still outputs the same content with :root as the selector, but now you can also pass the --selector flag (or just -s for short) and specify any selector you want, i.e. yarn build:scss -s .foo will replace the :root selector with .foo in the generated scss files.

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: