plugin-ui-for-kzt 0.0.2 → 0.0.4

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.
package/README.md CHANGED
@@ -1,83 +1,119 @@
1
- # plugin-ui-kzt
1
+ # plugin-ui-for-kzt
2
2
 
3
3
  A custom UI plugin for Vue 3 + TypeScript projects, with Quasar integration support.
4
4
 
5
5
  ---
6
6
 
7
- ## Installation
7
+ ## 🚀 Installation
8
8
 
9
- ### Prerequisites
10
- - Node.js version **23.x** or higher
9
+ ### Prerequisites
10
+
11
+ - Node.js **v23.x** or higher
12
+ - Vue 3 project (with or without Quasar)
13
+
14
+ ### 📦 Install the Plugin
11
15
 
12
- ### Install the Plugin
13
16
  ```bash
14
17
  npm install plugin-ui-for-kzt
15
18
  ```
16
19
 
17
20
  ---
18
21
 
19
- ## Quasar Project Setup
22
+ ## ⚙️ Quasar Integration Setup
23
+
24
+ If you're using **Quasar**, follow these additional steps to properly integrate the plugin:
25
+
26
+ ### 1. Create a Boot File
27
+
28
+ Create a new file named `plugin-ui-for-kzt.ts` in your project's `boot/` directory.
20
29
 
21
- If you are using **Quasar**, follow these additional steps:
30
+ ```ts
31
+ // src/boot/plugin-ui-for-kzt.ts
32
+ import { boot } from 'quasar/wrappers'
33
+ import PluginUIForKZT from 'plugin-ui-for-kzt'
22
34
 
23
- 1. **Create a Boot File:**
24
- - Create a new file named `plugin-ui-for-kzt.ts` inside the `boot/` folder.
35
+ export default boot(({ app }) => {
36
+ app.use(PluginUIForKZT)
37
+ })
38
+ ```
39
+
40
+ ### 2. Register the Boot File in `quasar.config.js`
41
+
42
+ ```js
43
+ boot: [
44
+ 'plugin-ui-for-kzt',
45
+ // other boot files
46
+ ]
47
+ ```
25
48
 
26
- 2. **Register the Boot File:**
27
- - In `quasar.config.js`, add `'plugin-ui-for-kzt'` to the `boot` array:
28
- ```js
29
- boot: [
30
- 'plugin-ui-kzt',
31
- // other boot files
32
- ]
33
- ```
49
+ ### 3. (Optional) Import in `client-entry.js` if needed
34
50
 
35
- 3. **Import in `client-entry.js`:**
36
- - Import your boot file inside the `Promise.all` method:
37
- ```js
38
- import('boot/plugin-ui-for-kzt')
39
- ```
51
+ ```js
52
+ import('boot/plugin-ui-for-kzt')
53
+ ```
40
54
 
41
55
  ---
42
56
 
43
- ## Publishing the Plugin to npm
57
+ ## 🔢 Plugin Versioning Rules
44
58
 
45
- Follow these steps to update and publish the plugin:
59
+ The plugin version must follow the pattern: `X.Y.Z`, with a **maximum version value of 100**.
60
+ Examples of valid versions:
46
61
 
47
- 1. **Update the Version:**
48
- - Before publishing, **update the `version`** field in `package.json` (according to semantic versioning).
62
+ - `version: "0.0.25"`
63
+ - `version: "0.25.99"`
64
+ - `version: "46.25.46"`
49
65
 
50
- 2. **Push Changes to GitLab:**
51
- - Commit and push all your changes to your GitLab repository.
66
+ ---
52
67
 
53
- 3. **Login to npm:**
54
- ```bash
55
- npm login
56
- ```
57
- - Use the **npm credentials** stored in GitLab.
68
+ ## 🚀 Publishing the Plugin to npm
58
69
 
59
- 4. **Publish the Plugin:**
60
- ```bash
61
- npm publish --access public
62
- ```
70
+ Follow these steps to update and publish a new version of the plugin:
63
71
 
64
- 5. **Clear Cache (Recommended):**
65
- ```bash
66
- npm cache clean --force
67
- ```
72
+ ### 1. Update the Version
68
73
 
69
- 6. **Update Plugin in Your Project:**
70
- ```bash
71
- npm install plugin-ui-for-kzt@latest --force
72
- ```
74
+ Update the `version` field in your `package.json` file according to [Semantic Versioning](https://semver.org/).
73
75
 
74
- 7. **Clean and Run Your Quasar Project:**
75
- ```bash
76
- quasar clean
77
- quasar dev
78
- ```
76
+ ### 2. Commit and Push to GitLab
79
77
 
80
- ---
78
+ ```bash
79
+ git add .
80
+ git commit -m "chore: bump version to x.x.x"
81
+ git push
82
+ ```
83
+
84
+ ### 3. Log in to npm
85
+
86
+ ```bash
87
+ npm login
88
+ ```
81
89
 
82
- Done! Now your updated plugin will be installed and ready to use!
90
+ > 💡 Use the **npm credentials** stored in your GitLab vault or settings.
91
+
92
+ ### 4. Publish the Package
93
+
94
+ ```bash
95
+ npm publish --access public
96
+ ```
97
+
98
+ ### 5. (Optional) Clear npm Cache
99
+
100
+ ```bash
101
+ npm cache clean --force
102
+ ```
103
+
104
+ ### 6. Update the Plugin in Your Project
105
+
106
+ ```bash
107
+ npm install plugin-ui-for-kzt@latest --force
108
+ ```
109
+
110
+ ### 7. Restart Your Quasar Project
111
+
112
+ ```bash
113
+ quasar clean
114
+ quasar dev
115
+ ```
116
+
117
+ ---
83
118
 
119
+ ✅ **Done!** Your plugin is now published and integrated successfully into your Quasar project.