timered-counter 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +51 -76
  2. package/package.json +12 -2
package/README.md CHANGED
@@ -1,76 +1,51 @@
1
- # \<timered-counter>
2
-
3
- This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm i timered-counter
9
- ```
10
-
11
- ## Usage
12
-
13
- ```html
14
- <script type="module">
15
- import 'timered-counter/timered-counter.js';
16
- </script>
17
-
18
- <timered-counter></timered-counter>
19
- ```
20
-
21
- ## Linting and formatting
22
-
23
- To scan the project for linting and formatting errors, run
24
-
25
- ```bash
26
- npm run lint
27
- ```
28
-
29
- To automatically fix linting and formatting errors, run
30
-
31
- ```bash
32
- npm run format
33
- ```
34
-
35
- ## Testing with Web Test Runner
36
-
37
- To execute a single test run:
38
-
39
- ```bash
40
- npm run test
41
- ```
42
-
43
- To run the tests in interactive watch mode run:
44
-
45
- ```bash
46
- npm run test:watch
47
- ```
48
-
49
- ## Demoing with Storybook
50
-
51
- To run a local instance of Storybook for your component, run
52
-
53
- ```bash
54
- npm run storybook
55
- ```
56
-
57
- To build a production version of Storybook, run
58
-
59
- ```bash
60
- npm run storybook:build
61
- ```
62
-
63
-
64
- ## Tooling configs
65
-
66
- For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
67
-
68
- If you customize the configuration a lot, you can consider moving them to individual files.
69
-
70
- ## Local Demo with `web-dev-server`
71
-
72
- ```bash
73
- npm start
74
- ```
75
-
76
- To run a local development server that serves the basic demo located in `demo/index.html`
1
+ # timered-counter
2
+
3
+ Make the value change more vivid and natural.
4
+
5
+ ![npm](https://img.shields.io/npm/v/timered-counter?style=flat-square)
6
+ ![npm](https://img.shields.io/npm/dm/timered-counter?style=flat-square)
7
+ ![NPM](https://img.shields.io/npm/l/timered-counter?style=flat-square)
8
+ [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release&style=flat-square)](https://github.com/semantic-release/semantic-release)
9
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/133df312-97ec-411b-816e-52ee0bd49808/deploy-status?style=flat-square)](https://app.netlify.com/sites/timered-counter/deploys)
10
+
11
+ <table>
12
+ <tr>
13
+ <th colspan="4">Timered Counter</th>
14
+ </tr>
15
+ <tr>
16
+ <td><img src="./demo/images/simple.gif" /></td>
17
+ <td><img src="./demo/images/countdown.gif" /></td>
18
+ <td><img src="./demo/images/string.gif" /></td>
19
+ <td><img src="./demo/images/color.gif" /></td>
20
+ </tr>
21
+ <tr>
22
+ <td><a href="https://timered-counter.netlify.app/guide/examples/simple-usage.html#number"><strong>Simple</strong></a></td>
23
+ <td><a href="https://timered-counter.netlify.app/guide/examples/simple-usage.html#datetime-duration"><strong>Countdown</strong></a></td>
24
+ <td><a href="https://timered-counter.netlify.app/guide/examples/simple-usage.html#string"><strong>String</strong></a></td>
25
+ <td><a href="https://timered-counter.netlify.app/guide/examples/styled-usage.html#color"><strong>Colorful</strong></a></td>
26
+ </tr>
27
+ <tr>
28
+ <td><img src="./demo/images/locale.gif" /></td>
29
+ <td><img src="./demo/images/delay.gif" /></td>
30
+ <td><img src="./demo/images/easing.gif" /></td>
31
+ </tr>
32
+ <tr>
33
+ <td><a href="https://timered-counter.netlify.app/guide/examples/locale-usage.html#locale-datetime-duration"><strong>Locale</strong></a></td>
34
+ <td><a href="https://timered-counter.netlify.app/guide/examples/animated-usage.html#delay"><strong>Delay</strong></a></td>
35
+ <td><a href="https://timered-counter.netlify.app/guide/examples/animated-usage.html#easing"><strong>Easing</strong></a></td>
36
+ </tr>
37
+ </table>
38
+
39
+ ## Documentation
40
+
41
+ - [Online Documentation](https://timered-counter.netlify.app/)
42
+
43
+ ## Thanks
44
+
45
+ ![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)
46
+
47
+ > Thank JetBrains for providing an [open-source license](https://jb.gg/OpenSourceSupport), which allows me to use such an excellent IDE.
48
+
49
+ ## License
50
+
51
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsiaikin%2Ftimered-counter.svg?type=large&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsiaikin%2Ftimered-counter?ref=badge_large&issueType=license)
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "timered-counter",
3
- "description": "Webcomponent timered-counter following open-wc recommendations",
3
+ "description": "Make the value change more vivid and natural",
4
4
  "license": "MIT",
5
5
  "author": "timered-counter",
6
- "version": "0.0.9",
6
+ "version": "0.1.0",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
10
+ "unpkg": "dist/timered-counter.global.js",
11
+ "jsdelivr": "dist/timered-counter.global.js",
10
12
  "exports": {
11
13
  ".": "./dist/src/index.js",
12
14
  "./timered-counter.js": "./dist/src/timered-counter.js",
@@ -21,6 +23,14 @@
21
23
  "dist"
22
24
  ],
23
25
  "types": "dist/src/index.d.ts",
26
+ "keywords": [
27
+ "timered-counter",
28
+ "counter",
29
+ "timer",
30
+ "countdown",
31
+ "web-components",
32
+ "lit"
33
+ ],
24
34
  "scripts": {
25
35
  "analyze": "cem analyze --litelement",
26
36
  "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\"",