Skip to content

Commit

Permalink
refactor: remove svgs from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed May 12, 2024
1 parent 0170a9c commit 970e08e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
dist/
assets/icons
node_modules/
storybook-static/
build-storybook.log
.DS_Store
.env
/.idea/
/.idea/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ yarn start

Go to [localhost:6006](http://localhost:6006)

### Add new icons

Icons are generated using [svgr](https://react-svgr.com/docs/).

In order to add new icons to the addon, drop the icons somewhere in the repo and run the following command:

```bash
yarn build:icons path/to/your/icons
```

### Build

#### Rollup
Expand Down
3 changes: 0 additions & 3 deletions assets/icons/beaker.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/copy.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/edit.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/reset.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/share.svg

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"scripts": {
"test": "vitest",
"test:watch": "yarn test -- -w",
"build": "yarn build:icons && rollup -c",
"build": "rollup -c",
"build:watch": "yarn build -- -w",
"build:icons": "yarn svgr --typescript --no-svgo --out-dir src/icons assets/icons",
"build:icons": "yarn svgr --typescript --no-svgo --out-dir src/icons",
"lint": "eslint . --max-warnings 0",
"lint:fix": "yarn lint -- --fix",
"storybook": "storybook dev -p 6006",
Expand Down

0 comments on commit 970e08e

Please sign in to comment.