This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
90 lines (90 loc) · 2.14 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
{
"name": "@opd/crawler",
"version": "1.7.0",
"description": "web crawler based on Puppeteer",
"main": "lib/index.js",
"scripts": {
"test": "jest",
"prebuild": "npm test",
"build:lib": "cross-env BABEL_ENV=commonjs babel src -d lib --extensions .ts,.tsx --delete-dir-on-start",
"build:type": "tsc",
"build": "npm run build:lib & npm run build:type",
"lint": "eslint . --ext=.ts && prettier --check *.{json,md}",
"lint:fix": "eslint . --ext=.ts --fix && prettier --write *.{json,md}",
"preversion": "npm run build",
"postversion": "npm publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/open-data-plan/crawler.git"
},
"keywords": [
"crawler",
"puppeteer",
"headless-chrome"
],
"author": "kagawagao <[email protected]> (https://kingsongao.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/open-data-plan/crawler/issues"
},
"homepage": "https://github.com/open-data-plan/crawler#readme",
"devDependencies": {
"@opd/babel-preset-lib": "^1.12.1",
"@opd/eslint-config-pangu": "^1.13.2",
"@opd/jest-preset-pangu": "^1.12.1",
"@opd/prettier-config-pangu": "^1.12.1",
"cross-env": "^7.0.2",
"husky": "^8.0.1",
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"mock-http-server": "^1.4.2",
"regenerator-runtime": "^0.14.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@babel/runtime": "^7.12.1",
"core-js": "^3.6.5",
"puppeteer": "^21.5.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint"
],
"*.{json,md}": [
"prettier --write"
]
},
"engines": {
"node": ">=18"
},
"files": [
"lib",
"index.d.ts"
],
"prettier": "@opd/prettier-config-pangu",
"eslintConfig": {
"extends": "@opd/eslint-config-pangu",
"ignorePatterns": "**/lib/*.js"
},
"jest": {
"preset": "@opd/jest-preset-pangu",
"coverageReporters": [
"json",
"text",
"lcov",
"clover",
"cobertura"
]
},
"babel": {
"presets": [
"@opd/babel-preset-lib"
]
}
}