forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
118 lines (118 loc) · 4.32 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
{
"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": [
"packages/*"
],
"nohoist": []
},
"scripts": {
"audit": "node scripts/audit.js dependencies moderate",
"build": "lerna run build --stream --prefix --loglevel success --npm-client yarn --include-dependencies",
"build:storybook-addon-carbon-theme": "yarn build --scope \"@carbon/storybook-addon-theme\"",
"//build:storybook": "# we build dependencies, then run storybook build directly because its dynamic output gets mangled by lerna",
"build:storybook": "yarn build:storybook-dependencies-only && yarn build:storybook-only",
"build:storybook-dependencies-only": "yarn build $(lerna ls --scope @carbon/ibm-cloud-cognitive-core --include-dependencies | grep -v '^@carbon/ibm-cloud-cognitive-core$' | xargs -n1 echo '--scope')",
"build:storybook-only": "cd packages/core && yarn build",
"ccs-coverage": "yarn test packages/cloud-cognitive/src/components --coverage --collectCoverageFrom=packages/cloud-cognitive/src/components/**/*.js --collectCoverageFrom=!packages/cloud-cognitive/src/components/**/*.stories.js",
"ci-check": "yarn format:diff && yarn lint && yarn test --ci && lerna run ci-check --stream",
"clean": "yarn cache clean && lerna run clean && lerna clean --yes",
"copy-common-files": "sh ./scripts/copy-common-files.sh;",
"format": "prettier --write '**/*.{js,md,mdx,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'",
"format:diff": "prettier --list-different '**/*.{js,md,mdx,scss,ts}' '!**/{build,es,lib,storybook,ts,umd,coverage}/**' '!README.md'",
"generate": "lerna run generate --loglevel success --scope \"@carbon/ibm-cloud-cognitive\" --",
"lint": "yarn lint:es && yarn lint:style",
"lint:es": "eslint 'packages/*/src/**/*.js'",
"lint:style": "stylelint 'packages/*/src/**/*.scss' --report-needless-disables --report-invalid-scope-disables",
"test": "lerna run test --stream && jest",
"//storybook": "# we build dependencies, then start storybook directly because its dynamic output gets mangled by lerna",
"storybook": "yarn build:storybook-dependencies-only && cd packages/core && yarn start",
"sync": "carbon-cli sync",
"upgrade-carbon": "npm-check-updates -su --deep --filter '/carbon/' && yarn",
"//upgrade-dependencies": "# don't upgrade carbon (done globally), husky (major change in action), jest (untested)",
"upgrade-dependencies": "lerna run upgrade-dependencies --stream --concurrency 1 && npm-check-updates -u --reject '/(carbon|^husky$|^jest)/' && yarn",
"upgrade-manual": "sh ./scripts/monorepo-npm-upgrade.sh"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^13.1.9",
"eslint": "^7.27.0",
"eslint-config-carbon": "^2.1.0",
"husky": "^4.3.6",
"jest": "^25.5.4",
"lerna": "^4.0.0",
"lint-staged": "^11.0.0",
"npm-check-updates": "^11.6.0",
"npm-upgrade": "^3.0.0",
"prettier": "^2.3.0",
"prettier-config-carbon": "^0.4.0",
"stylelint": "^13.13.1",
"stylelint-config-carbon": "^1.2.0",
"stylelint-plugin-carbon-tokens": "^0.9.0"
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": [
"carbon"
],
"rules": {
"react/display-name": [
0
]
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "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 format",
"**/*.scss": "yarn lint:style"
}
}