UNPKG

@kancolle/data

Version:
113 lines (112 loc) 2.97 kB
{ "name": "@kancolle/data", "version": "0.230101.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-db": "node build/db.js", "pull-external": "sh build/external.sh", "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 --loglevel 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" }, "dependencies": { "bluebird": "^3.7.2", "lodash": "^4.17.21" }, "devDependencies": { "dotenv": "^16.0.2", "eslint": "^8.23.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.2.1", "filenamify": "^5.1.1", "fs-extra": "^10.1.0", "gm": "^1.23.1", "kuroshiro": "^1.2.0", "kuroshiro-analyzer-kuromoji": "^1.1.0", "lua-json": "^1.0.1", "node-fetch": "^2.6.7", "nodemw": "^0.18.0", "pg": "^8.8.0", "prettier": "^2.7.1", "quicktype": "^15.0.261", "sort-keys": "^4.2.0", "stream-bson": "^1.1.0" }, "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" } }