Skip to content

Commit

Permalink
chore(vue): init coaction-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Dec 25, 2024
1 parent 5524f1f commit 60226b2
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 100 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
"@manypkg/get-packages": "^1.1.3",
"@preconstruct/cli": "^2.8.1",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/vue": "^6.6.1",
"@testing-library/vue": "^8.1.0",
"@types/benchmark": "^2.1.5",
"@types/jest": "^29.5.10",
"@types/node": "^12.11.1",
"@vue/compiler-sfc": "^3.0.11",
"@vue/compiler-sfc": "^3.5.13",
"@vue/vue3-jest": "^29.2.6",
"babel-jest": "^29.7.0",
"babel-preset-solid": "^1.8.4",
Expand All @@ -96,7 +96,7 @@
"tslint": "^6.1.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"vue": "^3.0.11",
"vue": "^3.5.13",
"webpack-dev-middleware": "^3.6.0",
"zustand-mutative": "^1.2.0"
},
Expand Down
30 changes: 30 additions & 0 deletions packages/coaction-vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# coaction

![Node CI](https://github.com/unadlib/coaction/workflows/Node%20CI/badge.svg)
[![npm](https://img.shields.io/npm/v/coaction.svg)](https://www.npmjs.com/package/coaction)
![license](https://img.shields.io/npm/l/coaction)

An efficient and flexible state management library for building high-performance, multithreading web applications.

## Installation

You can install it via npm, yarn or pnpm.

```sh
npm install coaction
```

## Usage

```jsx
import { create } from 'coaction';

const useStore = create((set) => ({
count: 0,
increment: () => set((state) => state.count++)
}));
```

## Documentation

You can find the documentation [here](https://github.com/unadlib/coaction).
1 change: 1 addition & 0 deletions packages/coaction-vue/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src';
64 changes: 64 additions & 0 deletions packages/coaction-vue/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "coaction-vue",
"version": "0.1.5",
"description": "Coaction tools for Vue",
"keywords": [
"coaction",
"vue",
"multithreading",
"mutative",
"data-transport"
],
"authors": [
"Michael Lin <[email protected]> (https://github.com/unadlib)"
],
"homepage": "https://github.com/unadlib/coaction/tree/main/packages/coaction-vue#readme",
"license": "MIT",
"main": "dist/coaction-vue.cjs.js",
"module": "dist/coaction-vue.esm.js",
"umd:main": "dist/coaction-vue.umd.min.js",
"exports": {
".": {
"types": {
"import": "./dist/coaction-vue.cjs.mjs",
"default": "./dist/coaction-vue.cjs.js"
},
"module": "./dist/coaction-vue.esm.js",
"import": "./dist/coaction-vue.cjs.mjs",
"default": "./dist/coaction-vue.cjs.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/unadlib/coaction.git"
},
"scripts": {},
"bugs": {
"url": "https://github.com/unadlib/coaction/issues"
},
"preconstruct": {
"umdName": "CoactionVue",
"entrypoints": [
"./index.ts"
]
},
"peerDependencies": {
"coaction": "^0.1.5",
"vue": "^3.0.0"
},
"peerDependenciesMeta": {
"coaction": {
"optional": true
}
},
"devDependencies": {
"@testing-library/vue": "^8.1.0",
"coaction": "^0.1.5",
"vue": "^3.5.13"
}
}
Empty file.
3 changes: 3 additions & 0 deletions packages/coaction-vue/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test('test', () => {
// expect(1).toBe(1);
});
Loading

0 comments on commit 60226b2

Please sign in to comment.