axios-miniprogram/package.json

72 lines
2.0 KiB
JSON

{
"name": "axios-miniprogram",
"version": "1.0.1",
"description": "基于 Promise 的 HTTP 请求库,适用于各大小程序平台。",
"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": {
"pre-commit": "yarn lint && yarn prettier && yarn test && git add ."
}
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"babelConfig": "test/.babelrc"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/early-autumn/axios-miniprogram.git"
},
"keywords": [
"axios",
"miniprogram"
],
"author": "early-autumn",
"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"
}
}