As precised on Issue #28, creating all necessary folders and files by hand for frontend components is tedious.
This PR aims to change that by adding scripts to execute on the dev side.
Proposal
You have 2 scripts available, and room for adding more:
yarn scripts:add-icon <IconNameSVG> to add a SVG Icon template at the right place. You just have to paste a SVG in one file, by following comments.
yarn scripts:add-component <Path/To/Your/ComponentFolder> to add a component, all its necessary files (including storybook stories and tests), and to update imports in subfolders' index.ts.
Purpose
As precised on Issue #28, creating all necessary folders and files by hand for frontend components is tedious. This PR aims to change that by adding scripts to execute on the dev side.
Proposal
You have 2 scripts available, and room for adding more:
yarn scripts:add-icon <IconNameSVG>
to add a SVG Icon template at the right place. You just have to paste a SVG in one file, by following comments.yarn scripts:add-component <Path/To/Your/ComponentFolder>
to add a component, all its necessary files (including storybook stories and tests), and to update imports in subfolders'index.ts
.