-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.json
367 lines (367 loc) · 9.78 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
{
"name": "@rhds/elements",
"version": "2.1.1",
"description": "Red Hat Design System Elements",
"type": "module",
"license": "MIT",
"customElements": "custom-elements.json",
"exports": {
".": "./elements.js",
"./lib/*": "./lib/*",
"./react/*": "./react/*",
"./*": "./elements/*"
},
"imports": {
"#scripts/*": "./scripts/*",
"#uxdot/*": "./uxdot/*",
"#11ty-plugins/*": "./docs/_plugins/*",
"#11ty-data/*": "./docs/_data/*",
"#eleventy.config": "./eleventy.config.ts"
},
"contributors": [
"Adam Johnson <[email protected]>",
"Benny Powers <[email protected]>",
"Brian Ferry <[email protected]>",
"Corey Vickery <[email protected]>",
"Diwanshi Gadgil <[email protected]>",
"Em Nouveau <[email protected]>",
"Ivana Rodriguez <[email protected]>",
"Kelsey Swanson <[email protected]>",
"Marionne Patel <[email protected]>",
"Michael Potter <[email protected]",
"Nikki Massaro Kauffman <[email protected]>",
"Steven Spriggs <[email protected]>",
"Wes Ruvalcaba <[email protected]>"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"!*.ts",
"!*.{spec,e2e}.ts",
"elements/*/*.{js,md,map,txt,d.ts}",
"elements/*/*-lightdom.css",
"elements/*/*-lightdom-shim.css",
"elements/rh-audio-player/i18n/*.json",
"rh-*/*.css",
"!elements/*/docs/**/*.{js,html,css,md}",
"!elements/*/demo/**/*.{js,html,css,md}",
"!elements/*/test/*.{spec,e2e}.{ts,d.ts}",
"react/**/*",
"lib/**/*.{js,md,map,css,svg,md,html,txt,d.ts}",
"custom-elements.json",
"elements.js"
],
"scripts": {
"🐒-DEV": "❓ Development aids",
"start": "wireit",
"dev": "wireit",
"serve": "wireit",
"analyze": "wireit",
"new": "npm init @patternfly/element",
"🚧-BUILD": "❓ Make packages and artifacts",
"build": "wireit",
"docs": "wireit",
"site": "npm run docs",
"🧪-TEST": "❓ Test packages",
"test": "wireit",
"test:ci": "wtr",
"test:watch": "wtr --watch --group default",
"test:vue": "wtr --watch --group with-vue",
"test:react": "wtr --watch --group with-react",
"e2e": "wireit",
"e2e:update": "playwright test --update-snapshots",
"proxy": "npx spandx -c spandx.config.cjs",
"🚚-DIST": "❓ Publish packages",
"prepublishOnly": "wireit",
"⚙️--UTIL": "❓ Manages the repo",
"clean": "git clean -dfx -e node_modules -e .husky",
"clean:nuke": "git clean -fX",
"lint": "wireit"
},
"wireit": {
"patch": {
"command": "npx patch-package",
"files": [
"package-lock.json",
"patches/*"
]
},
"start": {
"service": true,
"command": "web-dev-server --open --watch",
"dependencies": [
"patch",
"analyze",
"playgrounds",
"11ty-dev"
]
},
"11ty-dev": {
"service": true,
"command": "NODE_OPTIONS='--import tsx/esm' eleventy --serve --incremental --config=eleventy.config.ts",
"dependencies": [
"analyze"
]
},
"dev": {
"service": true,
"command": "web-dev-server --watch",
"dependencies": [
"patch",
"analyze"
]
},
"serve": {
"service": true,
"command": "TSX_TSCONFIG_PATH=tsconfig.settings.json NODE_OPTIONS='--import tsx/esm' eleventy --config=eleventy.config.ts --serve --incremental",
"dependencies": [
"patch",
"analyze",
"playgrounds"
]
},
"build": {
"dependencies": [
"patch",
"analyze",
"react-wrappers",
"entrypoint",
"copy-assets",
"compile"
]
},
"build:test": {
"dependencies": [
"patch",
"analyze",
"compile"
]
},
"test": {
"command": "wtr --group default",
"dependencies": [
"build:test"
]
},
"compile": {
"command": "tspc -b",
"files": [
"elements/**/*.ts",
"uxdot/*.ts",
"uxdot/*.css",
"lib/**/*.css",
"lib/**/*.ts"
],
"output": [
"tsconfig.tsbuildinfo",
"elements/**/*.{d.ts,js,map,tsbuildinfo}",
"lib/**/*.{d.ts,js,map,tsbuildinfo}",
"elements/rh-secondary-nav/test/fixtures.js",
"docs/assets/javascript/elements/*.{js,d.ts,map,tsbuildinfo}",
"!elements/*/{demo,test}/**/*.js"
]
},
"entrypoint": {
"command": "npx tsx scripts/generate-entry-point.ts",
"dependencies": [
"analyze"
],
"files": [
"custom-elements.json",
"scripts/generate-entry-point.ts"
],
"output": [
"elements.js"
]
},
"react-wrappers": {
"command": "npx tsx scripts/generate-react-wrappers.ts",
"dependencies": [
"analyze"
],
"files": [
"custom-elements.json",
"scripts/generate-react-wrappers.ts"
],
"output": [
"react/**/*"
]
},
"copy-assets": {
"command": "npx tsx scripts/copy-assets.ts",
"files": [
"elements/*/*.css",
"scripts/copy-assets.ts"
],
"output": [
"./rh-*/*.css"
]
},
"analyze": {
"command": "cem analyze && node scripts/cem-tokens.js && node scripts/system-tokens.js",
"files": [
"elements/*/demo/*.html",
"elements/**/*.{ts,js,map}",
"elements/**/*.css",
"tsconfig.tsbuildinfo"
],
"output": [
"custom-elements.json"
]
},
"docs": {
"command": "TSX_TSCONFIG_PATH=tsconfig.settings.json NODE_OPTIONS='--import tsx/esm' eleventy --config=eleventy.config.ts",
"dependencies": [
"patch",
"analyze",
"playgrounds"
],
"files": [
"docs"
],
"output": [
"_site"
]
},
"lint": {
"dependencies": [
"eslint",
"stylelint",
"markdownlint"
]
},
"eslint": {
"command": "eslint .",
"files": [
"**/*.js",
"**/*.ts",
"**/*.html"
]
},
"stylelint": {
"command": "stylelint 'elements/**/*.css' 'lib/**/*.css' 'docs/**/*.scss' 'docs/**/*.css' 'uxdot/**/*.css'",
"files": [
"docs/**/*.scss",
"elements/**/*.css",
"uxdot/**/*.css",
"lib/**/*.css"
]
},
"markdownlint": {
"command": "markdownlint-cli2 -c .markdownlint.cjs '.changesets/*.md'",
"files": [
"docs/**/*.md",
"elements/**/*.md",
"README.md"
]
},
"playgrounds": {
"command": "npx tsx scripts/playgrounds.ts docs/_data/playgrounds.json",
"dependencies": [
"analyze"
],
"files": [
"scripts/playgrounds.ts",
"elements/*/demo/*.*",
"custom-elements.json"
],
"output": [
"docs/_data/playgrounds.json"
]
},
"e2e": {
"command": "playwright test",
"dependencies": [
"build"
]
},
"prepublishOnly": {
"dependencies": [
"build"
]
}
},
"dependencies": {
"@11ty/eleventy-upgrade-help": "^3.0.1",
"@lit/context": "^1.1.3",
"@patternfly/pfe-core": "^4.0.4",
"@rhds/icons": "^1.1.2",
"@rhds/tokens": "^2.1.1",
"lit": "^3.2.1",
"prism-esm": "^1.29.0-fix.6",
"tslib": "^2.7.0",
"web-dev-server-plugin-lit-css": "^3.0.1"
},
"devDependencies": {
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-fetch": "^4.0.1",
"@11ty/eleventy-plugin-rss": "^2.0.2",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@lit-labs/eleventy-plugin-lit": "^1.0.3",
"@lit-labs/ssr": "^3.2.2",
"@lit-labs/ssr-client": "^1.1.7",
"@lit/reactive-element": "^2.0.4",
"@lit/ts-transformers": "^2.0.1",
"@parse5/tools": "^0.5.0",
"@patternfly/create-element": "^1.0.3",
"@patternfly/elements": "^4.0.2",
"@patternfly/eslint-config-elements": "^4.0.0",
"@patternfly/eslint-plugin-elements": "^2.0.0",
"@patternfly/icons": "^1.0.3",
"@patternfly/pfe-tools": "^4.0.1",
"@playwright/test": "^1.48.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@stylistic/eslint-plugin-js": "^2.9.0",
"@stylistic/stylelint-config": "^2.0.0",
"@stylistic/stylelint-plugin": "^3.1.1",
"@types/js-yaml": "^4.0.9",
"@types/markdown-it-attrs": "^4.1.3",
"@types/markdown-it-footnote": "^3.0.4",
"@types/mocha": "^10.0.9",
"@types/tinycolor2": "^1.4.6",
"@web/rollup-plugin-import-meta-assets": "^2.2.1",
"@webcomponents/template-shadowroot": "^0.2.1",
"async-csv": "^2.1.3",
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.6",
"custom-elements-manifest": "^2.1.0",
"element-internals-polyfill": "^1.3.12",
"eleventy-plugin-dart-sass": "^1.0.3",
"eleventy-plugin-helmet": "^0.2.2",
"eleventy-plugin-nesting-toc": "^1.3.0",
"es-module-shims": "^1.10.0",
"eslint": "^9.12.0",
"fuse.js": "^7.0.0",
"git-branch": "^2.0.1",
"image-size": "^1.1.1",
"leasot": "^14.4.0",
"lit-html": "^3.2.1",
"markdown-it-attrs": "^4.2.0",
"markdown-it-footnote": "^4.0.0",
"markdownlint-cli2": "^0.14.0",
"parse5": "^7.2.0",
"patch-package": "^8.0.0",
"piscina": "^4.7.0",
"playground-elements": "^0.19.1",
"postcss-pxtorem": "^6.1.0",
"query-selector-shadow-dom": "^1.0.1",
"renamer": "^5.0.2",
"spandx": "^3.0.0",
"stylelint-config-standard": "^36.0.1",
"tinycolor2": "^1.6.0",
"ts-blank-space": "^0.4.1",
"ts-patch": "^3.2.1",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"typescript-transform-lit-css": "^2.0.0",
"wireit": "^0.14.9"
},
"optionalDependencies": {
"@esbuild/darwin-arm64": "^0.24.0",
"@esbuild/linux-x64": "^0.24.0",
"@rollup/rollup-darwin-x64": "4.14.2"
}
}