<my-card-le>
Installation
npm i
yarn install
Demo
npm start
yarn start
Runs the app in the development mode. Open http://localhost:8001/demo/ to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Usage
<my-card-le></my-card-le>
<script type="module">
/** Watch the demo for more examples **/
import "my-card-le/my-card-le";
<my-card-le
.title=${"Mulan"}
.genre=${["Action", "Adventure"]}
.date=${"2020"}
.vote=${7.1}
.description=${"When the Emperor of China issues a decree that one man per family..."}
.poster=${"//image.tmdb.org/t/p/w220_and_h330_face/aKx1ARwG55zZ0GpRvU2WrGrCG9o.jpg"}
.backdrop=${"//image.tmdb.org/t/p/w1920_and_h800_multi_faces/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg"}
>
</my-card-le>
</script>
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.
Tips
Does not work "husky"? test...
rm -rf .git/hooks/
rm -rf node_modules
yarn