Design System @xfers
Scripts
yarn test
: Run test suite
yarn start
: Run yarn build
in watch mode
yarn test:watch
: Run test suite in interactive watch mode
yarn test:prod
: Run linting and generate coverage
yarn build
: Generate bundles and typings, create docs
yarn lint
: Lints code
yarn commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)
Excluding peerDependencies
On library development, one might want to set some peer dependencies, and thus remove those from the final bundle. You can see in Rollup docs how to do that.
Good news: the setup is here for you, you must only include the dependency name in external
property within rollup.config.js
. For example, if you want to exclude lodash
, just write there external: ['lodash']
.
Update Version
Please update the version when you make any changes.
The Definitions of versions:
1st number(MAJOR)
: when you make structural breaking change
2nd number(MINOR)
: when you are adding new features
3rd number(PATCH)
: when you make backwards compatible bug fixes