Skip to content

Commit 41a6d44

Browse files
author
Carlos Rodrigues
committed
chore: version and readme tweaks
1 parent e426c11 commit 41a6d44

File tree

2 files changed

+28
-11
lines changed

2 files changed

+28
-11
lines changed

package.json

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
22
"name": "vue-composable",
3-
"version": "1.0.0",
4-
"description": "Vue composition api helpers",
3+
"version": "0.1.0",
4+
"description": "Vue composition-api composable components",
55
"main": "index.js",
6-
"author": "pikax",
6+
"author": {
7+
"name": "pikax",
8+
"email": "[email protected]"
9+
},
710
"license": "MIT",
8-
"module": "dist/vue-composable.es5.js",
9-
"typings": "dist/types/vue-composable.d.ts",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/pikax/vue-composable.git"
14+
},
15+
"module": "dist/vue-composable.es.js",
16+
"typings": "dist/index.d.ts",
1017
"files": [
1118
"dist"
1219
],
@@ -19,13 +26,18 @@
1926
"test:watch": "jest --coverage --watch",
2027
"test:prod": "npm run lint && npm run test -- --no-cache"
2128
},
22-
"dependencies": {
29+
"bugs": {
30+
"url": "https://github.com/pikax/vue-composable/issues"
31+
},
32+
"homepage": "https://github.com/pikax/vue-composable/blob/master/readme.md",
33+
"peerDependencies": {
2334
"@vue/composition-api": "^0.3.2",
2435
"vue": "^2.6.10"
2536
},
2637
"devDependencies": {
2738
"@types/jest": "^24.0.19",
2839
"@types/node": "^12.11.5",
40+
"@vue/composition-api": "^0.3.2",
2941
"coveralls": "^3.0.7",
3042
"jest": "^24.9.0",
3143
"jest-junit": "^9.0.0",
@@ -40,6 +52,7 @@
4052
"rollup-plugin-terser": "^5.1.2",
4153
"rollup-plugin-typescript2": "^0.24.3",
4254
"ts-jest": "^24.1.0",
43-
"typescript": "^3.6.4"
55+
"typescript": "^3.6.4",
56+
"vue": "^2.6.10"
4457
}
4558
}

readme.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,24 @@
55

66
## Introduction
77

8-
`vue-composable` is out-of-box ready to use [composition-api](https://github.com/vuejs/composition-api) generic components, eg: [usePromise](src/promise.ts)
8+
`vue-composable` is out-of-box ready to use [composition-api](https://github.com/vuejs/composition-api) generic components, eg: [useFetch](examples/fetch.html)
99

1010

11-
| composable | description | arguments | return |
11+
## NOTE
12+
Currently only works with [composition-api](https://github.com/vuejs/composition-api), when [Vue3](https://github.com/vuejs/vue-next) gets release I will update to use the new reactive system (using [@vue/reactivity](https://github.com/vuejs/vue-next/tree/master/packages/reactivity))
13+
14+
15+
| composable | description | example | extra |
1216
|---|---|---|---|
13-
| [useArrayPagination](src/arrayPagination.ts) | provides pagination for an array | | |
17+
| [useArrayPagination](src/arrayPagination.ts) | provides pagination for an array | [arrayPagination.html](examples/arrayPagination.html) | |
1418
| [useDebounce](src/debounce.ts) | debounces function | | |
1519
| [useEvent](src/event.ts) | handles the lifecycle of addEventListener/removeEventListener for a component. | | |
1620
| [useOnMouseMove](src/onMouseMove.ts) | gets data from element `movemove` | | |
1721
| [useOnResize](src/onResize.ts) | gets data from element `resize` | | |
1822
| [useOnScroll](src/onScroll.ts) | gets data from element `scroll` | | |
1923
| [usePagination](src/pagination.ts) | provides pagination controls. *NOTE: base type* | | |
2024
| [usePromise](src/promise.ts) | provides information about the state of the promise | | |
21-
| [useFetch](src/fetch.ts) | handles the fetch request | | |
25+
| [useFetch](src/fetch.ts) | handles the fetch request | [fetch.html](examples/fetch.html) | |
2226

2327

2428
## Types

0 commit comments

Comments
 (0)