Skip to content

Commit 60226b2

Browse files
committed
chore(vue): init coaction-vue
1 parent 5524f1f commit 60226b2

File tree

7 files changed

+239
-100
lines changed

7 files changed

+239
-100
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
"@manypkg/get-packages": "^1.1.3",
7070
"@preconstruct/cli": "^2.8.1",
7171
"@testing-library/jest-dom": "^6.1.4",
72-
"@testing-library/vue": "^6.6.1",
72+
"@testing-library/vue": "^8.1.0",
7373
"@types/benchmark": "^2.1.5",
7474
"@types/jest": "^29.5.10",
7575
"@types/node": "^12.11.1",
76-
"@vue/compiler-sfc": "^3.0.11",
76+
"@vue/compiler-sfc": "^3.5.13",
7777
"@vue/vue3-jest": "^29.2.6",
7878
"babel-jest": "^29.7.0",
7979
"babel-preset-solid": "^1.8.4",
@@ -96,7 +96,7 @@
9696
"tslint": "^6.1.3",
9797
"tsx": "^4.19.2",
9898
"typescript": "^5.6.3",
99-
"vue": "^3.0.11",
99+
"vue": "^3.5.13",
100100
"webpack-dev-middleware": "^3.6.0",
101101
"zustand-mutative": "^1.2.0"
102102
},

packages/coaction-vue/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# coaction
2+
3+
![Node CI](https://github.com/unadlib/coaction/workflows/Node%20CI/badge.svg)
4+
[![npm](https://img.shields.io/npm/v/coaction.svg)](https://www.npmjs.com/package/coaction)
5+
![license](https://img.shields.io/npm/l/coaction)
6+
7+
An efficient and flexible state management library for building high-performance, multithreading web applications.
8+
9+
## Installation
10+
11+
You can install it via npm, yarn or pnpm.
12+
13+
```sh
14+
npm install coaction
15+
```
16+
17+
## Usage
18+
19+
```jsx
20+
import { create } from 'coaction';
21+
22+
const useStore = create((set) => ({
23+
count: 0,
24+
increment: () => set((state) => state.count++)
25+
}));
26+
```
27+
28+
## Documentation
29+
30+
You can find the documentation [here](https://github.com/unadlib/coaction).

packages/coaction-vue/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src';

packages/coaction-vue/package.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "coaction-vue",
3+
"version": "0.1.5",
4+
"description": "Coaction tools for Vue",
5+
"keywords": [
6+
"coaction",
7+
"vue",
8+
"multithreading",
9+
"mutative",
10+
"data-transport"
11+
],
12+
"authors": [
13+
"Michael Lin <[email protected]> (https://github.com/unadlib)"
14+
],
15+
"homepage": "https://github.com/unadlib/coaction/tree/main/packages/coaction-vue#readme",
16+
"license": "MIT",
17+
"main": "dist/coaction-vue.cjs.js",
18+
"module": "dist/coaction-vue.esm.js",
19+
"umd:main": "dist/coaction-vue.umd.min.js",
20+
"exports": {
21+
".": {
22+
"types": {
23+
"import": "./dist/coaction-vue.cjs.mjs",
24+
"default": "./dist/coaction-vue.cjs.js"
25+
},
26+
"module": "./dist/coaction-vue.esm.js",
27+
"import": "./dist/coaction-vue.cjs.mjs",
28+
"default": "./dist/coaction-vue.cjs.js"
29+
},
30+
"./package.json": "./package.json"
31+
},
32+
"sideEffects": false,
33+
"files": [
34+
"dist"
35+
],
36+
"repository": {
37+
"type": "git",
38+
"url": "git+ssh://[email protected]/unadlib/coaction.git"
39+
},
40+
"scripts": {},
41+
"bugs": {
42+
"url": "https://github.com/unadlib/coaction/issues"
43+
},
44+
"preconstruct": {
45+
"umdName": "CoactionVue",
46+
"entrypoints": [
47+
"./index.ts"
48+
]
49+
},
50+
"peerDependencies": {
51+
"coaction": "^0.1.5",
52+
"vue": "^3.0.0"
53+
},
54+
"peerDependenciesMeta": {
55+
"coaction": {
56+
"optional": true
57+
}
58+
},
59+
"devDependencies": {
60+
"@testing-library/vue": "^8.1.0",
61+
"coaction": "^0.1.5",
62+
"vue": "^3.5.13"
63+
}
64+
}

packages/coaction-vue/src/index.ts

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test('test', () => {
2+
// expect(1).toBe(1);
3+
});

0 commit comments

Comments
 (0)