canvas-ui

npm latest version npm prodpatch version npm beta version npm latest version npm beta version npm latest version npm beta version

Release and publish lib to npm

  • yarn lib:dev - starts lib in watch mode. usually started from the consuming project
  • yarn lib:build - builds lib for prod (splits chunks for proper tree shaking)
  • yarn lib:test - starts tests in watch mode for creating new ones or TDDing
  • yarn lib:extract:translations - extracts new translation keys in order for you to be able to add their literals
  • yarn api:generate:types:latest - generates latest types from our REST API which are bundled into the published npm package
  • To use our color palette in other components: import useThemeVars from '@lib/composables/useThemeVars
  • To list unused files npx knip at root folder