forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
168 lines (168 loc) · 6.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "ibm-cloud-cognitive",
"private": true,
"version": "0.0.0",
"repository": "[email protected]:carbon-design-system/ibm-cloud-cognitive.git",
"license": "Apache-2.0",
"workspaces": {
"packages": [
"config/*",
"packages/*"
]
},
"scripts": {
"audit": "node scripts/audit.js dependencies moderate",
"build": "run-s -s 'build:*' storybook:build:storybook",
"build:packages": "yarn run-all --include-dependencies --ignore \"@carbon/ibm-cloud-cognitive-core\" build",
"ci-check": "run-s -s 'ci-check:*' storybook:build",
"ci-check:build": "run-s -s 'build:*' 'run-all --no-sort ci-check'",
"ci-check:lint": "run-p -s audit lint",
"ci-check:tests": "run-p -s 'ci-check:test:*'",
"ci-check:test:cdai": "yarn test:cdai --ci",
"ci-check:test:c4p": "yarn test:c4p --ci",
"ci-check:test:security": "yarn test:security --ci",
"clean": "run-p -s 'clean:*' && run-p -s 'clean:finally:*'",
"clean:cache": "yarn cache clean",
"clean:finally:files": "rimraf coverage node_modules results",
"clean:lerna": "lerna clean --yes",
"clean:packages": "yarn run-all --no-sort clean",
"format": "run-s -s 'lint:es --fix' 'format:prettier --write'",
"format:prettier": "yarn format:prettier:files '**/*.{js,md,mdx,scss,ts}' '!**/{build,es,lib,storybook,ts,umd,coverage}/**'",
"format:prettier:files": "prettier",
"generate": "lerna run generate --loglevel success --scope \"@carbon/ibm-products\" --",
"lint": "run-p -s 'lint:*' spellcheck",
"lint:es": "yarn lint:es:files 'packages/*/src/**/*.js'",
"lint:es:files": "eslint",
"lint:prettier": "yarn format:prettier --check --loglevel warn",
"lint:prettier:files": "yarn format:prettier:files --check --loglevel warn",
"lint:style": "yarn lint:style:files 'packages/*/src/**/*.scss'",
"lint:style:files": "stylelint --report-needless-disables --report-invalid-scope-disables",
"prepare": "husky install",
"run-all": "lerna run --stream --prefix --loglevel success",
"test": "run-p -s 'test:*'",
"test:cdai": "lerna run --stream --scope @carbon/ibm-cloud-cognitive-cdai test --",
"test:c4p": "lerna run --stream --scope @carbon/ibm-products test --",
"test:c4p:snapshot": "yarn test:c4p styles -u",
"test:security": "lerna run --stream --scope @carbon/ibm-security test --",
"spellcheck": "yarn spellcheck:files '**/*' '.github/**/*'",
"spellcheck:files": "cspell lint --relative --no-progress --show-context --no-must-find-files --gitignore",
"storybook": "run-s storybook:build:dependencies storybook:start",
"storybook:build": "run-s -s 'storybook:build:*'",
"storybook:build:dependencies": "yarn run-all --include-dependencies --scope \"@carbon/storybook-addon-theme\" build",
"storybook:build:storybook": "cd packages/core && yarn build",
"storybook:start": "cd packages/core && yarn start",
"sync": "carbon-cli sync",
"test-report": "component-usage-report ./examples/*/**/src/*.js",
"update-gallery-config": "node scripts/example-gallery-builder/index.js; yarn format:prettier:files examples/carbon-for-ibm-products/example-gallery/src/gallery-config/index.js --write",
"//upgrade:dependencies:top": "# don't upgrade carbon (done globally), react/react-dom (not tested)",
"upgrade:dependencies:top": "npm-check-updates -u --dep dev,peer,prod --reject '/(carbon|^react$|^react-dom$|^@testing-library|^framer-motion)/'",
"upgrade:dependencies:packages": "yarn run-all --no-sort --concurrency 1 upgrade-dependencies",
"upgrade:dependencies:yarn": "yarn set version latest",
"upgrade:automatic": "run-s -s 'upgrade:dependencies:*'",
"upgrade:carbon": "npm-check-updates -u --dep dev,peer,prod --packageFile '{package.json,{config/**,packages/**}/package.json}' --filter '/carbon/' --target minor",
"upgrade:manual": "sh ./scripts/monorepo-npm-upgrade.sh"
},
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/eslint-parser": "^7.19.1",
"@carbon/component-usage-report": "*",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@testing-library/dom": "^8.11.4",
"@testing-library/react": "^12.1.4",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^13.5.0",
"cheerio": "^1.0.0-rc.12",
"copyfiles": "^2.4.1",
"cspell": "^6.14.2",
"eslint": "^8.27.0",
"eslint-config-carbon": "2.17.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
"json": "^11.0.0",
"lerna": "^6.0.3",
"lint-staged": "^13.0.3",
"npm-check-updates": "^16.4.1",
"npm-run-all": "^4.1.5",
"npm-upgrade": "^3.1.0",
"postcss": "^8.4.19",
"prettier": "^2.7.1",
"prettier-config-carbon": "^0.8.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rimraf": "^3.0.2",
"stylelint": "^14.15.0",
"stylelint-config-ibm-products": "*",
"webpack": "^5.75.0"
},
"//resolutions:http-signature": "package 'request' deprecated but still used, asks for http-signature ~1.2.0 which indirectly has vulnerabilities",
"//resolutions:minimist": "https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795 (version <=1.2.5)",
"resolutions": {
"cheerio": "1.0.0-rc.10"
},
"eslintConfig": {
"parser": "@babel/eslint-parser",
"extends": [
"carbon"
],
"rules": {
"react/display-name": [
0
]
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
72
],
"body-max-line-length": [
2,
"always",
80
],
"scope-case": [
0,
"always",
"lower-case"
],
"type-enum": [
2,
"always",
[
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"test"
]
]
}
},
"lint-staged": {
"**/*.{js,md,mdx,scss}": [
"yarn prettier --write"
],
"**/*.js": [
"yarn dlx eslint --fix"
],
"**/*.scss": [
"yarn stylelint"
],
"**/*": "yarn spellcheck:files"
},
"dependencies": {
"stylelint-plugin-carbon-tokens": "2.1.0"
},
"packageManager": "[email protected]"
}