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.
Files changed (28) hide show
  1. package/README.md +39 -0
  2. package/bin/create-vidra-app.mjs +2 -0
  3. package/bin/vidra.mjs +2 -0
  4. package/dist/cli.js +777 -0
  5. package/dist/index.js +241 -0
  6. package/package.json +56 -0
  7. package/templates/react-vite/NuGet.Config +8 -0
  8. package/templates/react-vite/README.md +57 -0
  9. package/templates/react-vite/_gitignore +16 -0
  10. package/templates/react-vite/package.json +14 -0
  11. package/templates/react-vite/src/{{projectName}}.Host/App.xaml +5 -0
  12. package/templates/react-vite/src/{{projectName}}.Host/App.xaml.cs +14 -0
  13. package/templates/react-vite/src/{{projectName}}.Host/MainPage.cs +28 -0
  14. package/templates/react-vite/src/{{projectName}}.Host/MauiProgram.cs +26 -0
  15. package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/AppDelegate.cs +9 -0
  16. package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/Info.plist +11 -0
  17. package/templates/react-vite/src/{{projectName}}.Host/Platforms/MacCatalyst/Program.cs +11 -0
  18. package/templates/react-vite/src/{{projectName}}.Host/Platforms/Windows/App.xaml +8 -0
  19. package/templates/react-vite/src/{{projectName}}.Host/Platforms/Windows/App.xaml.cs +11 -0
  20. package/templates/react-vite/src/{{projectName}}.Host/{{projectName}}.Host.csproj +57 -0
  21. package/templates/react-vite/ui/index.html +12 -0
  22. package/templates/react-vite/ui/package.json +23 -0
  23. package/templates/react-vite/ui/src/App.tsx +240 -0
  24. package/templates/react-vite/ui/src/index.css +109 -0
  25. package/templates/react-vite/ui/src/main.tsx +10 -0
  26. package/templates/react-vite/ui/src/vite-env.d.ts +1 -0
  27. package/templates/react-vite/ui/tsconfig.json +21 -0
  28. 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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import("../dist/index.js");
package/bin/vidra.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import("../dist/cli.js");