2020-04-14 23:45:21 +08:00
|
|
|
{
|
|
|
|
"name": "axios-miniprogram",
|
2020-04-21 14:46:37 +08:00
|
|
|
"version": "1.1.1",
|
2020-04-17 19:45:55 +08:00
|
|
|
"description": "基于 Promise 的 HTTP 请求库,适用于各大小程序平台。",
|
2020-04-14 23:45:21 +08:00
|
|
|
"main": "package/index.js",
|
|
|
|
"miniprogram": "package",
|
|
|
|
"types": "types/index.d.ts",
|
|
|
|
"files": [
|
|
|
|
"package",
|
|
|
|
"types"
|
|
|
|
],
|
|
|
|
"scripts": {
|
|
|
|
"build": "rollup -c",
|
|
|
|
"lint": "eslint --ext ts --fix src test",
|
|
|
|
"prettier": "prettier --write --config .prettierrc \"{src,test}/**/*.{js,ts}\"",
|
|
|
|
"test": "jest",
|
|
|
|
"test:watch": "yarn test -- --watch",
|
|
|
|
"test:cov": "yarn test -- --coverage",
|
|
|
|
"coverage": "yarn test:cov --coverageReporters=text-lcov | coveralls"
|
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
2020-04-21 13:23:19 +08:00
|
|
|
"pre-commit": "yarn lint && yarn prettier && yarn test:cov && git add ."
|
2020-04-14 23:45:21 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"preset": "ts-jest",
|
|
|
|
"globals": {
|
|
|
|
"ts-jest": {
|
|
|
|
"babelConfig": "test/.babelrc"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/early-autumn/axios-miniprogram.git"
|
|
|
|
},
|
2020-04-17 12:06:41 +08:00
|
|
|
"keywords": [
|
|
|
|
"axios",
|
|
|
|
"miniprogram"
|
|
|
|
],
|
|
|
|
"author": "early-autumn",
|
2020-04-14 23:45:21 +08:00
|
|
|
"license": "MIT",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/early-autumn/axios-miniprogram/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/early-autumn/axios-miniprogram#readme",
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/core": "^7.8.7",
|
|
|
|
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
|
|
|
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.8.3",
|
|
|
|
"@babel/preset-env": "^7.8.7",
|
|
|
|
"@babel/preset-typescript": "^7.8.3",
|
|
|
|
"@babel/runtime": "^7.8.7",
|
|
|
|
"@types/jest": "^25.1.3",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^2.22.0",
|
|
|
|
"@typescript-eslint/parser": "^2.22.0",
|
|
|
|
"coveralls": "^3.0.9",
|
|
|
|
"eslint": "^6.8.0",
|
|
|
|
"eslint-config-prettier": "^6.10.0",
|
|
|
|
"eslint-plugin-prettier": "^3.1.2",
|
|
|
|
"husky": "^4.2.3",
|
|
|
|
"jest": "^25.1.0",
|
|
|
|
"prettier": "^1.19.1",
|
|
|
|
"rollup-plugin-babel": "^4.4.0",
|
|
|
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
|
|
"rollup-plugin-typescript2": "^0.26.0",
|
|
|
|
"ts-jest": "^25.2.1",
|
|
|
|
"typescript": "^3.8.3"
|
|
|
|
}
|
|
|
|
}
|