-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpackage.json
More file actions
223 lines (223 loc) · 17.6 KB
/
package.json
File metadata and controls
223 lines (223 loc) · 17.6 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
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
{
"name": "plasma",
"private": true,
"author": "Salute Frontend Team <salute.developers@gmail.com>",
"license": "MIT",
"scripts": {
"scaffold:update-components-docs": "npm run scaffold:components",
"scaffold:docs": "simple-scaffold -c scaffold/scaffold-config.js --name $npm_config_package",
"scaffold:components": "node scaffold/scaffold-components.js",
"scaffold:update-docs-ui": "node scaffold/update-docs-ui.js && npm i --no-audit --no-progress --package-lock-only --lockfile-version 2 --legacy-peer-deps --prefix=$npm_config_dir",
"scaffold:install": "npm i --prefix=$npm_config_dir && npm run scaffold:update-docs-ui --dir=$npm_config_dir",
"scaffold:bootstrap": "node scaffold/update-package-json.js && npm run scaffold:install --dir=$(echo 'website/'$npm_config_package'-docs/')",
"postscaffold:docs": "npm run scaffold:components && npm run scaffold:bootstrap",
"git:diff": "git diff -- ':!packages/themes/sdds-themes' ':!packages/themes/plasma-themes'",
"release": "npm run git:diff && auto shipit -v",
"precy:run": "rm -rf {.nyc_output}",
"cy:clean": "rm -rf cypress/{results,reports,screenshots,videos}",
"cy:run": "CYPRESS_IMAGE=plasmadockerhub/cypress:15.9.0-webkit && docker run --rm -v $PWD:/e2e -w /e2e -e NODE_OPTIONS='--max-old-space-size=16384' --entrypoint=/bin/bash -e CYPRESS_CONFIG_FILE='cypress.config.ts' -e PACKAGE_NAME=$PACKAGE_NAME -e SPEC_GROUP=$SPEC_GROUP -e COMPONENTS=$COMPONENTS -e RETRIES=$RETRIES -e CYPRESS_updateSnapshots=$CYPRESS_updateSnapshots -e WEBPACK_CACHE_ENABLED=$WEBPACK_CACHE_ENABLED -e BROWSER=$BROWSER ${CYPRESS_IMAGE} -c 'cypress run --component --browser ${BROWSER:-chromium}'",
"cy:b2c:run": "PACKAGE_NAME=plasma-b2c COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:giga:run": "PACKAGE_NAME=plasma-giga COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:web:run": "PACKAGE_NAME=plasma-web COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:ui:run": "PACKAGE_NAME=plasma-ui COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled RETRIES=3 npm run cy:run",
"cy:cs:run": "PACKAGE_NAME=sdds-cs COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:insol:run": "PACKAGE_NAME=sdds-insol COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:serv:run": "PACKAGE_NAME=sdds-serv COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:scan:run": "PACKAGE_NAME=sdds-scan COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:os:run": "PACKAGE_NAME=sdds-os COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:platform-ai:run": "PACKAGE_NAME=sdds-platform-ai COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:finai:run": "PACKAGE_NAME=sdds-finai COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:homeds:run": "PACKAGE_NAME=plasma-homeds COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:b2c:run:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-b2c COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:giga:run:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-giga COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:web:run:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-web COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:ui:run:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-ui COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled RETRIES=3 npm run cy:run",
"cy:cs:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-cs COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:insol:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-insol COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:serv:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-serv COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:scan:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-scan COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:os:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-os COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:platform-ai:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-platform-ai COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:finai:run:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-finai COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:homeds:run:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-homeds COMPONENTS=$npm_config_components WEBPACK_CACHE_ENABLED=$npm_config_webpack_cache_enabled npm run cy:run",
"cy:b2c:update": "PACKAGE_NAME=plasma-b2c COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:giga:update": "PACKAGE_NAME=plasma-giga COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:web:update": "PACKAGE_NAME=plasma-web COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:ui:update": "PACKAGE_NAME=plasma-ui COMPONENTS=$npm_config_components RETRIES=3 CYPRESS_updateSnapshots=true npm run cy:run",
"cy:cs:update": "PACKAGE_NAME=sdds-cs COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:insol:update": "PACKAGE_NAME=sdds-insol COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:serv:update": "PACKAGE_NAME=sdds-serv COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:scan:update": "PACKAGE_NAME=sdds-scan COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:os:update": "PACKAGE_NAME=sdds-os COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:platform-ai:update": "PACKAGE_NAME=sdds-platform-ai COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:finai:update": "PACKAGE_NAME=sdds-finai COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:homeds:update": "PACKAGE_NAME=plasma-homeds COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:b2c:update:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-b2c COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:giga:update:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-giga COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:web:update:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-web COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:ui:update:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-ui COMPONENTS=$npm_config_components RETRIES=3 CYPRESS_updateSnapshots=true npm run cy:run",
"cy:cs:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-cs COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:insol:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-insol COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:serv:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-serv COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:scan:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-scan COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:os:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-os COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:platform-ai:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-platform-ai COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:finai:update:webkit": "BROWSER=webkit PACKAGE_NAME=sdds-finai COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:homeds:update:webkit": "BROWSER=webkit PACKAGE_NAME=plasma-homeds COMPONENTS=$npm_config_components CYPRESS_updateSnapshots=true npm run cy:run",
"cy:update": "for package in b2c giga web cs insol serv scan os platform-ai finai homeds; do npm run cy:$package:update || exit 1; done",
"cy:update:webkit": "for package in b2c giga web cs insol serv scan os platform-ai finai homeds; do npm run cy:$package:update:webkit || exit 1; done",
"cy:update:all": "npm run cy:update && npm run cy:update:webkit",
"cy:open": "cypress open --component --browser chromium",
"cy:ui:open": "PACKAGE_DIR=packages/plasma-ui npm run cy:open",
"cy:web:open": "PACKAGE_NAME=plasma-web npm run cy:open",
"cy:giga:open": "PACKAGE_NAME=plasma-giga npm run cy:open",
"cy:b2c:open": "PACKAGE_NAME=plasma-b2c npm run cy:open",
"cy:cs:open": "PACKAGE_NAME=sdds-cs npm run cy:open",
"cy:insol:open": "PACKAGE_NAME=sdds-insol npm run cy:open",
"cy:serv:open": "PACKAGE_NAME=sdds-serv npm run cy:open",
"cy:scan:open": "PACKAGE_NAME=sdds-scan npm run cy:open",
"cy:os:open": "PACKAGE_NAME=sdds-os npm run cy:open",
"cy:platform-ai:open": "PACKAGE_NAME=sdds-platform-ai npm run cy:open",
"cy:finai:open": "PACKAGE_NAME=sdds-finai npm run cy:open",
"cy:homeds:open": "PACKAGE_NAME=plasma-homeds npm run cy:open",
"cy:report:coverage": "nyc report --reporter=cobertura --reporter=html",
"extract-docgen-info": "lerna run extract-docgen-info",
"lint:scripts": "eslint ./scripts ./auto-plugins/src --ext .js,.ts --quiet",
"lint:packages": "./scripts/lint-packages.js",
"lint:lerna": "npx lerna run lint --parallel --since=$(git merge-base --fork-point origin/dev) --ignore=@salutejs/plasma-{website,colors}",
"lint": "npm run lint:scripts && npm run lint:lerna && npm run lint:packages",
"test": "lerna run test --since=$(git merge-base --fork-point origin/dev)",
"typescript-coverage": "lerna run typescript-coverage --since=$(git merge-base --fork-point origin/dev) --no-bail --stream",
"generate:theme-html": "lerna run generate:theme-html --scope @salutejs/plasma-tokens",
"prepare": "test ! -n \"$CI\" && husky install || echo skip husky",
"bootstrap": "npx lerna bootstrap",
"bootstrap:since": "npm run bootstrap -- --since=$(git merge-base --fork-point origin/dev)",
"postinstall": "patch-package",
"lerna:clean": "npx lerna clean -y",
"bootstrap:plasma-giga:full": "npx lerna bootstrap --scope='@salutejs/plasma-giga' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,plasma-themes,plasma-core,plasma-docs-ui,plasma-giga-docs}'",
"bootstrap:plasma-giga:dev": "npx lerna bootstrap --scope='@salutejs/plasma-giga' --scope='@salutejs/{core-themes,plasma-new-hope,plasma-themes,plasma-core,plasma-docs-ui,plasma-giga-docs}'",
"bootstrap:sdds-insol": "npx lerna bootstrap --scope='@salutejs/sdds-insol' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-insol-docs}'",
"bootstrap:sdds-serv": "npx lerna bootstrap --scope='@salutejs/sdds-serv' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-serv-docs}'",
"bootstrap:sdds-scan": "npx lerna bootstrap --scope='@salutejs/sdds-scan' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-scan-docs}'",
"bootstrap:sdds-os": "npx lerna bootstrap --scope='@salutejs/sdds-os' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-os-docs}'",
"bootstrap:sdds-platform-ai": "npx lerna bootstrap --scope='@salutejs/sdds-platform-ai' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-platform-ai-docs}'",
"bootstrap:sdds-finai": "npx lerna bootstrap --scope='@salutejs/sdds-finai' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,sdds-themes,plasma-core,plasma-docs-ui,sdds-finai-docs}'",
"bootstrap:plasma-homeds": "npx lerna bootstrap --scope='@salutejs/plasma-homeds' --scope='@salutejs/{plasma-sb-utils,plasma-tokens,plasma-tokens-utils,core-themes,plasma-typo,plasma-new-hope,plasma-colors,plasma-themes,plasma-core,plasma-docs-ui,plasma-homeds-docs}'",
"bootstrap:sdds-crm:dev": "npx lerna bootstrap --scope='@salutejs/sdds-crm' --scope='@salutejs/{core-themes,plasma-new-hope,sdds-themes,plasma-core,plasma-docs-ui,sdds-crm-docs}'",
"bootstrap:sdds-netology:dev": "npx lerna bootstrap --scope='@salutejs/sdds-netology' --scope='@salutejs/{core-themes,plasma-new-hope,plasma-themes,plasma-core,plasma-docs-ui,sdds-netology-docs}'",
"bootstrap:sdds-scan:dev": "npx lerna bootstrap --scope='@salutejs/sdds-scan' --scope='@salutejs/{core-themes,plasma-new-hope,plasma-core,plasma-docs-ui,sdds-scan-docs}'",
"bootstrap:sdds-sber-os:dev": "npx lerna bootstrap --scope='@salutejs/sdds-sber-os' --scope='@salutejs/{core-themes,plasma-new-hope,plasma-core}'"
},
"devDependencies": {
"@actions/core": "1.2.7",
"@actions/github": "4.0.0",
"@auto-it/conventional-commits": "11.1.1",
"@auto-it/npm": "11.1.1",
"@auto-it/released": "11.1.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-react-constant-elements": "7.22.5",
"@commitlint/cli": "17.4.4",
"@commitlint/config-conventional": "17.4.4",
"@cypress/code-coverage": "3.10.9",
"@cypress/react": "9.0.1",
"@cypress/webpack-dev-server": "5.6.0",
"@cypress/webpack-preprocessor": "7.0.2",
"@emotion/babel-plugin": "11.13.5",
"@linaria/vite": "5.0.4",
"@salutejs/eslint-config": "1.2.0",
"@salutejs/eslint-config-base": "0.4.0",
"@salutejs/perftool": "0.29.0",
"@salutejs/prettier-config": "0.3.0",
"@simonsmith/cypress-image-snapshot": "10.0.2",
"@storybook/addon-docs": "10.3.4",
"@storybook/react": "10.3.4",
"@storybook/react-vite": "10.3.4",
"@swc/cli": "0.7.10",
"@swc/core": "1.15.11",
"@swc/plugin-emotion": "14.5.0",
"@swc/plugin-styled-components": "12.5.0",
"@swc/plugin-transform-imports": "12.5.0",
"@testing-library/cypress": "7.0.7",
"@types/lodash": "4.14.191",
"@types/mocha": "9.0.0",
"@types/node": "16.11.6",
"@types/react-native": "0.69.6",
"@typescript-eslint/eslint-plugin": "5.48.2",
"@typescript-eslint/parser": "5.48.2",
"@vitejs/plugin-react": "3.1.0",
"@vitejs/plugin-react-swc": "4.2.2",
"auto": "11.1.1",
"axe-core": "4.3.4",
"babel-eslint": "10.1.0",
"babel-loader": "9.1.3",
"babel-plugin-const-enum": "1.2.0",
"babel-plugin-inline-svg": "1.2.0",
"babel-plugin-istanbul": "6.1.1",
"babel-plugin-styled-components": "1.13.2",
"chalk": "4.1.2",
"commander": "10.0.0",
"css-loader": "7.1.2",
"cypress": "15.9.0",
"cypress-axe": "0.13.0",
"cypress-file-upload": "5.0.8",
"cypress-plugin-tab": "1.0.5",
"cypress-react-unit-test": "4.17.2",
"endent": "2.1.0",
"eslint": ">= 8.32.0",
"eslint-config-airbnb": "18.1.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-cypress": "2.11.1",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-import": ">= 2.27.4",
"eslint-plugin-jest": "23.8.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.3",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-hooks": "3.0.0",
"eslint-plugin-storybook": "10.3.4",
"expect-type": "1.3.0",
"fast-glob": "3.2.12",
"file-loader": "6.2.0",
"fs-extra": "10.0.0",
"html-webpack-plugin": "5.3.2",
"http-server": "0.12.3",
"husky": "^8.0.0",
"image-loader": "0.0.1",
"io-ts": "2.2.20",
"lerna": "6.5.1",
"lint-staged": "13.1.2",
"nyc": "15.1.0",
"prettier": "2.0.5",
"react": "19.2.4",
"react-dom": "19.2.4",
"required-path": "1.0.1",
"semver": "7.3.7",
"simple-scaffold": "2.2.0",
"storybook": "10.3.4",
"style-loader": "4.0.0",
"stylelint": "13.3.3",
"stylelint-config-recommended": "3.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-order": "4.0.0",
"stylelint-prettier": "1.1.2",
"stylelint-processor-styled-components": "1.10.0",
"terminal-link": "3.0.0",
"ts-loader": "9.2.3",
"typescript": "5.6.3",
"url-loader": "4.1.1",
"vite": "5.4.21",
"vitest": "4.0.16",
"webpack": "5.104.1",
"webpack-dev-server": "5.2.3",
"zod": "4.3.6"
},
"dependencies": {
"babel-plugin-annotate-pure-calls": "0.4.0",
"cypress-real-events": "1.12.0",
"patch-package": "8.0.0",
"playwright-webkit": "1.58.2"
},
"overrides": {
"chokidar": "^3.3.1"
}
}