A monorepos contains all web components using lit. Each component is released in a separated package.
Each package is a npm package and will try to limit maximum cross dependencies.
All packages have @c2n/config
as dev dependencies and maybe link with @c2n/wc-utils
to reuse the sharing code.
- npm workspace:
- each package uses vitejs as a build tool
npm run generate
Demo application is a static web using Astro Framework
From root folder.
npm install
# Will build all web components first, then start demo dev server
npm run demo
# Will start demo dev server only
npm run demo:dev
npm run dev -w packages/checkbox
npm run build
npx lerna publish patch --no-private --exact --yes
# patch | major | minor | premajor | preminor | prepatch | prerelease
References: