forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
161 lines (161 loc) · 6.28 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
{
"name": "ibm-products",
"private": true,
"version": "0.0.0",
"repository": "[email protected]:carbon-design-system/ibm-products.git",
"license": "Apache-2.0",
"workspaces": {
"packages": [
"config/*",
"packages/*"
]
},
"scripts": {
"audit": "node scripts/audit.js '--environment production' moderate",
"build": "run-s -s 'build:*' storybook:build:storybook",
"build:packages": "yarn run-all --include-dependencies 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:c4p": "yarn test:c4p --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:c4p": "run-s -s 'lint:es:c4p --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:c4p": "yarn lint:es:files 'packages/ibm-products/src/**/*.js' --ignore-pattern '!examples/carbon-for-ibm-products/**/*.scss'",
"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:c4p": "lerna run --stream --scope @carbon/ibm-products test --",
"test:c4p:snapshot": "yarn test:c4p styles -u",
"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",
"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)/'",
"upgrade:dependencies:packages": "yarn run-all --no-sort --concurrency 1 upgrade-dependencies",
"upgrade:dependencies:yarn": "yarn set version latest",
"upgrade:dependencies:examples": "npm-check-updates -u --dep dev,peer,prod --color --target minor --packageFile 'examples/**/package.json'",
"upgrade:automatic": "run-s -s 'upgrade:dependencies:*'",
"upgrade:carbon": "npm-check-updates -u --dep dev,peer,prod --packageFile '{package.json,{config/**,examples/**,packages/**}/package.json}' --filter '/carbon/' --target minor",
"upgrade:manual": "sh ./scripts/monorepo-npm-upgrade.sh"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/eslint-parser": "^7.22.9",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@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.31.1",
"eslint": "^8.45.0",
"eslint-config-carbon": "^2.20.0",
"husky": "^8.0.3",
"jest": "^29.6.1",
"json": "^11.0.0",
"lerna": "^7.1.3",
"lint-staged": "^13.2.3",
"npm-check-updates": "^16.10.15",
"npm-run-all": "^4.1.5",
"npm-upgrade": "^3.1.0",
"postcss": "^8.4.26",
"prettier": "^2.8.8",
"prettier-config-carbon": "^0.11.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rimraf": "^5.0.1",
"stylelint": "^15.10.1",
"stylelint-config-ibm-products": "*",
"webpack": "^5.88.1"
},
"//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
],
"react/forbid-component-props": 0,
"react/forbid-dom-props": 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": {
"packages/ibm-products/**/*.{js,md,mdx,scss}": "yarn lint:prettier:files",
"packages/ibm-products/**/*.js": "yarn lint:es:files",
"packages/ibm-products/**/*.scss": "yarn lint:style:files",
"packages/ibm-products/**/*": "yarn spellcheck:files"
},
"dependencies": {
"stylelint-plugin-carbon-tokens": "2.3.1"
},
"packageManager": "[email protected]"
}