This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 3.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": "carbon",
"private": true,
"version": "0.0.0",
"repository": "[email protected]:carbon-design-system/carbon.git",
"license": "Apache-2.0",
"engines": {
"node": ">=12.x"
},
"workspaces": {
"packages": [
"actions/*",
"codemods",
"config/*",
"packages/*"
],
"nohoist": []
},
"scripts": {
"build": "lerna run build --stream --prefix --npm-client yarn",
"ci-check": "carbon-cli ci-check",
"clean": "lerna run clean && lerna clean --yes && rimraf node_modules",
"doctoc": "doctoc --title '## Table of Contents'",
"format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'",
"format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'",
"lint": "eslint actions config codemods packages",
"lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables",
"sync": "carbon-cli sync",
"test": "cross-env BABEL_ENV=test jest",
"test:e2e": "cross-env BABEL_ENV=test jest --testPathPattern=e2e --testPathIgnorePatterns='examples,/packages/components/,/packages/react/'"
},
"resolutions": {
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-is": "~16.9.0",
"react-test-renderer": "~16.9.0"
},
"devDependencies": {
"@babel/core": "^7.10.0",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-export-namespace-from": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.10.0",
"@babel/preset-env": "^7.10.0",
"@babel/preset-react": "^7.10.0",
"@babel/runtime": "^7.10.0",
"@carbon/cli": "workspace:packages/cli",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@testing-library/dom": "^7.26.6",
"@testing-library/jest-dom": "^5.11.5",
"@testing-library/react": "^11.1.1",
"@testing-library/user-event": "^12.2.0",
"all-contributors-cli": "^6.19.0",
"cross-env": "^5.2.0",
"cross-spawn": "^6.0.5",
"doctoc": "^1.4.0",
"eslint": "^6.8.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"husky": "^4.0.10",
"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"lerna": "^3.20.2",
"lint-staged": "^9.5.0",
"node-gyp": "^7.1.2",
"prettier": "^2.2.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"rimraf": "^3.0.0",
"stylelint": "^13.6.0"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "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",
"style"
]
]
}
},
"lint-staged": {
"**/*.js": [
"prettier --write",
"eslint",
"git add"
],
"**/*.scss": [
"prettier --write",
"stylelint --report-needless-disables --report-invalid-scope-disables --allow-empty-input",
"git add"
],
"!(*sass).md": [
"prettier --write",
"git add"
]
},
"eslintConfig": {
"extends": [
"carbon"
]
},
"stylelint": {
"extends": [
"./config/stylelint-config-carbon"
]
},
"jest": {
"preset": "jest-config-carbon",
"collectCoverageFrom": [
"packages/**/src/**/*.js",
"!packages/{cli,components,sketch}/**",
"!packages/**/{examples,stories}/**",
"!**/*-story.js"
],
"reporters": [
"default",
"jest-junit"
]
}
}