-
Notifications
You must be signed in to change notification settings - Fork 220
/
package.json
171 lines (171 loc) · 5.63 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"name": "cdfang-spider",
"version": "2.12.1",
"description": "成都房协网爬虫,定时爬取最新房源,可视化数据分析。",
"main": "index.js",
"scripts": {
"dev": "npm-run-all --parallel client:dev server:dev server:start",
"server:start": "cross-env NODE_ENV=development supervisor -i ./dist/client/ -w ./dist/ ./dist/app.js",
"server:dev": "cross-env NODE_ENV=development gulp",
"server:prod": "cross-env NODE_ENV=production gulp",
"client:dev": "cross-env NODE_ENV=development webpack serve",
"client:prod": "cross-env NODE_ENV=production webpack",
"client:profile": "cross-env NODE_ENV=production BUILD_ENV=analysis webpack",
"prebuild": "npm run lint && rimraf ./dist",
"build": "npm-run-all --parallel client:prod server:prod",
"test:unit": "cd ./__tests__/unit;check_file=`ls | grep '.test.ts' | tr -s '\n'`;jest --findRelatedTests $check_file",
"test:e2e": "cd ./__tests__/e2e;check_file=`ls | grep '.spec.ts' | tr -s '\n'`;jest --findRelatedTests $check_file",
"test:service": "cd ./__tests__/service;check_file=`ls | grep '.spec.ts' | tr -s '\n'`;jest --detectOpenHandles --findRelatedTests $check_file",
"test": "cross-env NODE_ENV=test jest --no-cache --colors --coverage --forceExit --detectOpenHandles",
"lint": "eslint --fix --ext tsx,ts src __tests__",
"prettier": "prettier --write --check ./**/*.{ts,tsx,less}",
"commit": "npx git-cz"
},
"husky": {
"hooks": {
"pre-commit": "npm run prettier",
"pre-push": "eslint --fix --ext tsx,ts src __tests__"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/mengsixing/cdfang-spider.git"
},
"author": "mengsixing",
"license": "MIT",
"bugs": {
"url": "https://github.com/mengsixing/cdfang-spider/issues"
},
"homepage": "https://github.com/mengsixing/cdfang-spider#readme",
"dependencies": {
"@ant-design/icons": "^4.3.0",
"@antv/data-set": "^0.11.1",
"antd": "^4.10.0",
"apollo-boost": "^0.4.9",
"apollo-server-koa": "^2.19.1",
"autoprefixer": "^9.8.6",
"bizcharts": "v3-latest",
"cheerio": "^1.0.0-rc.5",
"cssnano": "^4.1.10",
"dayjs": "^1.10.2",
"ejs": "^3.1.5",
"graphql": "^15.4.0",
"graphql-tag": "^2.11.0",
"html-webpack-plugin": "^4.5.1",
"koa": "^2.13.1",
"koa-body": "^4.2.0",
"koa-router": "^10.0.0",
"koa-static": "^5.0.0",
"lodash": "^4.17.20",
"log4js": "^6.3.0",
"mini-css-extract-plugin": "^1.3.3",
"mongoose": "^5.11.11",
"node-schedule": "^1.3.2",
"qiniu-upload-plugin": "^1.2.9",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"speed-measure-webpack-plugin": "^1.3.3",
"superagent": "^6.1.0",
"supertest": "^6.0.1",
"webpack": "^5.12.1",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-merge": "^5.7.3",
"workbox-webpack-plugin": "^6.0.2"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/register": "^7.12.10",
"@testing-library/jest-dom": "^5.11.8",
"@testing-library/react": "^11.2.3",
"@types/cheerio": "^0.22.23",
"@types/jest": "^26.0.20",
"@types/koa": "^2.11.6",
"@types/koa-router": "^7.4.1",
"@types/koa-static": "^4.0.1",
"@types/lodash": "^4.14.167",
"@types/mongoose": "^5.10.3",
"@types/node": "^14.14.20",
"@types/node-schedule": "^1.3.1",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.7",
"@types/superagent": "^4.1.10",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
"codecov": "^3.8.1",
"cross-env": "^7.0.3",
"css-loader": "^5.0.1",
"eslint": "^7.17.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^7.1.0",
"eslint-import-resolver-webpack": "^0.13.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"husky": "^4.3.7",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.0",
"lerna": "^4.0.0",
"less": "^4.0.0",
"less-loader": "^7.2.1",
"npm-run-all": "^4.1.5",
"postcss-loader": "^4.1.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"style-loader": "^2.0.0",
"supervisor": "^0.12.0",
"typescript": "^4.1.3",
"unfetch": "^4.2.0",
"url-loader": "^4.1.1",
"webpack-cli": "^4.3.1",
"webpack-dev-server": "^3.11.1"
},
"jest": {
"testMatch": [
"**/__tests__/**/*.(test|spec).ts?(x)"
],
"setupFiles": [
"./__tests__/setupTests.ts",
"jest-canvas-mock"
],
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
"moduleFileExtensions": [
"js",
"ts",
"tsx",
"json"
],
"collectCoverage": false,
"collectCoverageFrom": [
"src/client/components/**/*.{ts,tsx}"
],
"moduleNameMapper": {
"^.+\\.(css|less|sass|scss)$": "identity-obj-proxy"
}
},
"prettier": {
"endOfLine": "lf",
"singleQuote": true
}
}