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
Rollup
by default will try to bundle everything into packages. Add dependencies topackage.json
file of each package or useexternals
option inRollup
config. -
Packages won't build on
TS
> 4.5.5.VSC
might enforce newer version!