- Clone this repository into your computer
git clone git@github.gam.gehealthcare.com:212070170/cdx-component-starter-package.git
- Install dependencies
npm install
-
Add your component code in src/index.js
-
Update package.json with your component name and version
{
"name": "put-your-component-name-here",
"version": "put-your-component-version-here",
...
}
- Build your component for publishing
npm run build
- log in to npm
npm login (you must have an account in npm, have verified your email and have publishing rights)
- Publish your component
npm publish