paragon
paragon copied to clipboard
[alpha] Refactoring the generate-component script
After switching to design tokens, in the Paragon repository (alpha branch), we stopped using the _variables.scss
file in Paragon components. Given these changes, we must update the internal generate-component
script in order to correctly generate the template for new components. This script still creates the _variables.scss
.
We also need to update the documentation about the component generator on the corresponding page of the Paragon website
### Tasks
- [ ] Ensure that the `_variables.scss` file is not created or imported after executing the generate-component script
- [ ] Ensure that the documentation (on the Paragon website) for the generate-component script is correct
Since we are not adding many components, will we need a "component generator"? I would consider deprecating the component generator altogether and removing it from the code base. 🤔
@adamstankiewicz Verify whether the Segment event with this CLI command is used by consumers.
Let's not delete this script, it might be usefull in the future and it does not hurt anybody if it stays in the repository.
@PKulkoRaccoonGang please make these fixes, it will take you at most 10 minutes to do this 🙂
Resolved in: https://github.com/openedx/paragon/pull/3076