@ecoportal/icons 0.0.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @ecoportal/icons
2
+
3
+ NPM Package for ecoPortal React Icons in the design system. [package](https://www.npmjs.com/package/@ecoportal/icons).
4
+
5
+ ## Development
6
+
7
+ ### Adding/removing icons
8
+
9
+ The icon set is controlled by the `src/icons` directory. Any icons in there will be built via `yarn icons`. To add or remove icons just add or remove the .svg file.
10
+
11
+ ### Building
12
+
13
+ Clone the repository and add icons to `src/icons`
14
+
15
+ 1. Run `yarn icons` to build the icons into a `src/index.ts` file.
16
+ 2. Run `yarn build` to bundle the icons for publishing.
17
+ 3. Run `yarn publish` to publish the new icons to NPM.
18
+
19
+ ## Icon Guidelines
20
+
21
+ All icons in the `src/icons` directory should be in a top level `Category` folder e.g. `Buildings/building-single.svg`. The icons are served via an svg file. If an svg is made of all single color `path`s then they should not have a fill set to allow easy styling wherever imported.
22
+
23
+ ## Linking without publishing
24
+
25
+ If you wish to add icons to the package and test them somewhere else without publishing in this repo run `npm link` to create a global link on your machine. Then, navigate to the other project consuming `@ecoportal/icons` and run `npm link @ecoportal/icons` in that project. This will create a symlink between the local build of this package and what is consumed in the other project. Once happy publish.