-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
147 lines (147 loc) · 8.22 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
{
"name": "plasma",
"private": true,
"author": "Salute Frontend Team <[email protected]>",
"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",
"api:generate-report": "lerna run api-report --since=$(git merge-base --fork-point origin/dev) --no-bail --stream",
"api:diff": "./scripts/stable-diff.sh packages/plasma-web/api/* packages/plasma-b2c/api/* > reports/plasma-hope-diff.diff || echo 'diff generated'",
"api:report": "npm run api:generate-report",
"auto-plugins:build": "tsc -p auto-plugins/tsconfig.json",
"release": "git diff && auto shipit -v",
"cy:clean": "rm -rf cypress/{results,reports,screenshots,videos}",
"cy:accept-diffs": "docker run -it --rm -v $PWD:/e2e -w /e2e -e CYPRESS_updateSnapshots=true -e CYPRESS_BASE_URL=${PUBLIC_URL:-'http://host.docker.internal:6006'} cypress/included:8.0.0 run --browser chrome",
"cy:run": "docker run -it --rm -v $PWD:/e2e -w /e2e -e CYPRESS_BASE_URL=${PUBLIC_URL:-'http://host.docker.internal:6006'} cypress/included:8.0.0 run --browser chrome",
"cy:open": "cypress open",
"cy:get-image": "echo trike94/cypress$(if [[ $(uname -a) == *\"ARM64\"* ]]; then echo \"-m1\"; fi):9.4.1",
"precy:run-ct": "rm -rf {.nyc_output}",
"cy:run-ct": "SPEC=$(node -p \"require('./cypress/cypress-get-specs.js').specs\") && CYPRESS_IMAGE=$(npm run cy:get-image | tail -1) && docker run --rm -v $PWD:/e2e -w /e2e --entrypoint=/bin/bash -e CYPRESS_CONFIG_FILE=$CYPRESS_CONFIG_FILE -e PACKAGE_NAME=$PACKAGE_NAME -e COVERAGE_DIR=cypress/${PACKAGE_NAME}-coverage -e COVERAGE=true -e PACKAGE_DIR=packages/$PACKAGE_NAME -e CYPRESS_updateSnapshots=$CYPRESS_updateSnapshots ${CYPRESS_IMAGE} -c 'node ./actions/platform-test/lib/index.js --config cypress/config/$CYPRESS_CONFIG_FILE --spec='$SPEC' --command run-ct'",
"cy:ui:run-ct": "PACKAGE_NAME=plasma-ui CYPRESS_CONFIG_FILE=ui-config.json npm run cy:run-ct",
"cy:web:run-ct": "PACKAGE_NAME=plasma-web CYPRESS_CONFIG_FILE=web-config.json npm run cy:run-ct",
"cy:b2b:run-ct": "PACKAGE_NAME=plasma-web CYPRESS_CONFIG_FILE=b2b-config.json npm run cy:run-ct",
"cy:b2c:run-ct": "PACKAGE_NAME=plasma-b2c CYPRESS_CONFIG_FILE=b2c-config.json npm run cy:run-ct",
"cy:ui:run-ct-update-diffs": "PACKAGE_NAME=plasma-ui CYPRESS_updateSnapshots=true CYPRESS_CONFIG_FILE=ui-config.json npm run cy:run-ct",
"cy:web:run-ct-update-diffs": "PACKAGE_NAME=plasma-web CYPRESS_updateSnapshots=true CYPRESS_CONFIG_FILE=web-config.json npm run cy:run-ct",
"cy:b2b:run-ct-update-diffs": "PACKAGE_NAME=plasma-web CYPRESS_updateSnapshots=true CYPRESS_CONFIG_FILE=b2b-config.json npm run cy:run-ct",
"cy:b2c:run-ct-update-diffs": "PACKAGE_NAME=plasma-b2c CYPRESS_updateSnapshots=true CYPRESS_CONFIG_FILE=b2c-config.json npm run cy:run-ct",
"cy:ui:open-ct": "PACKAGE_DIR=packages/plasma-ui node actions/platform-test/lib/index.js --config cypress/config/ui-config.json --command open-ct --env failOnSnapshotDiff=false",
"cy:web:open-ct": "PACKAGE_DIR=packages/plasma-web node actions/platform-test/lib/index.js --config cypress/config/web-config.json --command open-ct --env failOnSnapshotDiff=false",
"cy:b2b:open-ct": "PACKAGE_DIR=packages/plasma-web node actions/platform-test/lib/index.js --config cypress/config/b2b-config.json --command open-ct --env failOnSnapshotDiff=false",
"cy:b2c:open-ct": "PACKAGE_DIR=packages/plasma-b2c node actions/platform-test/lib/index.js --config cypress/config/b2c-config.json --command open-ct --env failOnSnapshotDiff=false",
"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",
"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"
},
"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.9.11",
"@cypress/react": "5.9.2",
"@cypress/webpack-dev-server": "1.4.0",
"@cypress/webpack-preprocessor": "5.9.1",
"@salutejs/eslint-config": "1.2.0",
"@salutejs/eslint-config-base": "0.4.0",
"@salutejs/perftool": "0.29.0",
"@salutejs/prettier-config": "0.3.0",
"@testing-library/cypress": "7.0.7",
"@types/cypress-image-snapshot": "3.1.6",
"@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",
"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",
"cypress": "8.0.0",
"cypress-axe": "0.13.0",
"cypress-file-upload": "5.0.8",
"cypress-image-snapshot": "4.0.1",
"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",
"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": "18.2.0",
"react-dom": "18.2.0",
"required-path": "1.0.1",
"semver": "7.3.7",
"simple-scaffold": "2.2.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": "4.2.4",
"url-loader": "4.1.1",
"webpack": "5.76.0",
"webpack-dev-server": "3.11.2"
},
"dependencies": {
"babel-plugin-annotate-pure-calls": "0.4.0",
"cypress-real-events": "1.12.0",
"patch-package": "8.0.0"
},
"overrides": {
"chokidar": "^3.3.1"
},
"engines": {
"npm": "^8.19.0 || ^9.5.1"
}
}