-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
156 lines (156 loc) · 5.87 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
{
"name": "@cloudscape-design/code-view",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://github.com/cloudscape-design/code-view.git"
},
"homepage": "https://cloudscape.design",
"scripts": {
"prebuild": "rm -rf lib dist .cache",
"build": "npm-run-all build:pkg --parallel build:src:* --parallel build:pages:* build:themeable",
"postbuild": "size-limit",
"lint": "npm-run-all --parallel lint:*",
"lint:eslint": "eslint --ignore-path .gitignore --fix --ext ts,tsx,js .",
"lint:stylelint": "stylelint --ignore-path .gitignore --fix '{src,pages}/**/*.{css,scss}'",
"prepare": "husky install",
"test:unit": "vitest run --config vite.unit.config.mjs",
"test:visual": "run-p -r preview test:visual:vitest",
"test:visual:vitest": "vitest run --config vite.e2e-visual.config.mjs",
"test:visual:update": "UPDATE_SCREENSHOTS=true npm run test:visual",
"pretest": "tsc -p tsconfig.unit.json && tsc -p tsconfig.e2e.json",
"test": "run-s lint test:unit",
"preview": "vite preview",
"start": "run-p start:server start:watch:ts start:watch:css",
"start:server": "vite",
"start:watch:ts": "npm run build:src:js -- --watch",
"start:watch:css": "chokidar \"./src/**/*.scss\" -c \"npm run build:src:css\"",
"build:pkg": "node scripts/package-json.js",
"build:src:js": "tsc -p tsconfig.json --inlineSources --sourceMap",
"build:src:css": "node scripts/compile-styles.js",
"build:src:test-utils": "node scripts/test-utils.js",
"build:src:copy": "cp README.md lib/components/",
"build:src:docs": "node scripts/docs.js",
"build:src:environment": "node scripts/environment",
"build:themeable": "node scripts/themeable-source",
"build:pages:vite": "vite build",
"build:pages:tsc": "tsc -p pages/tsconfig.json"
},
"exports": {
".": "./index.js",
"./code-view": "./code-view/index.js",
"./highlight": "./code-view/highlight/index.js",
"./highlight/cpp": "./code-view/highlight/cpp.js",
"./highlight/csharp": "./code-view/highlight/csharp.js",
"./highlight/css": "./code-view/highlight/css.js",
"./highlight/go": "./code-view/highlight/go.js",
"./highlight/html": "./code-view/highlight/html.js",
"./highlight/java": "./code-view/highlight/java.js",
"./highlight/javascript": "./code-view/highlight/javascript.js",
"./highlight/json": "./code-view/highlight/json.js",
"./highlight/kotlin": "./code-view/highlight/kotlin.js",
"./highlight/markdown": "./code-view/highlight/markdown.js",
"./highlight/php": "./code-view/highlight/php.js",
"./highlight/python": "./code-view/highlight/python.js",
"./highlight/ruby": "./code-view/highlight/ruby.js",
"./highlight/rust": "./code-view/highlight/rust.js",
"./highlight/sh": "./code-view/highlight/sh.js",
"./highlight/typescript": "./code-view/highlight/typescript.js",
"./highlight/xml": "./code-view/highlight/xml.js",
"./highlight/yaml": "./code-view/highlight/yaml.js",
"./internal/api-docs/*.js": "./internal/api-docs/*.js",
"./test-utils/dom": "./test-utils/dom/index.js",
"./test-utils/selectors": "./test-utils/selectors/index.js"
},
"dependencies": {
"@cloudscape-design/component-toolkit": "^1.0.0-beta",
"ace-code": "^1.32.3",
"clsx": "^1.2.1"
},
"peerDependencies": {
"@cloudscape-design/components": "^3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@cloudscape-design/browser-test-tools": "^3.0.4",
"@cloudscape-design/build-tools": "^3.0.1",
"@cloudscape-design/components": "^3",
"@cloudscape-design/design-tokens": "^3",
"@cloudscape-design/documenter": "^1.0.0",
"@cloudscape-design/global-styles": "^1.0.1",
"@cloudscape-design/test-utils-converter": "^1.0.0",
"@cloudscape-design/theming-build": "^1",
"@size-limit/preset-small-lib": "^11.1.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/jest-image-snapshot": "^6.1.0",
"@types/lodash": "^4.14.191",
"@types/node": "^18.19.4",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.4.0",
"chokidar-cli": "^3.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^45.0.2",
"execa": "^6.1.0",
"globby": "^13.1.3",
"husky": "^8.0.3",
"jest-image-snapshot": "^6.1.0",
"jsdom": "^20.0.3",
"lint-staged": "^13.1.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.6.1",
"size-limit": "^11.1.2",
"stylelint": "^16.8.1",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.2",
"stylelint-scss": "^6.4.1",
"stylelint-use-logical": "^2.1.2",
"typescript": "4.9.4",
"vite": "^5.4.7",
"vitest": "^1.4.0"
},
"//": "ensure that typedoc uses typescript 4.9.4. It prints a warning, but works",
"overrides": {
"typescript": "4.9.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.{scss,css}": [
"stylelint --fix"
],
"package-lock.json": [
"./scripts/prepare-package-lock.js"
]
},
"size-limit": [
{
"path": "lib/components/index.js",
"limit": "6.4kb"
},
{
"path": "lib/components/code-view/highlight/javascript.js",
"limit": "10kb"
}
]
}