waitingsong / midway-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Midway.js Components

GitHub tag License ci codecov Conventional Commits lerna

Note

ESM build only, requires @midwayjs >= 3.12 and set "type": "module" in packages.json

Packages

Package Version
share share-svg
ali-oss ali-oss-svg
cache cache-svg
jwt jwt-svg
otel otel-svg

Initialize and install dependencies

安装全局依赖

npm i -g c8 lerna madge rollup tsx zx

Update package

npm i && npm run build

Test

  • Use npm run lint to check code style.
  • Use npm run test to run unit test.

Clan or Purge

# clean build dist, cache and build
npm run clean
# clean and remove all node_modules
npm run purge

Note

  • Run npm run clean before npm run build, if any file under typescript outDir folder was deleted manually.
  • Default publish registry is NPM, configurated in file lerna.json
  • Any commands above (such as npm run build) running in Git-Bash under Windows OS

License

MIT

Languages


About

License:MIT License


Languages

Language:TypeScript 91.8%Language:Shell 4.6%Language:JavaScript 3.6%