0.0.2 • Published 2 years ago
xxilk-widget v0.0.2
xxilk-widget
this is a homework project that implements reusable pay-later widget
Getting Started
npm install
npm start
To build the component for production, run:
npm run build
To run the unit tests for the components, run:
npm test
Before going live on prod
This component is not prod-ready as requires some additional work done:
- Add required support for translations
- Improve test coverage
Using this component
Script tag
- Put a script tag similar to this
<script type='module' src='https://unpkg.com/widget-xxilk@0.0.1/dist/widget-xxilk.esm.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Node Modules
- Run
npm install widget-xxilk --save
- Put a script tag similar to this
<script type='module' src='node_modules/widget-xxilk/dist/widget-xxilk.esm.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
In a stencil-starter app
- Run
npm install widget-xxilk --save
- Add an import to the npm packages
import widget-xxilk;
- Then you can use the element anywhere in your template, JSX, html etc