create-asterui 0.1.0 → 0.1.1

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 ADDED
@@ -0,0 +1,60 @@
1
+ # create-asterui
2
+
3
+ Scaffold a new [AsterUI](https://asterui.com) project with Vite, Tailwind CSS v4, and DaisyUI v5.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npm create asterui
9
+ # or
10
+ pnpm create asterui
11
+ # or
12
+ yarn create asterui
13
+ ```
14
+
15
+ ## What it does
16
+
17
+ - Creates a new Vite + React project
18
+ - Configures Tailwind CSS v4 and DaisyUI v5
19
+ - Installs AsterUI and react-hook-form
20
+ - Sets up theme configuration (light/dark, business/corporate, or custom)
21
+ - Supports TypeScript or JavaScript
22
+
23
+ ## Options
24
+
25
+ The CLI will prompt you for:
26
+
27
+ - **Project name** - Directory name for your project
28
+ - **Language** - TypeScript (recommended) or JavaScript
29
+ - **Themes** - Light/Dark, Business/Corporate, All themes, or custom selection
30
+ - **Package manager** - npm, pnpm, or yarn (auto-detected)
31
+
32
+ ## After scaffolding
33
+
34
+ ```bash
35
+ cd your-project
36
+ npm run dev
37
+ ```
38
+
39
+ ## Optional components
40
+
41
+ Some AsterUI components require additional peer dependencies and use separate imports:
42
+
43
+ ```bash
44
+ # For Chart component
45
+ npm install apexcharts
46
+ import { Chart } from 'asterui/chart'
47
+
48
+ # For QRCode component
49
+ npm install qrcode
50
+ import { QRCode } from 'asterui/qrcode'
51
+
52
+ # For VirtualList component
53
+ npm install @tanstack/react-virtual
54
+ import { VirtualList } from 'asterui/virtuallist'
55
+ ```
56
+
57
+ ## Links
58
+
59
+ - [AsterUI Documentation](https://asterui.com)
60
+ - [GitHub](https://github.com/edadma/asterui)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asterui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Create a new AsterUI project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -6,7 +6,7 @@ function App() {
6
6
  <Navbar
7
7
  className="bg-base-100 shadow-lg"
8
8
  start={<a className="text-xl font-bold">AsterUI App</a>}
9
- end={<ThemeController.Swap />}
9
+ end={<ThemeController.Swap className="scale-75" />}
10
10
  />
11
11
 
12
12
  <div className="p-6">
@@ -6,7 +6,7 @@ function App() {
6
6
  <Navbar
7
7
  className="bg-base-100 shadow-lg"
8
8
  start={<a className="text-xl font-bold">AsterUI App</a>}
9
- end={<ThemeController.Swap />}
9
+ end={<ThemeController.Swap className="scale-75" />}
10
10
  />
11
11
 
12
12
  <div className="p-6">