Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
133 lines (133 loc) · 5.08 KB
/
Copy pathpackage.json
File metadata and controls
133 lines (133 loc) · 5.08 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
{
"name": "@mozilla/lit-web-components",
"version": "1.0.0",
"description": "Nova-styled web components; TypeScript with Lit.",
"license": "MPL-2.0",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/lit-web-components.git"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./foundation.css": "./dist/foundation.css",
"./tokens.css": "./dist/tokens/tokens.css",
"./all-tokens.css": "./dist/all-tokens.css",
"./base.css": "./dist/base.css",
"./tokens/*.css": "./dist/tokens/*.css",
"./tokens": {
"types": "./dist/generated/tokens.d.ts",
"default": "./dist/generated/tokens.js"
},
"./components/*": {
"types": "./dist/components/*/*.d.ts",
"default": "./dist/components/*/*.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
}
},
"scripts": {
"predev": "npm run analyze",
"dev": "storybook dev -p 6006",
"example": "vite --config examples/vite.config.ts",
"prestorybook": "npm run analyze",
"storybook": "storybook dev -p 6006",
"prebuild-storybook": "npm run analyze",
"build-storybook": "storybook build",
"build:tokens": "bun scripts/tokens/build.ts",
"build:icons": "bun scripts/icons/build.ts",
"build:illustrations": "bun scripts/illustrations/build.ts",
"generate": "npm run build:tokens && npm run build:icons && npm run build:illustrations",
"vendor": "npm run vendor:tokens && npm run vendor:icons && npm run vendor:illustrations",
"vendor:tokens": "bun scripts/tokens/vendor.ts",
"vendor:icons": "bun scripts/icons/vendor.ts",
"vendor:illustrations": "bun scripts/illustrations/vendor.ts",
"clean": "bun scripts/clean.ts",
"build:lib": "vite build",
"build:react": "vite build --config vite.react.config.ts",
"build:types": "tsc -p tsconfig.build.json",
"build:assets": "bun scripts/copy-assets.ts",
"analyze": "cem analyze --litelement",
"build": "npm run clean && npm run build:lib && npm run build:react && npm run build:types && npm run build:assets && npm run analyze && bun scripts/inject-dts-attrs.ts",
"prepare": "npm run build:lib && npm run build:react && npm run build:types && node scripts/copy-assets.ts && npm run analyze",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:browsers": "vitest run",
"test:coverage": "vitest run --coverage",
"playwright:install": "playwright install chromium firefox webkit",
"test:visual": "vitest run --config vitest.visual.config.ts",
"test:visual:fonts": "apt-get update -qq && apt-get install -y -qq fonts-roboto && cp tests/visual/fonts.conf /etc/fonts/local.conf",
"test:visual:report": "npm run test:visual:docker; vite preview --outDir visual-report",
"test:visual:docker": "docker run --rm --platform linux/amd64 --ipc=host -v \"$PWD\":/work -v /work/node_modules -w /work mcr.microsoft.com/playwright:v1.65.1-noble bash -lc \"npm ci && npm run test:visual:fonts && npm run test:visual\"",
"test:visual:update": "vitest run --config vitest.visual.config.ts --update",
"test:visual:update:docker": "docker run --rm --platform linux/amd64 --ipc=host -v \"$PWD\":/work -v /work/node_modules -w /work mcr.microsoft.com/playwright:v1.65.1-noble bash -lc \"npm ci && npm run test:visual:fonts && npm run test:visual:update\"",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "biome check",
"lint:css": "stylelint \"src/**/*.css\"",
"format": "stylelint \"src/**/*.css\" --fix && biome check --write"
},
"customElements": "dist/custom-elements.json",
"dependencies": {
"@lit/context": "^1.1.6",
"lit": "^3.3.3"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"devDependencies": {
"@biomejs/biome": "^2.5.15",
"@custom-elements-manifest/analyzer": "^0.11.0",
"@lit/react": "^1.0.8",
"@storybook/addon-a11y": "^10.5.7",
"@storybook/addon-docs": "^10.5.7",
"@storybook/addon-vitest": "^10.5.7",
"@storybook/web-components": "^10.5.7",
"@storybook/web-components-vite": "^10.5.7",
"@types/node": "^26.2.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitest/browser-playwright": "^5.0.5",
"@vitest/coverage-v8": "^5.0.5",
"@vitest/ui": "^5.0.5",
"browserslist": "^4.29.3",
"playwright": "^1.64.1",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"storybook": "^10.5.7",
"storybook-addon-tag-badges": "^3.1.0",
"style-dictionary": "^5.5.1",
"stylelint": "^18.0.0",
"stylelint-order": "^8.1.1",
"typescript": "^7.0.2",
"vite": "^8.2.1",
"vite-plugin-lit-css": "^3.1.0",
"vitest": "^5.0.5"
},
"allowScripts": {
"esbuild@0.28.2": true,
"rs-module-lexer@2.8.0": true,
"fsevents@2.3.3": true,
"fsevents@2.3.2": true
}
}