cleek 1.1.8 → 1.2.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Ulisses Ferreira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,65 @@
1
- # Vue 3 + Typescript + Vite
2
-
3
- This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- ## Recommended IDE Setup
6
-
7
- - [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
-
9
- ## Type Support For `.vue` Imports in TS
10
-
11
- Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
1
+ # 🌙 Cleek
2
+
3
+ A lightweight Vue 3 component library.
4
+
5
+ When you are starting a new prototype you want to be able to develop features fast. We created this component library as a way for us to build products quickly without having to deal with complicated packages and a huge bundle sizes.
6
+
7
+ ## Usage
8
+
9
+ First install the library using your prefered package manager
10
+
11
+ ```bash
12
+ yarn add cleek
13
+ ```
14
+
15
+ then you can import the available components like so
16
+
17
+ ```vue
18
+ import { Button } from cleek
19
+ ```
20
+
21
+ ## Available commands
22
+
23
+ Here is a list of all available npm commands.
24
+
25
+ **Starting the dev environment**
26
+ We use Vue Press to hold our component documentation and examples
27
+
28
+ ```bash
29
+ yarn dev
30
+ ```
31
+
32
+ **Building the documentation**
33
+
34
+ ```bash
35
+ yarn build
36
+ ```
37
+
38
+ **Serving the documentation**
39
+
40
+ ```bash
41
+ yarn serve
42
+ ```
43
+
44
+ **Building the library bundles**
45
+
46
+ ```bash
47
+ yarn build:library
48
+ ```
49
+
50
+ **Analyzing bundle sizes with [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer)**
51
+
52
+ ```bash
53
+ yarn analyze
54
+ ```
55
+
56
+ **Lint all files**
57
+
58
+ ```bash
59
+ yarn lint
60
+ ```
61
+
62
+ **Format all files**
63
+ ```bash
64
+ yarn format
65
+ ```