0.0.2 • Published 6 years ago
@adriengibrat/ui-components v0.0.2
\
This webcomponents follows the open-wc recommendation.
Installation
npm i ui-componentsUsage
Import individual component
<script type="module" src="./lib/browser/ui-button.js"></script>
<ui-button>button</ui-button>Import all components
<script type="module" src="./lib/browser/index.js"></script>
<ui-button>button</ui-button>
<ui-avatar>email@example.com</ui-avatar>
...Linting with ESLint, Prettier, and Types
To automatically fix the project linting errors, run
npm run lintTesting
To run the suite of tests, run
npm testTo run the tests in watch mode (for TDD, for example), run
npm run test:watchDemoing with Storybook
To run a local instance of Storybook for your component, run
npm startTo build a docs version of Storybook, run
npm run docs