account-ui
v0.0.8
Published
Kompas Account Reusable Web Component
Downloads
7
Readme
kompas-account-ui
kompas-account-ui
is Repository consist of reusable component that used mainly for Kompas Account and Kompas Event. All the component built using Stencil
Getting Started
npm install
npm run dev
To build the component for production, run:
npm run build
To run the unit tests for the components, run:
npm test
Publish To NPM
npm run build
npm login
npm publish --access=public
Commit Rules
We tried to maximize the value of commit to ensure all of the commit has clear scope and description. So we use Commitizen to implement Conventional Commit
Source: https://www.conventionalcommits.org/en/v1.0.0/
run:
npm run commit
Generate Component
When we start to createing new components, we recommend to using built-in script from stencil by run:
npm run generate [component-name]
Naming Components
When creating new component tags, we recommend not using stencil
in the component name (ex: <stencil-datepicker>
). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix ion
.