This scaffold generator extends and customizes @open-wc/create, providing a starting point for creating web components with Lit.
Example:
- Lint:
eslint - Format:
prettier
-
Server: Vite Server
-
Preview: Vite Preview
-
Build: Vite Build
- TypeScript:
vitetranspile only - TypeScript:
tscemit declarations only
- TypeScript:
-
Test: Vitest browser mode and chai-a11y-axe
npm init @blockquote/wcnpm startTo scan the project for linting and formatting errors, run:
npm run lintTo automatically fix them, run:
npm run formatRun tests with:
// vitest --run --browser.headless
npm run test// vitest
npm run test:watchStart the development server:
npm run startFor hosting a static demo without bundling:
npm run dev:vitePreview demo:
npm run preview:vitenpm run buildStart the SCSS watcher:
npm run sass:watchGenerate documentation:
npm run analyzeHusky is pre-installed.
After initializing Git with git init, run:
npm run prepareto set up Husky and its Git hooks.
Plugins: