-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 2.18 KB
/
package.json
File metadata and controls
95 lines (95 loc) · 2.18 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
{
"name": "preact-custom-element",
"version": "4.6.0",
"description": "Wrap your component up as a custom element",
"source": "src/index.js",
"types": "src/index.d.ts",
"main": "dist/preact-custom-element.js",
"module": "dist/preact-custom-element.esm.js",
"unpkg": "dist/preact-custom-element.umd.js",
"scripts": {
"prepare": "npx simple-git-hooks",
"build": "microbundle -f cjs,es,umd --no-generateTypes",
"test": "npm run test:types & npm run test:browser",
"test:browser": "wtr test/browser/*.test.{js,jsx}",
"test:types": "tsc -p test/types/",
"lint": "eslint src/*.js",
"format": "prettier --write --ignore-path .gitignore '!README.md' .",
"prepublishOnly": "npm run build && npm run lint && npm run test"
},
"eslintConfig": {
"extends": "developit",
"settings": {
"react": {
"version": "16.8"
}
},
"ignorePatterns": [
"*.ts",
"*.tsx"
],
"rules": {
"brace-style": "off",
"jest/expect-expect": "off",
"lines-around-comment": "off",
"comma-dangle": "off",
"no-unused-vars": [
2,
{
"args": "none",
"varsIgnorePattern": "^h$"
}
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/preactjs/preact-custom-element.git"
},
"keywords": [
"preact",
"web",
"components",
"custom",
"element"
],
"authors": [
"Bradley J. Spaulding",
"The Preact Authors (https://preactjs.com)"
],
"license": "MIT",
"bugs": "https://github.com/preactjs/preact-custom-element/issues",
"homepage": "https://github.com/preactjs/preact-custom-element",
"files": [
"src",
"dist",
"LICENSE",
"package.json",
"README.md"
],
"peerDependencies": {
"preact": ">= 10.25.0 || >=11.0.0-0"
},
"devDependencies": {
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.10",
"@web/dev-server-esbuild": "^1.0.4",
"@web/test-runner": "^0.20.2",
"eslint": "^7.7.0",
"eslint-config-developit": "^1.2.0",
"microbundle": "^0.15.1",
"nano-staged": "^0.8.0",
"preact": "^10.27.1",
"prettier": "^2.1.1",
"simple-git-hooks": "^2.13.1",
"typescript": "^5.9.2"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
},
"nano-staged": {
"**/*.{js,jsx,ts,tsx,yml}": [
"prettier --write"
]
}
}