Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit f87410e

Browse files
committed
docs: improve the installation guide
1 parent 3d05447 commit f87410e

File tree

6 files changed

+62
-37
lines changed

6 files changed

+62
-37
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@vueuse/shared": "^13.1.0",
1717
"colortranslator": "^4.1.0",
1818
"defu": "^6.1.4",
19+
"embla-carousel": "^8.6.0",
1920
"embla-carousel-auto-height": "^8.6.0",
2021
"embla-carousel-auto-scroll": "^8.6.0",
2122
"embla-carousel-autoplay": "^8.6.0",
@@ -27,7 +28,9 @@
2728
"ohash": "^2.0.11",
2829
"reka-ui": "^2.2.0",
2930
"tailwind-variants": "^1.0.0",
30-
"vue": "^3.5.13"
31+
"tailwindcss": "^4.1.4",
32+
"vue": "^3.5.13",
33+
"vue-component-type-helpers": "^2.2.10"
3134
},
3235
"devDependencies": {
3336
"@antfu/eslint-config": "^4.12.0",
@@ -43,23 +46,20 @@
4346
"@vitejs/plugin-vue": "^5.2.3",
4447
"@vitest/ui": "^3.1.2",
4548
"@vue/tsconfig": "^0.7.0",
46-
"embla-carousel": "^8.6.0",
4749
"eslint": "^9.25.1",
4850
"jsdom": "^26.1.0",
4951
"magicast": "^0.3.5",
5052
"md5": "^2.3.0",
5153
"scule": "^1.3.0",
5254
"simple-git": "^3.27.0",
53-
"tailwindcss": "^4.1.4",
5455
"taze": "^18.7.1",
5556
"typescript": "^5.8.3",
5657
"ufo": "^1.6.1",
5758
"unplugin-vue-components": "^28.5.0",
5859
"vite": "5.4.11",
5960
"vitepress": "1.5.0",
6061
"vitepress-plugin-group-icons": "^1.5.2",
61-
"vitest": "^3.1.2",
62-
"vue-component-type-helpers": "^2.2.10"
62+
"vitest": "^3.1.2"
6363
},
6464
"pnpm": {
6565
"patchedDependencies": {

src/installation.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,40 @@
11
# Installation
22

3-
Welcome to Vue UI, a component library for Vue.js! 🙌
3+
To get started, install the required dependencies:
44

5-
Before installing this component library, you need to know how it works.
5+
::: code-group
66

7-
This component library is built with Vue and on top of Reka UI. It also uses Tailwind CSS for styling.
7+
```bash [npm]
8+
npm install reka-ui tailwind-variants @vueuse/core @vueuse/shared @vue/integrations colortranslator defu fuse.js ohashembla-carousel embla-carousel-auto-height embla-carousel-auto-scroll embla-carousel-autoplay embla-carousel-class-names embla-carousel-fade embla-carousel-vue embla-carousel-wheel-gestures vue-component-type-helpers && npm install -D vitest @testing-library/vue jsdom @vue/tsconfig
9+
```
10+
11+
```bash [Yarn]
12+
yarn add reka-ui tailwind-variants @vueuse/core @vueuse/shared @vue/integrations colortranslator defu fuse.js ohashembla-carousel embla-carousel-auto-height embla-carousel-auto-scroll embla-carousel-autoplay embla-carousel-class-names embla-carousel-fade embla-carousel-vue embla-carousel-wheel-gestures vue-component-type-helpers && yarn add -D vitest @testing-library/vue jsdom @vue/tsconfig
13+
```
14+
15+
```bash [pnpm]
16+
pnpm add reka-ui tailwind-variants @vueuse/core @vueuse/shared @vue/integrations colortranslator defu fuse.js ohashembla-carousel embla-carousel-auto-height embla-carousel-auto-scroll embla-carousel-autoplay embla-carousel-class-names embla-carousel-fade embla-carousel-vue embla-carousel-wheel-gestures vue-component-type-helpers && pnpm add -D vitest @testing-library/vue jsdom @vue/tsconfig
17+
```
18+
19+
```bash [Bun]
20+
bun add reka-ui tailwind-variants @vueuse/core @vueuse/shared colortranslator @vue/integrations defu embla-carousel embla-carousel-auto-height fuse.js ohashembla-carousel-auto-scroll embla-carousel-autoplay embla-carousel-class-names embla-carousel-fade embla-carousel-vue vue-component-type-helpers embla-carousel-wheel-gestures && bun add -D vitest @testing-library/vue jsdom @vue/tsconfig
21+
```
22+
23+
:::
24+
25+
Next, install the components using the provided script with the appropriate parameters:
26+
27+
```bash
28+
curl -sSfL https://vue-ui.barbapapazes.dev/install.sh | bash
29+
```
30+
31+
> [!NOTE]
32+
> If the repository `barbapapazes/vue-ui` is private, prepend `bash` with `GITHUB_TOKEN=$(gh auth token)` to authenticate and install the components.
33+
34+
> [!WARNING]
35+
> Always review scripts from the internet before executing them. Take a moment to inspect the script to ensure its safety.
36+
37+
For guidance on which parameters to use based on your project setup, refer to the following guides:
38+
39+
- [Vite](./usage/vite.md)
40+
- [Laravel Inertia](./usage/laravel-inertia.md)

src/public/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ validate_dependencies() {
1616
done
1717

1818
if [ -z "$GH_TOKEN" ]; then
19-
echo "Error: GH_TOKEN environment variable is not set."
19+
echo "Error: GITHUB_TOKEN environment variable is not set."
2020
exit 1
2121
fi
2222
}

src/upgrade.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Upgrade Guide
2+
3+
To upgrade your components, use the same script provided for the installation process:
4+
5+
```bash
6+
curl -sSfL https://vue-ui.barbapapazes.dev/install.sh | bash
7+
```
8+
9+
> [!NOTE]
10+
> If the repository `barbapapazes-sponsors/vue-ui` is private, prepend `bash` with `GITHUB_TOKEN=$(gh auth token)` to authenticate and install the components.
11+
12+
> [!WARNING]
13+
> Always review scripts from the internet before executing them. Inspect the script to ensure its safety.
14+
15+
> [!WARNING] This process will completely overwrite your existing components, including any local changes. To preserve your modifications, consider using diffing tools such as `git diff` or the comparison features in your preferred IDE before proceeding.
Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,15 @@
11
# Inertia
22

3-
**[Inertia](https://inertiajs.com/)** is a library that effortlessly allows you to render single-file Vue components directly from your **Laravel** backend by providing them with the necessary data. This integration enables the use of Vue components within Laravel views without requiring a separate API structure.
4-
5-
Through this guide, you'll learn how to use **Reka UI** with **Inertia** and **Vue**. We'll cover the **installation**, **configuration**, and **usage** of this setup.
3+
Through this guide, you'll learn how to use **Reka UI** with **Inertia** and **Vue**.
64

75
> [!NOTE]
86
> This guide assumes you have a default Laravel installation with Inertia, **Vue**, and **TypeScript**. If your setup differs, you may need to adapt the instructions, although the general guidelines should still prove helpful.
97
10-
## Installation
11-
12-
Begin by installing the required dependencies and development dependencies.
13-
14-
::: code-group
15-
16-
```bash [npm]
17-
npm install reka-ui tailwind-variants @vueuse/core @vueuse/shared color && npm install -D vitest @testing-library/vue jsdom @vue/tsconfig
18-
```
19-
20-
```bash [Yarn]
21-
yarn add reka-ui tailwind-variants @vueuse/core @vueuse/shared color && yarn add -D vitest @testing-library/vue jsdom @vue/tsconfig
22-
```
23-
24-
```bash [pnpm]
25-
pnpm add reka-ui tailwind-variants @vueuse/core @vueuse/shared color && pnpm add -D vitest @testing-library/vue jsdom @vue/tsconfig
26-
```
27-
28-
```bash [Bun]
29-
bun add reka-ui tailwind-variants @vueuse/core @vueuse/shared color && bun add -D vitest @testing-library/vue jsdom @vue/tsconfig
30-
```
8+
## Usage
319

32-
:::
10+
At this point, you should have installed dependencies and the components. If you haven't done so, please refer to the [installation guide](../installation.md).
3311

34-
Next, configure Vitest to work with Vue and a DOM environment. Open `vite.config.ts` and include the following configuration:
12+
Then, you can create a `vite.config.ts` file in the root of your project. This file will instruct Vite to correctly resolve the main alias `@/ui` to the `resources/js/UI` directory.
3513

3614
```ts [vite.config.ts]
3715
/// <reference types="vitest" />
@@ -56,8 +34,6 @@ export default defineConfig({
5634
})
5735
```
5836

59-
Make sure to update your `vite.config.ts` file with Reka UI and Tailwind Variants in the `optimizeDeps` section to ensure these packages are automatically optimized during startup. The `resolve.alias` configuration creates an alias path for importing Vue components, facilitating easier component management and consistency across your project.
60-
6137
> [!NOTE]
6238
> If you're currently using a `.js` file for your Vite configuration, it's advisable to switch to a `.ts` file to leverage TypeScript's type-checking and auto-completion capabilities.
6339

src/usage/vite.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Vite

0 commit comments

Comments
 (0)