bejamas 0.0.0-canary.0138fd3
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 +64 -0
- package/dist/generate-mdx-BSRQJPrF.js +1205 -0
- package/dist/generate-mdx-BSRQJPrF.js.map +1 -0
- package/dist/index.js +3717 -0
- package/dist/index.js.map +1 -0
- package/dist/utils-Cxc_kZGv.js +9757 -0
- package/dist/utils-Cxc_kZGv.js.map +1 -0
- package/package.json +69 -0
- package/src/tailwind.css +636 -0
- package/tailwind.css +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# bejamas
|
|
2
|
+
|
|
3
|
+
A CLI for adding components to your project.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Use the `init` command to initialize dependencies for a new project.
|
|
8
|
+
|
|
9
|
+
The `init` command installs dependencies, adds the `cn` util, and configures CSS variables for the project.
|
|
10
|
+
|
|
11
|
+
Bejamas currently runs exact `shadcn` v4.6.0 for managed CLI commands. The Bejamas-specific `init`, `apply`, and `preset` flows preserve Astro preset switching, style support, and the legacy `--base-color` option.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx bejamas init
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## add
|
|
18
|
+
|
|
19
|
+
Use the `add` command to add components to your project.
|
|
20
|
+
|
|
21
|
+
The `add` command adds a component to your project and installs all required dependencies.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx bejamas add [component]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx bejamas add button
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
You can also run the command without any arguments to view a list of all available components:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx bejamas add
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## apply
|
|
40
|
+
|
|
41
|
+
Use the `apply` command to switch an existing project to a new preset.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx bejamas apply --preset <preset>
|
|
45
|
+
npx bejamas apply <preset> --only theme,font
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## preset
|
|
49
|
+
|
|
50
|
+
Use the `preset` command to decode preset codes, create share URLs, open presets in the builder, or resolve the active preset from an existing project.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx bejamas preset decode <preset>
|
|
54
|
+
npx bejamas preset url <preset>
|
|
55
|
+
npx bejamas preset resolve
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Documentation
|
|
59
|
+
|
|
60
|
+
Visit https://ui.bejamas.com/docs/cli to view the documentation.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
Licensed under the [MIT license](https://github.com/bejamas/ui/blob/main/LICENSE.md).
|