@jshsj/timer
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i @jshsj/timer

Weekly Downloads

13

Version

0.0.1

License

MIT

Unpacked Size

86.1 kB

Total Files

53

Last publish

Collaborators

  • jshsj