hamro-design-system
v0.4.3
Published
Hamro Design System for React applications
Readme
Hamro Design System
The Hamro Design System bridges design and engineering by centralising reusable UI components, visual guidelines, and tooling powered by Storybook.
Installation
npm install hamro-design-systemIf your app needs the packaged global styles, import them once at your application entrypoint:
import 'hamro-design-system/styles.css';Storybook
npm run storybook:runPublish Readiness
Build and inspect the npm package locally before publishing:
npm run pack:checkPublish to npm:
npm publishRequirements:
- You must be logged into npm with an account that can publish the package scope.
- For a public scoped package, npm will use
--access publicthroughpublishConfig. prepublishOnlywill run the production build and test suite before publish.
Working Locally
Use npm link to test local changes in another project. See the internal documentation for more details.
- Remove any installed npm version of the package.
npm uninstall hamro-design-system - From the Hamro Design System folder link the package.
npm link - Inside the consumer project link to the local package.
npm link hamro-design-system - After testing, unlink the package in the consumer project.
npm unlink hamro-design-system - Back in the Hamro Design System folder unlink the local package.
npm unlink - Reinstall dependencies as needed.
npm install
Package Entry Points
- JS import:
hamro-design-system - CSS entrypoint:
hamro-design-system/styles.css
