Skip to content

Retrolove-Games/web-ui

Repository files navigation

React

web-ui

Monorepo with Retrolove Shop UI components.

Scripts

  • build — build all packages (using Lerna).
  • publish — publish changed packages (using Lerna).
  • lint — list linting errors.
  • lint:fix — lint & fix.
  • lint:quiet — lint & fix silently.
  • tsm — generate typings for sass modules.
  • tsm:watch — generate typings for sass modules (in watch mode).

Adding a new package

  1. Create a directory with proper structure in packages.
  2. Add sibling deps. cd packages\[your package]. And for eg. lerna add @retrolove-games/ui-themes --scope=@retrolove-games/logo.

Local development

Adding local packages:

npm install --save "[local path]/web-ui/packages/hello-world"

Possible problems

  • Please remember that Rollup by default will try to bundle everything into packages. Add dependencies to package.json file of each package or use externals option in Rollup config.

  • Packages won't build on TS > 4.5.5. VSC might enforce newer version!

About

Monorepo with UI components.

Resources

Stars

Watchers

Forks

Packages