forked from alovajs/alova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
178 lines (178 loc) · 6.25 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "alova",
"version": "2.17.0",
"description": "Request strategy library for MVVM libraries such as Vue.js, React.js and Svelte.js",
"main": "dist/alova.esm.js",
"module": "dist/alova.esm.js",
"types": "typings/index.d.ts",
"type": "module",
"sideEffects": false,
"homepage": "https://alova.js.org",
"keywords": [
"react",
"hooks",
"xmlhttprequest",
"vuejs",
"typescript",
"vue",
"reactjs",
"svelte",
"axios",
"request",
"fetch-api",
"vue3",
"react-hooks",
"superagent",
"alova"
],
"jsdelivr": "dist/alova.umd.min.js",
"unpkg": "dist/alova.umd.min.js",
"scripts": {
"clean": "rimraf ./dist",
"test:browser": "jest",
"test:node": "jest --config=jest.config.node.ts",
"test": "npm run test:browser && npm run test:node",
"test:coverage": "jest --coverage",
"release": "semantic-release",
"lint": "eslint --ext .ts,.js src",
"lint:fix": "npm run lint -- --fix",
"build:esm": "rollup -c config/rollup.config.esm.cjs",
"build:cjs": "rollup -c config/rollup.config.cjs",
"build:umd": "cross-env rollup -c config/rollup.config.umd.cjs",
"build:umd.min": "cross-env NODE_ENV=production rollup -c config/rollup.config.umd.cjs",
"build:vuehook:esm": "cross-env MODULE=vue rollup -c config/rollup.config.esm.cjs",
"build:vuehook:umd": "cross-env MODULE=vue rollup -c config/rollup.config.umd.cjs",
"build:vuehook:umd.min": "cross-env NODE_ENV=production MODULE=vue rollup -c config/rollup.config.umd.cjs",
"build:vuehook": "npm run build:vuehook:esm && npm run build:vuehook:umd && npm run build:vuehook:umd.min",
"build:reacthook:esm": "cross-env MODULE=react rollup -c config/rollup.config.esm.cjs",
"build:reacthook:umd": "cross-env MODULE=react rollup -c config/rollup.config.umd.cjs",
"build:reacthook:umd.min": "cross-env NODE_ENV=production MODULE=react rollup -c config/rollup.config.umd.cjs",
"build:reacthook": "npm run build:reacthook:esm && npm run build:reacthook:umd && npm run build:reacthook:umd.min",
"build:sveltehook:esm": "cross-env MODULE=svelte rollup -c config/rollup.config.esm.cjs",
"build:globalfetch:esm": "cross-env MODULE=globalFetch rollup -c config/rollup.config.esm.cjs",
"build:globalfetch:cjs": "cross-env MODULE=globalFetch rollup -c config/rollup.config.cjs",
"build:globalfetch:umd": "cross-env MODULE=globalFetch rollup -c config/rollup.config.umd.cjs",
"build:globalfetch:umd.min": "cross-env NODE_ENV=production MODULE=globalFetch rollup -c config/rollup.config.umd.cjs",
"build:globalfetch": "npm run build:globalfetch:esm && npm run build:globalfetch:cjs && npm run build:globalfetch:umd && npm run build:globalfetch:umd.min",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd.min && npm run build:vuehook && npm run build:reacthook && npm run build:sveltehook:esm && npm run build:globalfetch",
"coveralls": "npm run test:coverage && coveralls < coverage/lcov.info",
"prepare": "husky install",
"changelog": "conventional-changelog -p angular -u -i CHANGELOG.md -s -r 0",
"commit": "git-cz && git push",
"format": "prettier . --write"
},
"author": "JOU-amjs",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/alovajs/alova.git"
},
"bugs": {
"url": "https://github.com/alovajs/alova/issues"
},
"files": [
"dist",
"typings/*.d.ts"
],
"engines": {
"node": ">= 0.12.0"
},
"exports": {
".": {
"types": "./typings/index.d.ts",
"require": "./dist/alova.common.cjs",
"default": "./dist/alova.esm.js"
},
"./vue": {
"types": "./typings/vuehook.d.ts",
"default": "./dist/hooks/vuehook.esm.js"
},
"./react": {
"types": "./typings/reacthook.d.ts",
"default": "./dist/hooks/reacthook.esm.js"
},
"./svelte": {
"types": "./typings/sveltehook.d.ts",
"default": "./dist/hooks/sveltehook.esm.js"
},
"./GlobalFetch": {
"types": "./typings/globalfetch.d.ts",
"require": "./dist/adapter/globalfetch.common.cjs",
"default": "./dist/adapter/globalfetch.esm.js"
}
},
"typesVersions": {
"*": {
"vue": [
"typings/vuehook.d.ts"
],
"react": [
"typings/reacthook.d.ts"
],
"svelte": [
"typings/sveltehook.d.ts"
],
"GlobalFetch": [
"typings/globalfetch.d.ts"
]
}
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/svelte": "^3.1.3",
"@testing-library/vue": "^6.6.0",
"@types/jest": "^29.2.4",
"@types/node-fetch": "^2.6.1",
"@types/react": "^17.0.60",
"@types/react-dom": "^17.0.20",
"@types/testing-library__jest-dom": "^5.14.5",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"babel-jest": "^29.7.0",
"commitizen": "^4.3.0",
"conventional-changelog-cli": "^2.2.2",
"coveralls": "^3.1.1",
"cross-env": "5.2.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"msw": "^0.49.3",
"node-fetch": "^2.6.7",
"prettier": "^2.7.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"rimraf": "2.6.2",
"rollup": "^2.74.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"semantic-release": "^21.0.1",
"svelte": "^3.49.0",
"svelte-jester": "^2.3.2",
"ts-jest": "^29.0.3",
"ts-jest-mock-import-meta": "^1.0.0",
"ts-node": "^10.8.0",
"tslib": "^2.4.1",
"typescript": "^4.7.2",
"vue": "^3.3.4",
"web-streams-polyfill": "^3.2.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}