Standard Shared Config for Sophty UI icons
Install
npm install @sophty-ui/icons-shared-config --save-dev
Usage
- Add
"prepare:config": "icons-shared-config"
to scripts
property in your package.json
- Rename your
prepare
scripts to prepare:[NAME]
- Add
"prepare": "npm-run-all prepare:*"
- Run
npm run prepare
Configs
include shared configs:
extract actions, hooks and configs:
.github/*
.husky/*
.eslintrc
tsconfig.json
merge files:
append to package.json
:
scripts:
build
- build shared configbuild:ts
- transpile TS
filesbuild:generate
- generate Icon components from svg imagesgenerate
- run all generate:*
generate:changelog
- generate changeloggenerate:ghinfo
- generate .ghinfo
filelint
- run all linterslint:eslint
- run eslint
TS files lintingprepare
- run all prepare scriptsprepare:config
- rebuild local configsprepare:husky
- install husky hooksrelease
- build, lint, generate changelog and bump package version
dependencies:
configure:
{
"type": "module",
"types": "./lib/index.d.ts",
"exports": {
".": "./lib/index.js",
"./theme.css": "./lib/assets/theme.css"
},
"peerDependencies": {
"clsx": "1.x",
"react": "18.x",
"react-dom": "18.x"
}
}