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:
vite
transpile only - TypeScript:
tsc
emit declarations only
- TypeScript:
-
Test: Vitest browser mode and chai-a11y-axe
npm init @blockquote/wc
npm start
To scan the project for linting and formatting errors, run:
npm run lint
To automatically fix them, run:
npm run format
Run tests with:
// vitest --run --browser.headless
npm run test
// vitest
npm run test:watch
Start the development server:
npm run start
For hosting a static demo without bundling:
npm run dev:vite
Preview demo:
npm run preview:vite
npm run build
Start the SCSS watcher:
npm run sass:watch
Generate documentation:
npm run analyze
Husky is pre-installed.
After initializing Git with git init
, run:
npm run prepare
to set up Husky and its Git hooks.
Plugins: