forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
157 lines (157 loc) · 5.97 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
{
"name": "ibm-cloud-cognitive",
"private": true,
"version": "0.0.0",
"repository": "git@github.com:carbon-design-system/ibm-cloud-cognitive.git",
"license": "Apache-2.0",
"workspaces": {
"packages": [
"config/*",
"packages/*"
],
"nohoist": []
},
"scripts": {
"audit": "node scripts/audit.js dependencies moderate",
"build": "run-s build:* storybook:build:storybook",
"build:packages": "yarn run-all --include-dependencies --ignore \"@carbon/ibm-cloud-cognitive-core\" build",
"ci-check": "run-s ci-check:* storybook:build",
"ci-check:build": "run-s build:* 'run-all --no-sort ci-check'",
"ci-check:lint": "run-p audit lint",
"ci-check:tests": "run-p 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 clean:* && run-p 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",
"copy-common-files": "sh ./scripts/copy-common-files.sh",
"format": "run-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 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",
"run-all": "lerna run --stream --prefix --loglevel success",
"test": "run-p test:*",
"test:cdai": "lerna run --stream --scope @carbon/ibm-cloud-cognitive-cdai test --",
"test:c4p": "lerna run --stream --scope @carbon/ibm-products test --",
"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 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",
"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), husky (major change in action), eslint (until eslint-config-carbon's babel-eslint supports eslint v8), stylelint (until stylelint-config-carbon supports stylelint v14)",
"upgrade:dependencies:top": "npm-check-updates -u --reject '/(carbon|^react$|^react-dom$|^husky$|^eslint$|^stylelint$)/'",
"upgrade:dependencies:packages": "yarn run-all --no-sort --concurrency 1 upgrade-dependencies",
"upgrade:dependencies:yarn": "yarn set version latest",
"upgrade:automatic": "run-s upgrade:dependencies:*",
"upgrade:carbon": "npm-check-updates -u --packageFile '{package.json,{config/**,packages/**}/package.json}' --filter '/carbon/'",
"upgrade:manual": "sh ./scripts/monorepo-npm-upgrade.sh"
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@testing-library/dom": "^8.11.2",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"copyfiles": "^2.4.1",
"cspell": "^5.16.0",
"eslint": "^7.32.0",
"eslint-config-carbon": "^2.9.0",
"husky": "^4.3.6",
"jest": "^27.4.7",
"json": "^11.0.0",
"lerna": "^4.0.0",
"lint-staged": "^12.2.2",
"npm-check-updates": "^12.2.0",
"npm-run-all": "^4.1.5",
"npm-upgrade": "^3.0.0",
"prettier": "^2.5.1",
"prettier-config-carbon": "^0.4.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rimraf": "^3.0.2",
"stylelint": "^13.13.1",
"stylelint-config-carbon": "^1.7.0",
"stylelint-plugin-carbon-tokens": "^0.11.2",
"webpack": "^5.66.0"
},
"//resolutions": "package 'request' deprecated but still used, asks for http-signature ~1.2.0 which indirectly has vulnerabilities",
"resolutions": {
"**/request/http-signature": "~1.3.0"
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": [
"carbon"
],
"rules": {
"react/display-name": [
0
]
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "yarn update-gallery-config; yarn copy-common-files; lint-staged"
}
},
"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 lint:prettier:files",
"**/*.js": "yarn lint:es:files",
"**/*.scss": "yarn lint:style:files",
"**/*": "yarn spellcheck:files"
}
}