forked from system-ui/theme-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
120 lines (120 loc) · 3.26 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
{
"private": true,
"scripts": {
"prepare": "lerna run prepare",
"start": "yarn workspace docs start",
"build": "yarn workspace docs build",
"serve": "yarn workspace docs serve --port 8000",
"clean": "lerna run clean",
"format": "prettier --write \"**/*.js{,on}\" \"**/*.md\" \"**/*.mdx\"",
"test": "jest",
"typecheck": "lerna run typecheck",
"logo": "yarn workspace docs logo",
"dev:chrome": "yarn workspace @theme-ui/chrome dev",
"dev:editor": "yarn workspace @theme-ui/editor dev",
"release": "lerna publish from-package --dist-tag next --pre-dist-tag next",
"prerelease": "yarn prepare && yarn typecheck && yarn test --coverage",
"bump-version": "lerna version",
"bump-version-next": "lerna version prerelease --preid alpha"
},
"workspaces": [
"packages/*"
],
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/helper-validator-identifier": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@babel/runtime": "^7.10.2",
"@emotion/jest": "^11.1.0",
"@testing-library/react": "^11.0.1",
"@types/jest": "^26.0.10",
"@types/react-test-renderer": "^16.9.2",
"babel-jest": "^26.0.1",
"babel-preset-gatsby": "^0.6.0",
"husky": ">=4.0.7",
"jest": "^26.0.1",
"jest-canvas-mock": "^2.2.0",
"jest-mock-console": "^1.0.1",
"lerna": "^3.14.1",
"lint-staged": "10",
"microbundle": "^0.12.2",
"prettier": "^2.2.0",
"react-test-renderer": "^16.8.6",
"ts-jest": "^26.4.4",
"typescript": "^4"
},
"jest": {
"preset": "ts-jest/presets/js-with-babel",
"globals": {
"ts-jest": {
"tsconfig": {
"target": "es2018",
"module": "commonjs",
"esModuleInterop": true,
"resolveJsonModule": true,
"jsx": "react",
"alwaysStrict": true,
"noImplicitThis": true,
"noImplicitAny": false,
"strictBindCallApply": false
}
}
},
"testMatch": [
"**/packages/**/test/*.{js,ts,tsx}"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/fixtures/",
"/presets/",
"/style-guide/",
"tailwind.config.js",
"/dist/"
],
"coverageReporters": [
"lcov",
"text",
"html"
],
"collectCoverageFrom": [
"packages/**/src/**/*.{js,ts,tsx}",
"!packages/docs/**/*",
"!packages/presets/**/*",
"!packages/style-guide/**/*",
"!packages/gatsby-theme-style-guide/**/*",
"!packages/chrome/**/*",
"!packages/gatsby-theme-*/**/*",
"!packages/preset-*/**/*",
"!packages/test-utils/**/*"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"snapshotSerializers": [
"@emotion/jest/serializer"
],
"setupFiles": [
"jest-canvas-mock"
],
"transform": {
"^.+\\.jsx?$": "<rootDir>/jest-preprocess.js"
},
"moduleNameMapper": {
"@theme-ui/css/dist/types": "@theme-ui/css/src/types"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}