/my-component

Mi first component whit litElement

Primary LanguageJavaScript

<my-component>

Installation

npm i my-component
yarn install

Usage

<script type="module">
	import "my-component/my-component.js";
</script>

<my-component></my-component>
<script type="module">
	import "my-component/my-component.js";
</script>

<my-component .title="My title"></my-component>

Testing with Karma

To run the suite of karma tests, run

npm run test
yarn test

To run the tests in watch mode (for TDD, for example), run

npm run test:watch
yarn test:watch

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.