Use GIT to commit your changes. The workspace need to be clean before updating the version.
Build the lib with the webpack config
npm run build
npm version patch
npm publish
npm run storybook
npm run dev
npm run bundle-analyzer
DTS file and map file help developer to know props that are available
npx -p typescript tsc [your component file path] --declaration --skipLibCheck --allowJs --emitDeclarationOnly --declarationMap --jsx react
npm run test-ct
npm run test "Button Component Tests"
- You need to install yalc globally on your machine:
npm i yalc -g
- You need to publish design system:
cd ~/axeptio/design-system
yalc publish
- To add the design system package to your awesome project:
cd my-awesome-project
yalc add @axeptio/design-system
- To update the design system, you can do it with an update:
yalc update @axeptio/design-system
But if you have the same dependency on several dependent packages, you can push the changes to all of them in one command:
yalc publish --push
- To finally remove the dependency from yalc in the dependent project:
yalc remove @axeptio/design-system
- You can unpublish the library published on the second step with:
yalc installations clean @axeptio/design-system
generate by gwfh