-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
143 lines (143 loc) · 4.38 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
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
{
"name": "@openenergytools/scl-text-field",
"description": "TextField for SCL related attributes",
"license": "Apache-2.0",
"version": "2.0.1",
"type": "module",
"main": "dist/scl-text-field.js",
"module": "dist/scl-text-field.js",
"exports": {
".": "./dist/scl-text-field.js"
},
"scripts": {
"analyze": "cem analyze",
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
"build": "tsc && npm run analyze -- --exclude dist",
"prepublish": "tsc && npm run analyze -- --exclude dist",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"test": "tsc && wtr --coverage",
"test:watchunit": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --group unit --watch --coverage\"",
"test:watchvisual": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --group visual --watch --coverage\"",
"test:unit": "tsc && wtr --group unit --coverage",
"test:visual": "tsc && wtr --group visual --coverage",
"test:update": "tsc && wtr --group visual --update-visual-baseline",
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build",
"deploy": "npm run storybook:build && gh-pages --dist 'storybook-static'"
},
"dependencies": {
"@open-wc/scoped-elements": "^3.0.5",
"@scopedelement/material-web": "^3.10.0",
"lit": "^3.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@custom-elements-manifest/analyzer": "^0.4.17",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@open-wc/eslint-config": "^8.0.2",
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.10",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@web/dev-server": "^0.4.6",
"@web/dev-server-polyfill": "^1.0.4",
"@web/dev-server-storybook": "^0.0.2",
"@web/test-runner": "0.19.0",
"@web/test-runner-commands": "0.9.0",
"@web/test-runner-playwright": "0.11.0",
"@web/test-runner-visual-regression": "0.9.0",
"@webcomponents/scoped-custom-element-registry": "0.0.9",
"cem-plugin-readme": "^0.1.4",
"concurrently": "^5.3.0",
"eslint": "8.57.0",
"eslint-config-prettier": "^8.3.0",
"gh-pages": "^5.0.0",
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"prettier": "^2.4.1",
"sinon": "^15.2.0",
"tslib": "^2.3.1",
"typescript": "5.5.4"
},
"customElements": "custom-elements.json",
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"@open-wc",
"prettier"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "off",
"sort-imports": [
"error",
{
"ignoreCase": true,
"allowSeparatedGroups": true
}
],
"class-methods-use-this": [
"error",
{
"exceptMethods": [
"locale"
]
}
],
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.ts",
"**/*.spec.ts",
"**/*.stories.ts",
"**/*.config.js"
]
}
],
"import/no-unresolved": "off",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
]
}
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run analyze",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.29.1"
}
}