- ⚛️ React 18
- 📚 Storybook 6 - Components preview
- 🖌️ Tailwind CSS 3
- ⏩ Vite - Run and build the project blazingly fast!
- ⚡ Vitest - Components Unit Testing
- 📐 ESLint & Prettier - Formatting and Linting
- 🌟 Typescript
- 🐶 Husky & Lint Staged - Pre-commit Hooks
-
run yarn install
-
Run
yarn prepare
command to setup Husky pre-commit hooks. -
run yarn dev to lanch a storybook.
Always prepending yarn:
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.test
: Runs testing using watch mode.test:cov
: Runs testing displaying a coverage report.
TODO
- ci to publish library to npm
- some gitlab version of release-please to handle release versions
Following Conventional Commits.
Install the library running yarn component-library
.
To import the styles the library needs:
/* _app.tsx */
import 'hat-trick/dist/style.css'
// More imports and your App component ...
To import library components:
/* pages/index.tsx */
import { Button } from 'hat-trick'
// More imports and your Page component...