@draftit-ui/icons
v0.26.27
Published
Our Icons
Downloads
1,312
Readme
@draftit-ui/icons
Our Icons
Dev
$ yarn install
$ yarn storybook
Create new Icon
We can create the skeleton that we need by running
$ bash ./scripts/new.bash MyIcon
This will create the basic stuff for your new icon on src/MyIcon/MyIcon.tsx
.
It will also execute the build.bash
that will create the storybook entry for your new icon.
Compile new assets
We create the src/FooIcon/index.ts
and src/FooIcon/FooIcon.tsx
our self. Then run the following script:
$ bash ./scripts/build.bash
This will create the exports and stoybook files.
Handling CRLF issues
If you run on windows you could get issues with files being created as CRLF. You can see this if files that you have not changed are modified. Existing files should not be modified when the script above is executed, only new files should be outputed.
So before commiting try to run yarn lint --fix
Publish to NPM
Follow semantic versioning and this will then be done automatically.