forked from pinterest/gestalt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 3.49 KB
/
package.json
File metadata and controls
114 lines (114 loc) · 3.49 KB
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
{
"private": true,
"workspaces": [
"docs",
"packages/*"
],
"dependencies": {
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"devDependencies": {
"@actions/core": "^1.2.4",
"@actions/github": "^3.0.0",
"@babel/core": "^7.10.3",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/preset-env": "^7.10.3",
"@babel/preset-flow": "^7.10.1",
"@babel/preset-react": "^7.10.1",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^10.4.1",
"babel-eslint": "10.1.0",
"babel-jest": "^26.1.0",
"codecov": "^3.7.1",
"css-modules-flow-types-cli": "^1.3.0",
"danger": "10.2.1",
"eslint": "7.3.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-flowtype": "^5.1.3",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"flow-bin": "^0.127.0",
"husky": "^4.2.5",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.1.0",
"jscodeshift": "^0.10.0",
"lint-staged": "^10.2.11",
"papaparse": "^5.2.0",
"prettier": "1.19.1",
"react-test-renderer": "^16.13.1",
"rollup-plugin-inline-svg": "^1.1.1",
"sane": "^4.1.0",
"semver": "^7.3.2",
"shelljs": "^0.8.4",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.1.0"
},
"scripts": {
"build": "cd packages/gestalt && yarn build && cd ../gestalt-datepicker && yarn build",
"codemod": "jscodeshift --ignore-pattern=**/node_modules/**",
"css:validate": "./scripts/cssValidate.js",
"flow-generate:css": "(css-modules-flow-types packages/gestalt/src/ >/dev/null) && (css-modules-flow-types packages/gestalt-datepicker/src/ >/dev/null)",
"format": "prettier --write \"**/*.{css,html,js,md,yml}\"",
"greenkeeper-lockfile-update": "greenkeeper-lockfile-update",
"greenkeeper-lockfile-upload": "greenkeeper-lockfile-upload",
"lint:css": "stylelint \"packages/**/*.css\"",
"lint:js": "eslint .",
"precommit": "lint-staged",
"start": "(cd docs && yarn start) & (cd packages/gestalt && yarn watch) & (cd packages/gestalt-datepicker && yarn watch)",
"test": "./scripts/test.sh"
},
"jest": {
"projects": [
{
"displayName": "node",
"testEnvironment": "node",
"moduleNameMapper": {
"\\.(svg)$": "<rootDir>/scripts/fileMock.js",
"\\.(css)$": "identity-obj-proxy"
},
"testPathIgnorePatterns": [
"/node_modules/",
"jsdom.test.js"
],
"setupFilesAfterEnv": [
"<rootDir>scripts/setupJest.js"
]
},
{
"displayName": "jsdom",
"testEnvironment": "jsdom",
"moduleNameMapper": {
"\\.(svg)$": "<rootDir>/scripts/fileMock.js",
"\\.(css)$": "identity-obj-proxy"
},
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/packages/gestalt-codemods",
"<rootDir>/packages/gestalt-core"
],
"setupFilesAfterEnv": [
"<rootDir>scripts/setupJest.js"
]
}
]
},
"lint-staged": {
"*.js": [
"eslint",
"jest --findRelatedTests"
],
"*.css": [
"stylelint",
"flow-generate:css && flow"
]
}
}