logik-se-component-library
Template repository for Mantine extensions. It includes package build, publishing, testing, linting scripts and Next.js based documentation template. To get started with this template click "Use this template" button or follow this link (note that you need to be logged in your GitHUb account to use it). You can also download zip and setup repository yourself.
Prerequisites
Get started
- Generate new repository using the template
- Clone generated repository
- Update settings.js with your package information
- Update
name
anddescription
fields in package.json - Remove
"logik-se-component-library": "file:.yalc/logik-se-component-library"
line fromdocs/package.json
- Install dependencies:
yarn
- Link your package with yalc –
yalc publish
- Start storybook with
npm run storybook
- Start documentation with
npm start
Publishing package
To publish package to npm registry run one of the following commands:
-
npm run release:patch
– release 1.0.x version -
npm run release:minor
– release 1.x.0 version -
npm run release:major
– release x.0.0 version
Testing scripts
-
npm run typecheck
– checks validity of types -
npm run lint
– lints package code -
npm run jest
– package unit tests -
npm run prettier:test
– checks package code formatting