-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 3.02 KB
/
Copy pathpackage.json
File metadata and controls
114 lines (114 loc) · 3.02 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
{
"name": "@kancolle/data",
"version": "0.230501.0",
"description": "KanColle data and data functions",
"keywords": [
"kancolle"
],
"license": "MIT",
"author": "gakada (https://github.com/gakada)",
"contributors": [],
"homepage": "https://github.com/kcwiki/kancolle-data#readme",
"bugs": "https://github.com/kcwiki/kancolle-data/issues",
"repository": "kcwiki/kancolle-data",
"main": "index.js",
"files": [
"api",
"asset",
"build",
"map",
"tl",
"v2",
"wiki",
"index.js"
],
"bin": {},
"scripts": {
"fetch-api": "kancolle-browser --save-api-and-exit /tmp/api_start2",
"pull-api": "node build/api",
"pull-map": "sh build/edge.sh ; node build/spot",
"pull-db": "node build/db.js",
"pull-wiki": "node build/wiki/pull.js",
"push-wiki": "node build/wiki/equipment.js",
"type-api": "quicktype --alphabetize-properties --no-maps --no-enums --just-types --lang ts --top-level api api/api_start2.json -o api/api_start2.ts",
"type-equipment": "node -e 'console.log(JSON.stringify(Object.values(require(\"./wiki/equipment.json\"))))' > /tmp/equipment.json; quicktype --alphabetize-properties --no-maps --no-enums --just-types --lang ts --top-level equipment /tmp/equipment.json -o wiki/equipment.ts",
"format": "prettier --ignore-path .gitignore --log-level warn --write '**/*.{js,json,md,ts,yaml,yml}'",
"lint": "eslint --ignore-path .gitignore --fix .",
"test": "yarn type-api && node build/doc && yarn format && yarn lint && node test",
"update": "yarn pull-api && yarn pull-map && yarn pull-db && yarn test"
},
"dependencies": {
"bluebird": "^3.7.2",
"lodash": "^4.17.21"
},
"devDependencies": {
"async-retry": "^1.3.3",
"dotenv": "^16.4.7",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"filenamify": "^6.0.0",
"fs-extra": "^11.2.0",
"gm": "^1.25.0",
"kuroshiro": "^1.2.0",
"kuroshiro-analyzer-kuromoji": "^1.1.0",
"lua-json": "^1.0.1",
"node-fetch": "^2.7.0",
"nodemw": "^0.22.0",
"pg": "^8.13.1",
"prettier": "^3.4.2",
"quicktype": "^23.0.170",
"sort-keys": "^4.2.0",
"stream-bson": "^1.1.1"
},
"eslintConfig": {
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2021
},
"plugins": [
"prettier"
],
"rules": {
"complexity": [
"error",
30
],
"max-depth": [
"error",
5
],
"max-lines-per-function": [
"error",
200
],
"max-nested-callbacks": [
"error",
3
],
"max-params": [
"error",
5
],
"max-statements": [
"error",
50
],
"no-async-promise-executor": 0
}
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 150,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
}