@jshsj/timer
v0.0.1
Published
A tiny interval timer
Downloads
1
Maintainers
Readme
Timer
Small timer component for different interval timings. Very much still WIP. Wanted to set up my own timer component for work and learn some lit along the way.
Project status
- [x] Setup timer
- [x] Make multiple intervals work
- [x] Allow different templates
- [x] Rought notifications
- [ ] Allow editing and saving custom templates
- [ ] Make it more beautiful
- [ ] Improve Notifications
- [ ] Make it more configurable (styles, intl)
Setup
Install dependencies:
npm i
Build
This sample uses the TypeScript compiler to produce JavaScript that runs in modern browsers.
To build the JavaScript version of your component:
npm run build
To watch files and rebuild when the files are modified, run the following command in a separate shell:
npm run build:watch
Both the TypeScript compiler and lit-analyzer are configured to be very strict. You may want to change tsconfig.json
to make them less strict.