review-widget
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

<review-widget>

This webcomponent follows the open-wc recommendation.

Installation

yarn install

Usage

<script type="module">
  import 'review-widget/review-widget.js';
</script>

<review-widget></review-widget>

Linting and formatting

To scan the project for linting and formatting errors, run

yarn run lint

To automatically fix linting and formatting errors, run

yarn run format

Testing with Web Test Runner

To execute a single test run:

yarn run test

To run the tests in interactive watch mode run:

yarn run test:watch

Demoing with Storybook

TODO: Fix this

To run a local instance of Storybook for your component, run

yarn run storybook

To build a production version of Storybook, run

yarn run storybook:build

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with web-dev-server

yarn start

To run a local development server that serves the basic demo located in demo/index.html

Development Notes

Enable Shadow dom in Chrome inspect

  1. Open Dev tool by pressing F12
  2. Click on the cog icon in the right top
  3. Enable option "Show Shadow DOM" under Elements category
  4. Go to Elements panel and you will see the component DOM with all styles

Readme

Keywords

none

Package Sidebar

Install

npm i review-widget

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

92.5 kB

Total Files

36

Last publish

Collaborators

  • gonzric1