forked from VKCOM/VKUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
169 lines (169 loc) · 7.37 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
{
"name": "@vkontakte/vkui",
"version": "4.0.8",
"main": "dist/cjs/index.js",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"license": "MIT",
"description": "VKUI library",
"repository": "https://github.com/VKCOM/VKUI",
"homepage": "https://vkcom.github.io/VKUI/",
"defaultSchemeId": "bright_light",
"sideEffects": [
"./dist/lib/polyfills.js",
"./dist/index.js",
"./dist/cjs/lib/polyfills.js",
"./dist/cjs/index.js",
"*.css"
],
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@babel/parser": "^7.11.3",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/runtime": "^7.11.2",
"@size-limit/preset-small-lib": "^4.9.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.1",
"@testing-library/user-event": "^12.2.2",
"@types/css-font-loading-module": "^0.0.4",
"@types/jest": "^26.0.15",
"@types/jest-image-snapshot": "^4.1.3",
"@types/node": "^12.7.2",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.8.5",
"@types/webpack-dev-server": "^3.11.1",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.0.0",
"@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v9.2.0",
"@vkontakte/eslint-config": "2.5.0",
"@vkontakte/icons": "1.64.0",
"@vkontakte/vk-bridge": "^2.1.3",
"@vkontakte/vkjs": "^0.20.0",
"autoprefixer": "^9.8.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.1.0",
"chalk": "^4.1.0",
"classnames": "^2.2.6",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^4.1.2",
"cross-env": "^7.0.2",
"css-loader": "^5.0.1",
"eslint": "~6.8.0",
"eslint-plugin-jest-playwright": "^0.2.1",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^2.0.1",
"expect-playwright": "^0.2.6",
"file-loader": "^6.2.0",
"jest": "^26.6.3",
"jest-image-snapshot": "^4.2.0",
"jest-playwright-preset": "^1.4.1",
"jest-silent-reporter": "^0.3.0",
"mini-css-extract-plugin": "^1.3.1",
"playwright-chromium": "^1.7.0",
"playwright-core": "^1.7.0",
"postcss": "8.1.4",
"postcss-cli": "8.1.0",
"postcss-csso": "5.0.0",
"postcss-custom-properties": "10.0.0",
"postcss-import": "13.0.0",
"postcss-loader": "^4.1.0",
"pre-commit": "^1.2.2",
"prop-types": "^15.6.1",
"react": "^16.8.6",
"react-docgen": "^5.4.0-alpha.0",
"react-dom": "^16.8.6",
"react-frame-component": "^3.0.0",
"react-styleguidist": "^11.1.5",
"shx": "^0.3.2",
"size-limit": "^4.9.1",
"source-map-loader": "^0.2.4",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^18.3.0",
"typescript": "3.8",
"wait-port": "^0.2.9",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.10",
"webpack-merge": "^4.2.2",
"yargs": "^15.4.1"
},
"bin": {
"generate_scheme": "./tasks/generate_scheme.js"
},
"peerDependencies": {
"@babel/runtime": "^7.5.5",
"@vkontakte/icons": "^1.64.0",
"@vkontakte/vk-bridge": "^2.0.2",
"@vkontakte/vkjs": "^0.20.0",
"prop-types": "^15.6.1",
"react": "^16.8.6 || ^17.0.0",
"react-dom": "^16.8.6 || ^17.0.0"
},
"size-limit": [
{
"name": "JS",
"path": "dist/index.js"
},
{
"name": "JS, unstable",
"path": "dist/unstable/index.js"
},
{
"name": "CSS",
"path": "dist/vkui.css",
"webpack": false
},
{
"name": "CSS, unstable",
"path": "dist/unstable.css",
"webpack": false
}
],
"scripts": {
"prepare": "yarn build",
"size": "yarn clear && yarn build && size-limit",
"styleguide": "cross-env NODE_ENV=development styleguidist server --config=styleguide/config.js",
"styleguide:build": "cross-env NODE_ENV=production styleguidist build --config=styleguide/config.js",
"dev": "yarn clear && yarn copy-default-scheme && concurrently \"yarn:tsc-dev\" \"yarn:babel-dev\" \"yarn:postcss-dev\" \"yarn:postcss-unstable-dev\"",
"dev-cjs": "yarn clear && yarn copy-default-scheme && concurrently \"yarn:tsc-cjs-dev\" \"yarn:babel-cjs-dev\" \"yarn:postcss-dev\" \"yarn:postcss-unstable-dev\"",
"dev-all": "yarn clear && yarn copy-default-scheme && concurrently \"yarn:tsc-dev\" \"yarn:babel-dev\" \"yarn:tsc-cjs-dev\" \"yarn:babel-cjs-dev\" \"yarn:postcss-dev\" \"yarn:postcss-unstable-dev\"",
"postcss-dev": "postcss src/styles/styles.css --output dist/vkui.css --watch --verbose --no-map",
"postcss-unstable-dev": "postcss src/styles/unstable.css --output dist/unstable.css --watch --verbose --no-map",
"babel-dev": "babel src/ --out-dir dist/ --extensions .tsx,.jsx,.ts,.js --watch",
"babel-cjs-dev": "babel --config-file ./babel.cjs.config.js src/ --out-dir dist/cjs/ --extensions .tsx,.jsx,.ts,.js --watch",
"tsc-dev": "tsc --emitDeclarationOnly --declaration --outDir dist/ --watch --preserveWatchOutput",
"tsc-cjs-dev": "tsc --emitDeclarationOnly --declaration --outDir dist/cjs/ --watch --preserveWatchOutput",
"build": "yarn tsc && yarn babel && yarn tsc-cjs && yarn babel-cjs && yarn postcss && yarn postcss-unstable && yarn copy-default-scheme",
"postcss": "cross-env NODE_ENV=production postcss src/styles/styles.css --output dist/vkui.css --verbose",
"postcss-unstable": "NODE_ENV=production postcss src/styles/unstable.css --output dist/unstable.css --verbose",
"babel": "cross-env NODE_ENV=production babel src/ --out-dir dist/ --source-maps --extensions .tsx,.jsx,.ts,.js",
"babel-cjs": "cross-env NODE_ENV=production babel --config-file ./babel.cjs.config.js src/ --out-dir dist/cjs/ --source-maps --extensions .tsx,.jsx,.ts,.js",
"tsc": "cross-env NODE_ENV=production tsc --emitDeclarationOnly --declaration -p tsconfig.dist.json",
"tsc-cjs": "cross-env NODE_ENV=production tsc --emitDeclarationOnly --declaration --outDir dist/cjs/ -p tsconfig.dist.json",
"clear": "shx rm -rf dist/*",
"test:unit": "jest --config jest.unit.config.js",
"test:unit:quick": "yarn test:unit --silent --reporters='jest-silent-reporter' --onlyChanged",
"test:unit:ci": "yarn test:unit --ci --silent --outputFile test-results.json --json --coverage --coverageReporters='json-summary'",
"test:e2e": "jest --config e2e/jest.e2e.config.js",
"test:code": "jest",
"lint:es": "eslint --ext .jsx,.js,.ts,.tsx src/ e2e/ --cache --cache-location .cache/.eslintcache",
"lint:es:ci": "yarn lint:es -o lint-results.json -f json",
"lint:style": "stylelint \"./src/**/*.css\" --cache --cache-location .cache/.stylelintcache",
"typecheck": "tsc --incremental --emitDeclarationOnly --declaration --tsBuildInfoFile .cache/.tsbuildinfo --outDir .cache/ts",
"test:static": "concurrently 'yarn typecheck' 'yarn lint:es' 'yarn lint:style'",
"test:static:ci": "concurrently 'yarn typecheck' 'yarn lint:es:ci' 'yarn lint:style'",
"test": "concurrently 'yarn test:unit' 'yarn test:static'",
"test:quick": "concurrently 'yarn test:unit:quick' 'yarn test:static'",
"test:ci": "concurrently 'yarn test:unit:ci' 'yarn test:static:ci'",
"copy-default-scheme": "shx cp ./src/styles/bright_light.css ./dist/default_scheme.css"
},
"pre-commit": [
"test:static"
],
"dependencies": {}
}