0.0.15 • Published 1 year ago
aimhigh3-test-web-components v0.0.15
aha-web-components
This repo contains common React Web Components for use in other Aim High projects.
Setup
Install dependencies:
yarnAssets
SVGs
SVGs should be included as components; they can be generated via the SVGR Cli (https://react-svgr.com/docs/cli/). This allows the build to be done with a simple tsc command instead of needing webpack or another non-js bundling solution.
Single Icon:
npx @svgr/cli -- src/assets/icons/my-icon.svg > src/components/NewComponent/MyIcon.tsDirectory:
npx @svgr/cli --out-dir src/components/NewComponent -- src/assets/iconsPublishing
- Build the package
yarn build - Login to npm using
npm login - Increment the version using
yarn version --patch|--minor|--major(Note that this will also commit/tag any staged changes) - Dry run the publish to verify everything works
npm publish --dry-run - Publish using
npm publish --access public