Monorepo with Retrolove Shop UI components.
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).
- Create a directory with proper structure in
packages. - Add sibling deps.
cd packages\[your package]. And for eg.lerna add @retrolove-games/ui-themes --scope=@retrolove-games/logo.
Adding local packages:
npm install --save "[local path]/web-ui/packages/hello-world"-
Please remember that
Rollupby default will try to bundle everything into packages. Add dependencies topackage.jsonfile of each package or useexternalsoption inRollupconfig. -
Packages won't build on
TS> 4.5.5.VSCmight enforce newer version!