-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
103 lines (103 loc) · 2.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "web-component-base",
"version": "2.1.2",
"description": "A zero-dependency & tiny JS base class for creating reactive custom elements easily",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./*": {
"types": "./dist/*.d.ts",
"import": "./dist/*.js"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.js"
},
"./utils/*": {
"types": "./dist/utils/*.d.ts",
"import": "./dist/utils/*.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "npx simple-server .",
"test": "vitest",
"demo": "npx simple-server .",
"site": "pnpm --filter site start",
"build": "pnpm run clean && tsc && pnpm run copy:source",
"size-limit": "pnpm run build && size-limit",
"clean": "rm -rf dist",
"copy:source": "esbuild --minify --bundle ./src/*.js ./src/utils/* --outdir=\"./dist\" --format=\"esm\"",
"pub": "pnpm run clean && pnpm run build && npm publish",
"pub:patch": "npm version patch && pnpm run pub",
"pub:minor": "npm version minor && pnpm run pub",
"format": "prettier . --write",
"lint": "eslint . --config eslint.config.mjs",
"prepare": "husky install"
},
"repository": "https://github.com/ayoayco/web-component-base",
"homepage": "https://WebComponent.io",
"keywords": [
"web components",
"web component",
"custom elements",
"custom element"
],
"author": "Ayo Ayco",
"license": "MIT",
"bugs": {
"url": "https://github.com/ayoayco/web-component-base/issues"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.1.6",
"esbuild": "^0.24.2",
"eslint": "^9.17.0",
"eslint-plugin-jsdoc": "^50.6.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"prettier": "^3.4.2",
"size-limit": "^11.1.6",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"size-limit": [
{
"path": "./dist/WebComponent.js",
"limit": "1.5 KB"
},
{
"path": "./dist/html.js",
"limit": "0.6 KB"
},
{
"path": "./dist/attach-effect.js",
"limit": "0.1 KB"
},
{
"path": "./dist/utils/create-element.js",
"limit": "0.5 KB"
},
{
"path": "./dist/utils/deserialize.js",
"limit": "0.5 KB"
},
{
"path": "./dist/utils/serialize.js",
"limit": "0.5 KB"
},
{
"path": "./dist/utils/get-camel-case.js",
"limit": "0.5 KB"
},
{
"path": "./dist/utils/get-kebab-case.js",
"limit": "0.5 KB"
}
]
}