-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
117 lines (117 loc) · 4.45 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
{
"name": "@automattic/vip-design-system",
"version": "2.10.3",
"main": "build/system/index.js",
"scripts": {
"build-storybook": "storybook build",
"cmd:format": "prettier '**/*.(js|json|jsx|md|mdx|ts|tsx|yml|yaml)'",
"cmd:lint": "eslint --ext 'js,jsx,ts,tsx' --max-warnings 0",
"prepare": "npm run build",
"build": "npm run theme-update && npm run build:app && npm run build:types && npm run theme-builder-copy",
"build:app": "cross-env NODE_ENV=production babel src --copy-files --delete-dir-on-start --extensions '.ts,.tsx' --out-dir build",
"build:types": "tsc -p tsconfig.definition.json --emitDeclarationOnly --noEmit false",
"check-types": "tsc",
"format": "npm run cmd:format -- --write",
"format:check": "npm run cmd:format -- --check",
"jest": "NODE_ENV=test jest --env=jsdom",
"jest:coverage": "npm run jest && open-cli ./coverage/index.html",
"jest:watch": "npm run jest -- --watch",
"theme-builder-copy": "npm run theme-builder-copy-light && npm run theme-builder-copy-dark",
"theme-builder-copy-light": "mkdir -p build/system/theme/generated/ && cp src/system/theme/generated/valet-theme-light.json build/system/theme/generated/valet-theme-light.json",
"theme-builder-copy-dark": "mkdir -p build/system/theme/generated/ && cp src/system/theme/generated/valet-theme-dark.json build/system/theme/generated/valet-theme-dark.json",
"theme-update": "npm run theme-update-light && npm run theme-update-dark",
"theme-update-light": "token-transformer tokens/valet-core src/system/theme/generated/valet-theme-light.json valet-core,wpvip-product-core",
"theme-update-dark": "token-transformer tokens/valet-core src/system/theme/generated/valet-theme-dark.json valet-core,wpvip-product-core,wpvip-product-dark",
"lint": "npm run cmd:lint .",
"lint:fix": "npm run cmd:lint . -- --fix",
"storybook": "storybook dev -p 6006",
"dev": "npm run storybook",
"test": "npm run jest",
"watch": "npm run build -- --watch"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.0",
"@radix-ui/react-dropdown-menu": "^1.0.1-rc.6",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@radix-ui/react-switch": "^1.0.0",
"@radix-ui/react-tabs": "^1.0.0",
"@radix-ui/react-tooltip": "^1.0.0",
"@theme-ui/match-media": "^0.16.1",
"accessible-autocomplete": "^2.0.4",
"classnames": "^2.3.1",
"framer-motion": "^3.9.1",
"i18n-calypso": "^7.0.0",
"react-icons": "^4.7.0"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0",
"theme-ui": "0.16.0"
},
"jest": {
"collectCoverage": true,
"coverageReporters": [
"json",
"html"
],
"testEnvironmentOptions": {
"url": "http://localhost"
},
"roots": [
"<rootDir>/src",
"<rootDir>/test"
],
"setupFilesAfterEnv": [
"<rootDir>/test/setupAfterEnv.ts"
],
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/test/fileMock.ts"
}
},
"devDependencies": {
"@automattic/eslint-plugin-wpvip": "0.8.0",
"@axe-core/react": "4.7.3",
"@babel/cli": "7.23.0",
"@babel/core": "7.23.0",
"@babel/preset-env": "7.22.20",
"@babel/preset-react": "7.22.15",
"@babel/preset-typescript": "7.23.0",
"@babel/runtime": "7.23.1",
"@emotion/react": "11.11.1",
"@radix-ui/react-icons": "^1.1.1",
"@storybook/addon-a11y": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/addon-storysource": "^7.6.17",
"@storybook/react": "^7.6.17",
"@storybook/react-webpack5": "^7.6.17",
"@testing-library/dom": "9.3.3",
"@testing-library/jest-dom": "6.1.3",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "^14.4.3",
"@tsconfig/node18": "18.2.2",
"@types/jest": "29.5.5",
"@types/jest-axe": "3.5.6",
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"cross-env": "7.0.3",
"eslint": "8.52.0",
"eslint-plugin-storybook": "0.6.15",
"jest": "29.7.0",
"jest-axe": "8.0.0",
"jest-environment-jsdom": "29.7.0",
"prettier": "npm:[email protected]",
"react": "18.2.0",
"react-dom": "18.2.0",
"storybook": "^7.6.17",
"theme-ui": "0.16.0",
"token-transformer": "0.0.33",
"typescript": "5.2.2"
}
}