Package Exports
- welcome-ui
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (welcome-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Writing components
Each component will consist of:
ComponentName
: Folder with name of component (capitalized)index.js
: The React componentstyles.js
: Any relatedstyled-components
README.md
ordocs.js
: Documentation depending on Storybook or Docztests.js
: Jest tests for this component
Publishing
We use semver for versioning so run one of the following when you want to publish:
npm version patch
if there is a small (non-breaking) change (e.g. adding props to a component)npm version minor
if there is a larger (non-breaking) change (e.g. adding a new component)npm version major
if there is a breaking change (e.g. changing a component name or path)
Then run:
npm publish