npm i my-component
yarn install
<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>
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
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.