-
-
Notifications
You must be signed in to change notification settings - Fork 91
/
package.json
129 lines (129 loc) · 4.08 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "vue-request",
"version": "2.0.4",
"description": "This is a library that can easily help you manage request states, supporting common features such as SWR, polling, error retry, caching, and pagination, etc.",
"keywords": [
"vue",
"vue3",
"vue2",
"swr",
"request",
"http",
"fetch",
"composition-api",
"vue-demi",
"axios",
"vue-request",
"vue request"
],
"homepage": "https://www.attojs.org",
"bugs": "https://github.com/attojs/vue-request/issues",
"repository": {
"type": "git",
"url": "https://github.com/attojs/vue-request"
},
"license": "MIT",
"main": "dist/index.cjs.js",
"unpkg": "dist/vue-request.min.js",
"module": "dist/index.es.js",
"types": "dist/types/index.d.ts",
"files": [
"dist/**"
],
"scripts": {
"build": "yarn switch:3 && yarn clean && yarn build:code && yarn build:types",
"build:code": "rollup --config ./build/rollup.config.js",
"build:types": "rollup --config ./build/rollup.config.types.js",
"changelog": "standard-version && standard-version -i CHANGELOG.zh-CN.md -o CHANGELOG.zh-CN.md",
"clean": "rimraf dist/*",
"dev": "yarn switch:3 && vite --config ./build/vite.config.ts ./examples/vue3",
"dev:2": "yarn switch:2 && vite --config ./build/vite-vue2.config.ts ./examples/vue2",
"format": "prettier -w '**/*.ts?(x)'",
"lint": "eslint -c ./.eslintrc.js './{src,scripts,build}/**/*.{js,ts,tsx}'",
"patch-package": "patch-package",
"publishing": "np --tag=latest --branch=master ",
"release": "yarn build && yarn publishing",
"switch:2": "vue-demi-switch 2.7 vue2",
"switch:3": "vue-demi-switch 3",
"test": "yarn test:3 && yarn test:2",
"test:2": "yarn switch:2 && jest --coverage",
"test:3": "yarn switch:3 && jest --coverage"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"package.json": "sort-package-json"
},
"dependencies": {
"vue-demi": "latest"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/runtime-corejs3": "^7.12.5",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@types/jest": "^27.4.0",
"@types/mockjs": "^1.0.3",
"@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^4.8.2",
"@typescript-eslint/parser": "^4.8.2",
"@vitejs/plugin-vue": "^1.2.1",
"@vitejs/plugin-vue-jsx": "^1.1.3",
"@vue/babel-plugin-jsx": "^1.0.0-rc.3",
"@vue/compiler-sfc": "^3.0.6",
"@vue/composition-api": "^1.4.6",
"axios": "^0.21.1",
"babel-jest": "^27.5.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-vue": "^7.0.0-0",
"fetch-mock": "^9.10.7",
"husky": "^7.0.4",
"jest": "^27.5.0",
"jest-environment-jsdom-global": "^2.0.4",
"lint-staged": "^10.5.2",
"mockjs": "^1.1.0",
"node-fetch": "2",
"np": "^8.0.0",
"patch-package": "^6.4.7",
"prettier": "^2.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.33.1",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"simple-git": "^3.16.0",
"sort-package-json": "^1.50.0",
"standard-version": "^9.1.1",
"ts-jest": "^27.1.3",
"typescript": "^4.0.5",
"vite": "^2.1.5",
"vite-plugin-vue2": "^1.9.2",
"vue": "^3.5.13",
"vue-template-compiler": "^2.6.14",
"vue2": "npm:vue@2"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^2.0.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"engines": {
"node": ">=14"
}
}