-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
119 lines (119 loc) · 3.29 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
{
"name": "react-web-hooks",
"version": "0.3.0",
"description": "react-web-hooks project",
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"files": [
"dist",
"lib",
"es",
"package.json"
],
"scripts": {
"test": "jest --watchAll",
"dev": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.config.js",
"dev:build": "cross-env NODE_ENV=development webpack --config config/webpack.dev.config.js",
"build:cjs": "rm -rf lib && tsc -d --module commonjs --outDir lib",
"build:esm": "rm -rf es && tsc -d --module es6 --outDir es",
"build": "rm -rf dist && npm run build:cjs && npm run build:esm && cross-env NODE_ENV=production webpack --config config/webpack.prod.config.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cli-templates/template-react.git"
},
"keywords": [
"react",
"template"
],
"author": "biaodigit",
"license": "ISC",
"homepage": "https://github.com/cli-templates/template-react#readme",
"devDependencies": {
"@babel/core": "^7.10.3",
"@testing-library/jest-dom": "^5.11.5",
"@testing-library/react": "^11.1.0",
"@testing-library/react-hooks": "^3.7.0",
"@testing-library/user-event": "^12.1.8",
"@types/jest": "^24.9.1",
"@types/react": "^16.9.41",
"@types/react-dom": "^16.9.8",
"babel-loader": "^8.1.0",
"babel-preset-react-app": "^10.0.0",
"camelcase": "^6.2.0",
"cross-env": "^7.0.2",
"fork-ts-checker-webpack-plugin": "^5.0.5",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"jest-resolve": "^26.6.2",
"jest-watch-typeahead": "^0.6.1",
"react-app-polyfill": "^2.0.0",
"react-hot-loader": "^4.12.21",
"react-test-renderer": "^17.0.1",
"ts-loader": "^7.0.5",
"tslib": "^1.11.1",
"typescript": "^3.8.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2"
},
"dependencies": {
"axios": "^0.21.1",
"lodash.debounce": "^4.0.8",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"setupFiles": [
"react-app-polyfill/jsdom"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.ts"
],
"testMatch": [
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testEnvironment": "jsdom",
"testRunner": "./node_modules/jest-circus/runner.js",
"transform": {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$"
],
"moduleFileExtensions": [
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
"node"
],
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
],
"resetMocks": true
},
"babel": {
"presets": [
"react-app"
]
}
}