godown 2.1.1 → 2.1.2
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.
- package/README.md +43 -35
- package/package.json +2 -1
package/README.md
CHANGED
@@ -1,35 +1,43 @@
|
|
1
|
-
# Godown
|
2
|
-
|
3
|
-
The **simple,
|
4
|
-
|
5
|
-
## Install
|
6
|
-
|
7
|
-
```sh
|
8
|
-
npm i godown
|
9
|
-
```
|
10
|
-
|
11
|
-
##
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
```html
|
16
|
-
<alert-item title="Alert"></alert-item>
|
17
|
-
```
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
```js
|
22
|
-
import { AlertItem } from "godown";
|
23
|
-
|
24
|
-
item
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
1
|
+
# Godown
|
2
|
+
|
3
|
+
The **simple, stylized, semantic components** for standard HTML and other frameworks.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```sh
|
8
|
+
npm i godown
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usages
|
12
|
+
|
13
|
+
### HTML
|
14
|
+
|
15
|
+
```html
|
16
|
+
<alert-item title="Alert"></alert-item>
|
17
|
+
```
|
18
|
+
|
19
|
+
### JS
|
20
|
+
|
21
|
+
```js
|
22
|
+
import { AlertItem } from "godown";
|
23
|
+
|
24
|
+
const item = new AlertItem();
|
25
|
+
item.title = "Alert";
|
26
|
+
document.body.appendChild(item);
|
27
|
+
```
|
28
|
+
|
29
|
+
deno
|
30
|
+
|
31
|
+
```ts
|
32
|
+
import { AlertItem } from "npm:godown";
|
33
|
+
```
|
34
|
+
|
35
|
+
### React
|
36
|
+
|
37
|
+
```jsx
|
38
|
+
import { AlertItem } from "godown/react";
|
39
|
+
|
40
|
+
export default function () {
|
41
|
+
return <AlertItem title="Alert" />;
|
42
|
+
}
|
43
|
+
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "godown",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.2",
|
4
4
|
"main": "./index.js",
|
5
5
|
"type": "module",
|
6
6
|
"publishConfig": {
|
@@ -47,6 +47,7 @@
|
|
47
47
|
"watch": "tsc --watch",
|
48
48
|
"build": "tsc && node ./scripts/build.js",
|
49
49
|
"roll": "rollup -c",
|
50
|
+
"readme": "node ./scripts/readme.js",
|
50
51
|
"fmt": "prettier --write ./src",
|
51
52
|
"lint": "eslint --ext .ts ./src"
|
52
53
|
}
|