-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
158 lines (158 loc) · 4.65 KB
/
Copy pathpackage.json
File metadata and controls
158 lines (158 loc) · 4.65 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "web-component-base",
"version": "6.1.6",
"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"
},
"./cem-plugin": {
"types": "./dist/cem-plugin.d.ts",
"import": "./dist/cem-plugin.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",
"files": [
"dist"
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "pnpm -F demo dev",
"dev": "pnpm -F demo dev",
"test": "vitest --run",
"test:watch": "vitest",
"test:e2e": "E2E_BROWSERS=chromium vitest --run --config vitest.e2e.config.mjs",
"test:e2e:chromium": "E2E_BROWSERS=chromium vitest --run --config vitest.e2e.config.mjs",
"test:e2e:firefox": "E2E_BROWSERS=firefox vitest --run --config vitest.e2e.config.mjs",
"test:e2e:webkit": "E2E_BROWSERS=webkit vitest --run --config vitest.e2e.config.mjs",
"test:e2e:all": "vitest --run --config vitest.e2e.config.mjs",
"test:types": "pnpm run build && tsc -p test/types/tsconfig.json && tsc -p demo/examples/typed-props/tsconfig.json",
"test:template": "pnpm run build && node ./scripts/check-template.js",
"test:all": "pnpm test && pnpm test:types && pnpm test:template && pnpm test:e2e:all",
"demo": "pnpm -F demo dev",
"demo:build": "pnpm -F demo build",
"docs": "pnpm -F docs start",
"storybook": "pnpm run build && pnpm -F storybook dev",
"storybook:build": "pnpm run build && pnpm -F storybook build",
"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\"",
"release": "bumpp && node ./scripts/release.js",
"release:docs": "node ./scripts/release-docs.js",
"format": "prettier . --write",
"lint": "eslint . --config eslint.config.mjs",
"prepare": "husky"
},
"lint-staged": {
"*.{js,mjs,cjs}": [
"eslint --config eslint.config.mjs --fix",
"prettier --write"
],
"*.{json,css,html,md,yml,yaml}": "prettier --write",
"src": "size-limit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ayo-run/wcb.git"
},
"homepage": "https://WebComponent.io",
"keywords": [
"web components",
"web component",
"custom elements",
"custom element",
"lightweight",
"tiny",
"zero dependency",
"reactive",
"base class",
"no build step",
"buildless",
"lit alternative",
"vanilla js",
"html"
],
"author": "Ayo Ayco",
"license": "MIT",
"bugs": {
"url": "https://github.com/ayo-run/wcb/issues"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.11.0",
"@eslint/js": "^9.39.2",
"@size-limit/preset-small-lib": "^12.0.0",
"@vitest/browser": "4.1.10",
"@vitest/browser-playwright": "4.1.10",
"@vitest/coverage-v8": "4.1.10",
"bumpp": "^11.1.0",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"eslint-plugin-jsdoc": "^62.4.1",
"globals": "^17.1.0",
"happy-dom": "^20.3.7",
"htm": "^3.1.1",
"husky": "^9.1.7",
"lint-staged": "^17.0.8",
"netlify-cli": "^23.13.5",
"playwright": "^1.62.0",
"prettier": "^3.8.1",
"release-it": "^19.2.4",
"simple-git": "^3.36.0",
"simple-server": "^1.1.1",
"size-limit": "^12.0.0",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
},
"size-limit": [
{
"path": "./dist/WebComponent.js",
"limit": "2.05 KB"
},
{
"path": "./dist/html.js",
"limit": "0.6 KB"
},
{
"path": "./dist/utils/create-element.js",
"limit": "0.5 KB"
},
{
"path": "./dist/utils/patch.js",
"limit": "0.8 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"
}
],
"packageManager": "pnpm@11.17.0+sha512.cca3cea332ad254bb84145f966d19f4879615210346fc92c79a047f23a0d7b3cca3c3792f0076ba1f1831d277efbcf0a9119b31a9a60eca7fb3d6231f331ef72"
}