@keystonehq/header-footer-components
v2.1.8
Published
## Features
Readme
⚛️⚡ Vite + React + Typescript Component Library Template
Features
- ⚛️ React 18
- 📚 Storybook 7 - Components preview
- ⏩ Vite - Run and build the project blazingly fast!
- 📐 ESLint & Prettier - Formatting and Linting
- 🌟 Typescript
- 🐶 Husky & Lint Staged - Pre-commit Hooks
- ⏰ Release Please — Generate the changelog with the release-please workflow
- 👷 Github Actions — Releasing versions to NPM
- Initial components setup using Atomic Design
Getting Started
- Create a new repository using this one as template
- Clone your repo
- Install dependencies with
pnpm i(first runcorepack enableto enable pnpm) - Run
pnpm preparecommand to setup Husky pre-commit hooks.
Main Scripts
Always prepending pnpm:
dev: Bootstrap the Storybook preview with Hot Reload.build: Builds the static storybook project.build:lib: Builds the component library into the dist folder.lint:fix: Applies linting based on the rules defined in .eslintrc.js.format:prettier: Formats files using the prettier rules defined in .prettierrc.
Develop
- Run
pnpm devto start the server - Develop on the local
- Run
pnpm build:libto build after developing - Push changes to the remote repo
