0.1.1 • Published 5 years ago

contiamo-icons v0.1.1

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
5 years ago

Contiamo Icons collection

Netlify Status

This repository regroups all Contiamo® Icons.

How to add a new icon?

  1. Create a new branch git checkout -b name-of-my-branch

  2. Add a svg file in ./svg folder.

Each file must be in PascalCase, the name of the file will become the name of the icon (/svg/Add.svg will become <Icon.Add />)

  1. Commit the change git commit -am "Add my beautiful icon!"

  2. Push to github git push origin name-of-my-branch

  3. Create a new pull request on github

That's it! Everything else is fully automated :tada:

Semantic versioning

This repository is following the semver convention.

To simplify:

  • Patch an existing icon -> bump the patch number
  • Add a new icon -> bump the minor number
  • Delete or rename an icon -> bump the major number

How is it working?

Everything works on CI, each push to master call npm run build and produce every Icon.{name} react components from the svg folder sources.

You can see all implementation details into build.ts