ch3chi-commons-vue 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +49 -0
  2. package/dist/index.js +2 -0
  3. package/package.json +22 -0
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Commons Vue Library
2
+
3
+ 這是一個 Vue 公用元件/函式庫範例。
4
+
5
+ ## 安裝
6
+
7
+ ```bash
8
+ npm install commons-vue
9
+ ```
10
+
11
+ ## 使用方式
12
+
13
+ ### 在 Vue 專案中引入
14
+
15
+ ```js
16
+ // main.js 或 main.ts
17
+ import { SomeComponent, someUtil } from 'commons-vue';
18
+
19
+ // 註冊元件
20
+ app.component('SomeComponent', SomeComponent);
21
+
22
+ // 使用工具函式
23
+ const result = someUtil(...args);
24
+ ```
25
+
26
+ ### 元件範例
27
+
28
+ ```vue
29
+ <template>
30
+ <SomeComponent :propA="value" />
31
+ </template>
32
+
33
+ <script setup>
34
+ import { SomeComponent } from 'commons-vue';
35
+ </script>
36
+ ```
37
+
38
+ ### 工具函式範例
39
+
40
+ ```js
41
+ import { someUtil } from 'commons-vue';
42
+
43
+ const output = someUtil(input);
44
+ ```
45
+
46
+ ## 文件
47
+
48
+ 請參考 src/ 目錄下的程式碼與註解,或補充詳細 API 文件。
49
+
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ console.log('Happy developing ✨');
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "ch3chi-commons-vue",
3
+ "version": "0.1.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "package.json",
10
+ "README.md"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc"
14
+ },
15
+ "devDependencies": {
16
+ "@types/node": "^24.10.0",
17
+ "typescript": "^5.9.3"
18
+ },
19
+ "prepublishOnly": [
20
+ "npm run build"
21
+ ]
22
+ }