You have Node installed at v10.0.0+ and Yarn at v1.2.0+. You are familiar with Git.
- Fork the repository from mt-web-icon
- git fetch and pull the latest version
- Go to https://icomoon.io/app/#/select
- Upload the latest
selection.jsonin theiconmoonfolder - In the iconmoon web app, just upload whatever svg you want to add. Be sure to center it and name it properly.
- Generate the new web font
- Download it
- Unzip it
- Copy the whole unzipped folder to update this repository,
make sure replace these folder & files
- replace the folder
/icomoonwith unzip folder - replace the folder
/fontswith unzip folder/fonts - replace the file
/css/style.csswith unzip file/style.css - replace the file
/style.csswith unzip file/style.css - replace the file
/selection.jsonwith unzip file/selection.json
- replace the folder
- In
package.jsonincrement the version - Follow the steps below to test locally
- Create a release in github
- Under the mt-web-icon run
yarnyarn build
- Under your project, install the local mt-web-icon package
rm -rf ./node_modules/mt-web-iconsyarn add file:../mt-web-icons(path the folder mt-web-icons)
- Test it
Run the following command before:
yarn buildimport React, { ReactElement } from 'react';
import Icon from 'mt-web-icons';
export default function IconAuto(): ReactElement {
return <Icon icon="auto" width={100} height={100} fill="#ffffff" />;
}import React, { ReactElement } from 'react';
// Imports from specific ESM module folder
import Icon from 'mt-web-icons/react/Icon/esm';
export default function Icon(): ReactElement {
return <Auto width={100} height={100} fill="#ffffff" />;
}import React, { ReactElement } from 'react';
import Icon from 'mt-web-icons';
export default function IconAuto(): ReactElement {
return <Icon icon="Auto" placeholder={null} fallback={<div />} />;
}import React, { ReactElement } from 'react';
import { Auto } from 'mt-web-icons';
export default function Icon(): ReactElement {
return <Auto width={100} height={100} fill="#ffffff" />;
}