create-vidra-app 0.1.0
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 +39 -0
- package/bin/create-vidra-app.mjs +2 -0
- package/bin/vidra.mjs +2 -0
- package/dist/cli.js +777 -0
- package/dist/index.js +241 -0
- package/package.json +56 -0
- package/templates/react-vite/NuGet.Config +8 -0
- package/templates/react-vite/README.md +57 -0
- package/templates/react-vite/_gitignore +16 -0
- package/templates/react-vite/package.json +14 -0
- package/templates/react-vite/src/{{projectName}}.Host/App.xaml +5 -0
- package/templates/react-vite/src/{{projectName}}.Host/App.xaml.cs +14 -0
- package/templates/react-vite/src/{{projectName}}.Host/MainPage.cs +28 -0
- package/templates/react-vite/src/{{projectName}}.Host/MauiProgram.cs +26 -0
- package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/AppDelegate.cs +9 -0
- package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/Info.plist +11 -0
- package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/Program.cs +11 -0
- package/templates/react-vite/src/{{projectName}}.Host/Platforms/Windows/App.xaml +8 -0
- package/templates/react-vite/src/{{projectName}}.Host/Platforms/Windows/App.xaml.cs +11 -0
- package/templates/react-vite/src/{{projectName}}.Host/{{projectName}}.Host.csproj +57 -0
- package/templates/react-vite/ui/index.html +12 -0
- package/templates/react-vite/ui/package.json +23 -0
- package/templates/react-vite/ui/src/App.tsx +240 -0
- package/templates/react-vite/ui/src/index.css +109 -0
- package/templates/react-vite/ui/src/main.tsx +10 -0
- package/templates/react-vite/ui/src/vite-env.d.ts +1 -0
- package/templates/react-vite/ui/tsconfig.json +21 -0
- package/templates/react-vite/ui/vite.config.ts +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# create-vidra-app
|
|
2
|
+
|
|
3
|
+
Scaffold a new [Vidra](https://github.com/rzamfiriu/vidra) application — a
|
|
4
|
+
**React UI + .NET MAUI native host**, shipped from a single codebase.
|
|
5
|
+
|
|
6
|
+
> **Alpha.** APIs and templates may change between 0.x releases.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm create vidra-app@latest
|
|
12
|
+
# or
|
|
13
|
+
npx create-vidra-app my-app
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You'll be prompted for a project name and an app ID (reverse-domain). Then:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cd my-app
|
|
20
|
+
npm run dev # starts Vite + the native host together
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This package also installs the `vidra` CLI used by scaffolded apps:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
vidra dev # start Vite + native host
|
|
27
|
+
vidra dev --target windows # run the Windows host
|
|
28
|
+
vidra build --target macos # build + package a macOS .dmg
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Prerequisites
|
|
32
|
+
|
|
33
|
+
- .NET 10 SDK with the MAUI workload
|
|
34
|
+
- Node.js 18+
|
|
35
|
+
- Windows targets must be built on Windows; macOS targets on macOS
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT
|
package/bin/vidra.mjs
ADDED