@sibyllinesoft/arbiter 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 (302) hide show
  1. package/README.md +222 -0
  2. package/dist/cli.js +28718 -0
  3. package/dist/templates/plopfiles/__tests__/build-systems.test.ts +730 -0
  4. package/dist/templates/plopfiles/__tests__/e2e.test.ts +451 -0
  5. package/dist/templates/plopfiles/__tests__/generation.test.ts +384 -0
  6. package/dist/templates/plopfiles/__tests__/linting.test.ts +854 -0
  7. package/dist/templates/plopfiles/__tests__/modules.test.ts +278 -0
  8. package/dist/templates/plopfiles/__tests__/smoke.test.ts +619 -0
  9. package/dist/templates/plopfiles/__tests__/templates.test.ts +341 -0
  10. package/dist/templates/plopfiles/_modules/backends/go-chi/module.js +43 -0
  11. package/dist/templates/plopfiles/_modules/backends/go-chi/templates/.air.toml.hbs +30 -0
  12. package/dist/templates/plopfiles/_modules/backends/go-chi/templates/cmd/server/main.go.hbs +50 -0
  13. package/dist/templates/plopfiles/_modules/backends/go-chi/templates/go.mod.hbs +9 -0
  14. package/dist/templates/plopfiles/_modules/backends/go-chi/templates/internal/handlers/health.go.hbs +51 -0
  15. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/module.js +38 -0
  16. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/build.gradle.kts.hbs +37 -0
  17. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/settings.gradle.kts.hbs +1 -0
  18. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/kotlin/Application.kt.hbs +44 -0
  19. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/kotlin/routes/Health.kt.hbs +41 -0
  20. package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/resources/logback.xml.hbs +11 -0
  21. package/dist/templates/plopfiles/_modules/backends/node-express/module.js +54 -0
  22. package/dist/templates/plopfiles/_modules/backends/node-express/templates/src/index.ts.hbs +37 -0
  23. package/dist/templates/plopfiles/_modules/backends/node-express/templates/src/routes/health.ts.hbs +21 -0
  24. package/dist/templates/plopfiles/_modules/backends/node-express/templates/tsconfig.json.hbs +18 -0
  25. package/dist/templates/plopfiles/_modules/backends/node-hono/module.js +56 -0
  26. package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/index.ts.hbs +30 -0
  27. package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/routes/health.ts.hbs +64 -0
  28. package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/routes/index.ts.hbs +38 -0
  29. package/dist/templates/plopfiles/_modules/backends/node-hono/templates/tsconfig.json.hbs +20 -0
  30. package/dist/templates/plopfiles/_modules/backends/node-hono/templates/typedoc.json.hbs +25 -0
  31. package/dist/templates/plopfiles/_modules/backends/python-fastapi/module.js +65 -0
  32. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/__init__.py.hbs +1 -0
  33. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/config.py.hbs +28 -0
  34. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/main.py.hbs +40 -0
  35. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/routers/__init__.py.hbs +1 -0
  36. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/routers/health.py.hbs +24 -0
  37. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/pyproject.toml.hbs +40 -0
  38. package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/requirements.txt.hbs +6 -0
  39. package/dist/templates/plopfiles/_modules/backends/rust-axum/module.js +44 -0
  40. package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/Cargo.toml.hbs +23 -0
  41. package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/src/health.rs.hbs +41 -0
  42. package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/src/main.rs.hbs +57 -0
  43. package/dist/templates/plopfiles/_modules/cloud/aws/module.js +33 -0
  44. package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-alb.tf.hbs +92 -0
  45. package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-ecs.tf.hbs +84 -0
  46. package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-iam.tf.hbs +60 -0
  47. package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-vpc.tf.hbs +106 -0
  48. package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws.tf.hbs +56 -0
  49. package/dist/templates/plopfiles/_modules/cloud/azure/module.js +31 -0
  50. package/dist/templates/plopfiles/_modules/cloud/azure/templates/azure-container-apps.tf.hbs +99 -0
  51. package/dist/templates/plopfiles/_modules/cloud/azure/templates/azure.tf.hbs +54 -0
  52. package/dist/templates/plopfiles/_modules/cloud/cloudflare/module.js +43 -0
  53. package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/src/types.d.ts.hbs +6 -0
  54. package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/src/worker.ts.hbs +51 -0
  55. package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/wrangler.toml.hbs +36 -0
  56. package/dist/templates/plopfiles/_modules/cloud/gcp/module.js +31 -0
  57. package/dist/templates/plopfiles/_modules/cloud/gcp/templates/gcp-cloudrun.tf.hbs +89 -0
  58. package/dist/templates/plopfiles/_modules/cloud/gcp/templates/gcp.tf.hbs +62 -0
  59. package/dist/templates/plopfiles/_modules/cloud/supabase/module.js +51 -0
  60. package/dist/templates/plopfiles/_modules/cloud/supabase/templates/src/lib/supabase.ts.hbs +25 -0
  61. package/dist/templates/plopfiles/_modules/cloud/supabase/templates/src/types/supabase.ts.hbs +52 -0
  62. package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/config.toml.hbs +71 -0
  63. package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/functions/hello/index.ts.hbs +34 -0
  64. package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/migrations/00000000000000_init.sql.hbs +60 -0
  65. package/dist/templates/plopfiles/_modules/composer.js +180 -0
  66. package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/drizzle.config.ts.hbs +10 -0
  67. package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/module.js +53 -0
  68. package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/templates/index.ts.hbs +15 -0
  69. package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/templates/schema.ts.hbs +21 -0
  70. package/dist/templates/plopfiles/_modules/desktop/electron/module.js +51 -0
  71. package/dist/templates/plopfiles/_modules/desktop/electron/templates/forge.config.ts.hbs +38 -0
  72. package/dist/templates/plopfiles/_modules/desktop/electron/templates/package.json.hbs +22 -0
  73. package/dist/templates/plopfiles/_modules/desktop/electron/templates/src/main.ts.hbs +48 -0
  74. package/dist/templates/plopfiles/_modules/desktop/electron/templates/src/preload.ts.hbs +18 -0
  75. package/dist/templates/plopfiles/_modules/desktop/electron/templates/tsconfig.json.hbs +14 -0
  76. package/dist/templates/plopfiles/_modules/desktop/tauri/module.js +38 -0
  77. package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/Cargo.toml.hbs +20 -0
  78. package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/build.rs.hbs +3 -0
  79. package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/src/main.rs.hbs +30 -0
  80. package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/tauri.conf.json.hbs +44 -0
  81. package/dist/templates/plopfiles/_modules/docs/mkdocs/module.js +61 -0
  82. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/architecture/components.md.hbs +37 -0
  83. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/architecture/overview.md.hbs +43 -0
  84. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/contributing/development.md.hbs +164 -0
  85. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/contributing/guidelines.md.hbs +50 -0
  86. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/configuration.md.hbs +37 -0
  87. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/installation.md.hbs +53 -0
  88. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/quickstart.md.hbs +39 -0
  89. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/index.md.hbs +44 -0
  90. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/javascripts/extra.js.hbs +23 -0
  91. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/stylesheets/extra.css.hbs +51 -0
  92. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/mkdocs.yml.hbs +141 -0
  93. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/requirements-docs.txt.hbs +15 -0
  94. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/scripts/aggregate-docs.mjs.hbs +188 -0
  95. package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/scripts/gen_ref_pages.py.hbs +54 -0
  96. package/dist/templates/plopfiles/_modules/frontends/react-vite/module.js +60 -0
  97. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/index.html.hbs +13 -0
  98. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/nginx.conf.hbs +31 -0
  99. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/postcss.config.js.hbs +6 -0
  100. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/App.tsx.hbs +12 -0
  101. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/index.css.hbs +25 -0
  102. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/lib/api.ts.hbs +52 -0
  103. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/main.tsx.hbs +18 -0
  104. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/pages/Home.tsx.hbs +31 -0
  105. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tailwind.config.js.hbs +8 -0
  106. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tsconfig.json.hbs +25 -0
  107. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tsconfig.node.json.hbs +10 -0
  108. package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/vite.config.ts.hbs +21 -0
  109. package/dist/templates/plopfiles/_modules/frontends/solid-vite/module.js +51 -0
  110. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/index.html.hbs +13 -0
  111. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/postcss.config.js.hbs +6 -0
  112. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/App.tsx.hbs +12 -0
  113. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/index.css.hbs +3 -0
  114. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/index.tsx.hbs +21 -0
  115. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/lib/api.ts.hbs +52 -0
  116. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/pages/Home.tsx.hbs +34 -0
  117. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/tailwind.config.js.hbs +8 -0
  118. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/tsconfig.json.hbs +24 -0
  119. package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/vite.config.ts.hbs +21 -0
  120. package/dist/templates/plopfiles/_modules/frontends/vue-vite/module.js +54 -0
  121. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/index.html.hbs +13 -0
  122. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/postcss.config.js.hbs +6 -0
  123. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/App.vue.hbs +9 -0
  124. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/index.css.hbs +3 -0
  125. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/lib/api.ts.hbs +52 -0
  126. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/main.ts.hbs +14 -0
  127. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/pages/Home.vue.hbs +27 -0
  128. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/router.ts.hbs +13 -0
  129. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/tailwind.config.js.hbs +8 -0
  130. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/tsconfig.json.hbs +25 -0
  131. package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/vite.config.ts.hbs +21 -0
  132. package/dist/templates/plopfiles/_modules/infra/docker-compose/module.js +52 -0
  133. package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/Dockerfile.backend.hbs +32 -0
  134. package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/Dockerfile.frontend.hbs +31 -0
  135. package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/docker-compose.yml.hbs +97 -0
  136. package/dist/templates/plopfiles/_modules/infra/github-actions/module.js +24 -0
  137. package/dist/templates/plopfiles/_modules/infra/github-actions/templates/.github/workflows/ci.yml.hbs +78 -0
  138. package/dist/templates/plopfiles/_modules/infra/github-actions/templates/.github/workflows/deploy.yml.hbs +60 -0
  139. package/dist/templates/plopfiles/_modules/infra/just/module.js +26 -0
  140. package/dist/templates/plopfiles/_modules/infra/just/templates/justfile.hbs +205 -0
  141. package/dist/templates/plopfiles/_modules/infra/kubernetes/module.js +30 -0
  142. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/deployment.yaml.hbs +48 -0
  143. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/ingress.yaml.hbs +23 -0
  144. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/kustomization.yaml.hbs +11 -0
  145. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/service.yaml.hbs +15 -0
  146. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/dev/deployment-patch.yaml.hbs +17 -0
  147. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/dev/kustomization.yaml.hbs +15 -0
  148. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/prod/deployment-patch.yaml.hbs +17 -0
  149. package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/prod/kustomization.yaml.hbs +15 -0
  150. package/dist/templates/plopfiles/_modules/infra/pulumi/module.js +30 -0
  151. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/.gitignore.hbs +5 -0
  152. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/Pulumi.dev.yaml.hbs +3 -0
  153. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/Pulumi.yaml.hbs +7 -0
  154. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/index.ts.hbs +26 -0
  155. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/package.json.hbs +12 -0
  156. package/dist/templates/plopfiles/_modules/infra/pulumi/templates/tsconfig.json.hbs +16 -0
  157. package/dist/templates/plopfiles/_modules/infra/terraform/module.js +31 -0
  158. package/dist/templates/plopfiles/_modules/infra/terraform/templates/.gitignore.hbs +12 -0
  159. package/dist/templates/plopfiles/_modules/infra/terraform/templates/main.tf.hbs +34 -0
  160. package/dist/templates/plopfiles/_modules/infra/terraform/templates/outputs.tf.hbs +15 -0
  161. package/dist/templates/plopfiles/_modules/infra/terraform/templates/terraform.tfvars.example.hbs +6 -0
  162. package/dist/templates/plopfiles/_modules/infra/terraform/templates/variables.tf.hbs +30 -0
  163. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/module.js +38 -0
  164. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/build.gradle.kts.hbs +102 -0
  165. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/proguard-rules.pro.hbs +20 -0
  166. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/AndroidManifest.xml.hbs +25 -0
  167. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ApiClient.kt.hbs +38 -0
  168. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/App.kt.hbs +116 -0
  169. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/MainActivity.kt.hbs +28 -0
  170. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Color.kt.hbs +11 -0
  171. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Theme.kt.hbs +55 -0
  172. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Type.kt.hbs +31 -0
  173. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/res/values/strings.xml.hbs +3 -0
  174. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/res/values/themes.xml.hbs +4 -0
  175. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/build.gradle.kts.hbs +6 -0
  176. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/gradle.properties.hbs +4 -0
  177. package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/settings.gradle.kts.hbs +18 -0
  178. package/dist/templates/plopfiles/_modules/mobile/flutter/module.js +36 -0
  179. package/dist/templates/plopfiles/_modules/mobile/flutter/templates/.env.hbs +1 -0
  180. package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/main.dart.hbs +29 -0
  181. package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/screens/home_screen.dart.hbs +88 -0
  182. package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/services/api_service.dart.hbs +61 -0
  183. package/dist/templates/plopfiles/_modules/mobile/flutter/templates/pubspec.yaml.hbs +25 -0
  184. package/dist/templates/plopfiles/_modules/mobile/ios-swift/module.js +39 -0
  185. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/App.swift.hbs +10 -0
  186. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/AccentColor.colorset/Contents.json.hbs +11 -0
  187. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/AppIcon.appiconset/Contents.json.hbs +13 -0
  188. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/Contents.json.hbs +6 -0
  189. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/ContentView.swift.hbs +13 -0
  190. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Services/APIClient.swift.hbs +58 -0
  191. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Views/DetailsView.swift.hbs +22 -0
  192. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Views/HomeView.swift.hbs +62 -0
  193. package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App.xcodeproj/project.pbxproj.hbs +363 -0
  194. package/dist/templates/plopfiles/_modules/mobile/react-native/module.js +36 -0
  195. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app/_layout.tsx.hbs +16 -0
  196. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app/index.tsx.hbs +66 -0
  197. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app.json.hbs +37 -0
  198. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/package.json.hbs +29 -0
  199. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/src/lib/api.ts.hbs +52 -0
  200. package/dist/templates/plopfiles/_modules/mobile/react-native/templates/tsconfig.json.hbs +11 -0
  201. package/dist/templates/plopfiles/_modules/quality/biome/module.js +44 -0
  202. package/dist/templates/plopfiles/_modules/quality/biome/templates/biome.json.hbs +126 -0
  203. package/dist/templates/plopfiles/_modules/quality/clippy/module.js +40 -0
  204. package/dist/templates/plopfiles/_modules/quality/clippy/templates/clippy.toml.hbs +29 -0
  205. package/dist/templates/plopfiles/_modules/quality/clippy/templates/rustfmt.toml.hbs +44 -0
  206. package/dist/templates/plopfiles/_modules/quality/golangci-lint/module.js +40 -0
  207. package/dist/templates/plopfiles/_modules/quality/golangci-lint/templates/.golangci.yml.hbs +199 -0
  208. package/dist/templates/plopfiles/_modules/quality/ruff/module.js +43 -0
  209. package/dist/templates/plopfiles/_modules/quality/ruff/templates/mypy.ini.hbs +48 -0
  210. package/dist/templates/plopfiles/_modules/quality/ruff/templates/ruff.toml.hbs +111 -0
  211. package/dist/templates/plopfiles/_modules/storybook/react-storybook/module.js +54 -0
  212. package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/.storybook/main.ts.hbs +44 -0
  213. package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/.storybook/preview.ts.hbs +68 -0
  214. package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/src/stories/Button.stories.tsx.hbs +158 -0
  215. package/dist/templates/plopfiles/_modules/types.ts +98 -0
  216. package/dist/templates/plopfiles/full-stack/plopfile.js +132 -0
  217. package/dist/templates/plopfiles/full-stack/templates/gitignore.hbs +44 -0
  218. package/dist/templates/plopfiles/full-stack/templates/package.json.hbs +21 -0
  219. package/dist/templates/plopfiles/presets/cli-go/module.js +43 -0
  220. package/dist/templates/plopfiles/presets/cli-go/templates/README.md.hbs +42 -0
  221. package/dist/templates/plopfiles/presets/cli-go/templates/config.json.hbs +9 -0
  222. package/dist/templates/plopfiles/presets/cli-node/module.js +45 -0
  223. package/dist/templates/plopfiles/presets/cli-node/templates/README.md.hbs +42 -0
  224. package/dist/templates/plopfiles/presets/cli-node/templates/config.json.hbs +9 -0
  225. package/dist/templates/plopfiles/presets/cli-python/module.js +43 -0
  226. package/dist/templates/plopfiles/presets/cli-python/templates/README.md.hbs +42 -0
  227. package/dist/templates/plopfiles/presets/cli-python/templates/config.json.hbs +9 -0
  228. package/dist/templates/plopfiles/presets/cli-rust/module.js +43 -0
  229. package/dist/templates/plopfiles/presets/cli-rust/templates/README.md.hbs +42 -0
  230. package/dist/templates/plopfiles/presets/cli-rust/templates/config.json.hbs +9 -0
  231. package/dist/templates/plopfiles/presets/loader.js +125 -0
  232. package/dist/templates/plopfiles/typescript-service/plopfile.js +186 -0
  233. package/dist/templates/plopfiles/typescript-service/templates/Dockerfile.hbs +29 -0
  234. package/dist/templates/plopfiles/typescript-service/templates/README.md.hbs +85 -0
  235. package/dist/templates/plopfiles/typescript-service/templates/config.ts.hbs +15 -0
  236. package/dist/templates/plopfiles/typescript-service/templates/db/index.ts.hbs +19 -0
  237. package/dist/templates/plopfiles/typescript-service/templates/db/schema.ts.hbs +16 -0
  238. package/dist/templates/plopfiles/typescript-service/templates/index.ts.hbs +89 -0
  239. package/dist/templates/plopfiles/typescript-service/templates/package.json.hbs +36 -0
  240. package/dist/templates/plopfiles/typescript-service/templates/routes/health.ts.hbs +61 -0
  241. package/dist/templates/plopfiles/typescript-service/templates/routes/index.ts.hbs +35 -0
  242. package/dist/templates/plopfiles/typescript-service/templates/tsconfig.json.hbs +24 -0
  243. package/dist/templates/plopfiles/typescript-service/templates/types.ts.hbs +28 -0
  244. package/dist/templates/typescript/component.module.css.tpl +6 -0
  245. package/dist/templates/typescript/component.test.tsx.tpl +9 -0
  246. package/dist/templates/typescript/component.tsx.tpl +17 -0
  247. package/dist/templates/typescript/component.types.ts.tpl +3 -0
  248. package/dist/templates/typescript/project/nextjs/app/globals.css.tpl +10 -0
  249. package/dist/templates/typescript/project/nextjs/app/layout.tsx.tpl +15 -0
  250. package/dist/templates/typescript/project/nextjs/app/page.tsx.tpl +8 -0
  251. package/dist/templates/typescript/project/nextjs/babel.config.js.tpl +8 -0
  252. package/dist/templates/typescript/project/nextjs/jest.config.js.tpl +10 -0
  253. package/dist/templates/typescript/project/nextjs/jest.setup.ts.tpl +6 -0
  254. package/dist/templates/typescript/project/nextjs/next-env.d.ts.tpl +5 -0
  255. package/dist/templates/typescript/project/nextjs/next.config.js.tpl +9 -0
  256. package/dist/templates/typescript/project/nextjs/package.json.tpl +1 -0
  257. package/dist/templates/typescript/project/nextjs/tsconfig.json.tpl +1 -0
  258. package/dist/templates/typescript/project/vite/App.css.tpl +8 -0
  259. package/dist/templates/typescript/project/vite/App.tsx.tpl +17 -0
  260. package/dist/templates/typescript/project/vite/index.css.tpl +8 -0
  261. package/dist/templates/typescript/project/vite/index.html.tpl +13 -0
  262. package/dist/templates/typescript/project/vite/main.tsx.tpl +10 -0
  263. package/dist/templates/typescript/project/vite/package.json.tpl +1 -0
  264. package/dist/templates/typescript/project/vite/test-setup.ts.tpl +1 -0
  265. package/dist/templates/typescript/project/vite/tsconfig.build.json.tpl +1 -0
  266. package/dist/templates/typescript/project/vite/tsconfig.json.tpl +1 -0
  267. package/dist/templates/typescript/project/vite/tsconfig.node.json.tpl +1 -0
  268. package/dist/templates/typescript/project/vite/vite.config.ts.tpl +18 -0
  269. package/dist/templates/typescript/service.api.ts.tpl +27 -0
  270. package/dist/templates/typescript/service.class.ts.tpl +28 -0
  271. package/dist/templates/typescript/service.handler.ts.tpl +42 -0
  272. package/dist/templates/typescript/service.schema.ts.tpl +16 -0
  273. package/package.json +95 -0
  274. package/templates/typescript/component.module.css.tpl +6 -0
  275. package/templates/typescript/component.test.tsx.tpl +9 -0
  276. package/templates/typescript/component.tsx.tpl +17 -0
  277. package/templates/typescript/component.types.ts.tpl +3 -0
  278. package/templates/typescript/project/nextjs/app/globals.css.tpl +10 -0
  279. package/templates/typescript/project/nextjs/app/layout.tsx.tpl +15 -0
  280. package/templates/typescript/project/nextjs/app/page.tsx.tpl +8 -0
  281. package/templates/typescript/project/nextjs/babel.config.js.tpl +8 -0
  282. package/templates/typescript/project/nextjs/jest.config.js.tpl +10 -0
  283. package/templates/typescript/project/nextjs/jest.setup.ts.tpl +6 -0
  284. package/templates/typescript/project/nextjs/next-env.d.ts.tpl +5 -0
  285. package/templates/typescript/project/nextjs/next.config.js.tpl +9 -0
  286. package/templates/typescript/project/nextjs/package.json.tpl +1 -0
  287. package/templates/typescript/project/nextjs/tsconfig.json.tpl +1 -0
  288. package/templates/typescript/project/vite/App.css.tpl +8 -0
  289. package/templates/typescript/project/vite/App.tsx.tpl +17 -0
  290. package/templates/typescript/project/vite/index.css.tpl +8 -0
  291. package/templates/typescript/project/vite/index.html.tpl +13 -0
  292. package/templates/typescript/project/vite/main.tsx.tpl +10 -0
  293. package/templates/typescript/project/vite/package.json.tpl +1 -0
  294. package/templates/typescript/project/vite/test-setup.ts.tpl +1 -0
  295. package/templates/typescript/project/vite/tsconfig.build.json.tpl +1 -0
  296. package/templates/typescript/project/vite/tsconfig.json.tpl +1 -0
  297. package/templates/typescript/project/vite/tsconfig.node.json.tpl +1 -0
  298. package/templates/typescript/project/vite/vite.config.ts.tpl +18 -0
  299. package/templates/typescript/service.api.ts.tpl +27 -0
  300. package/templates/typescript/service.class.ts.tpl +28 -0
  301. package/templates/typescript/service.handler.ts.tpl +42 -0
  302. package/templates/typescript/service.schema.ts.tpl +16 -0
@@ -0,0 +1,180 @@
1
+ /**
2
+ * Module Composer
3
+ *
4
+ * Dynamically loads and composes template modules based on selections.
5
+ * Used by the full-stack plopfile and can be used programmatically.
6
+ */
7
+
8
+ import { dirname, resolve } from "node:path";
9
+ import { fileURLToPath } from "node:url";
10
+ import { pathExists } from "fs-extra";
11
+
12
+ const __dirname = dirname(fileURLToPath(import.meta.url));
13
+
14
+ /**
15
+ * Load a template module by category and name
16
+ *
17
+ * @param {string} category - backends, frontends, databases, or infra
18
+ * @param {string} name - module name (e.g., "node-hono", "react-vite")
19
+ * @returns {Promise<import('./types').TemplateModule>}
20
+ */
21
+ export async function loadModule(category, name) {
22
+ const modulePath = resolve(__dirname, category, name, "module.js");
23
+
24
+ if (!(await pathExists(modulePath))) {
25
+ throw new Error(`Module not found: ${category}/${name} (looked in ${modulePath})`);
26
+ }
27
+
28
+ return import(modulePath);
29
+ }
30
+
31
+ /**
32
+ * List available modules in a category
33
+ *
34
+ * @param {string} category
35
+ * @returns {Promise<string[]>}
36
+ */
37
+ export async function listModules(category) {
38
+ const { readdir } = await import("fs/promises");
39
+ const categoryPath = resolve(__dirname, category);
40
+
41
+ try {
42
+ const entries = await readdir(categoryPath, { withFileTypes: true });
43
+ return entries.filter((e) => e.isDirectory() && !e.name.startsWith("_")).map((e) => e.name);
44
+ } catch {
45
+ return [];
46
+ }
47
+ }
48
+
49
+ /**
50
+ * Compose multiple modules into a single manifest
51
+ *
52
+ * @param {object} selections - { backend, frontend, database, desktop, mobile, infra[], cloud[], build[] }
53
+ * @param {import('./types').ModuleContext} context
54
+ * @returns {Promise<{ actions: any[], manifest: import('./types').ComposedManifest }>}
55
+ */
56
+ export async function composeModules(selections, context) {
57
+ const actions = [];
58
+ const manifest = {
59
+ name: context.name,
60
+ modules: [],
61
+ dependencies: {},
62
+ devDependencies: {},
63
+ scripts: {},
64
+ envVars: {},
65
+ };
66
+
67
+ // Helper to merge module into manifest
68
+ const mergeModule = (mod, name) => {
69
+ manifest.modules.push(name);
70
+ Object.assign(manifest.dependencies, mod.dependencies || {});
71
+ Object.assign(manifest.devDependencies, mod.devDependencies || {});
72
+ Object.assign(manifest.scripts, mod.scripts || {});
73
+ Object.assign(manifest.envVars, mod.envVars || {});
74
+ };
75
+
76
+ // Load backend
77
+ if (selections.backend && selections.backend !== "none") {
78
+ const mod = await loadModule("backends", selections.backend);
79
+ actions.push(...mod.default(context));
80
+ mergeModule(mod, `backends/${selections.backend}`);
81
+ }
82
+
83
+ // Load frontend
84
+ if (selections.frontend && selections.frontend !== "none") {
85
+ const mod = await loadModule("frontends", selections.frontend);
86
+ actions.push(...mod.default(context));
87
+ mergeModule(mod, `frontends/${selections.frontend}`);
88
+ }
89
+
90
+ // Load database
91
+ if (selections.database && selections.database !== "none") {
92
+ const mod = await loadModule("databases", selections.database);
93
+ actions.push(...mod.default(context));
94
+ mergeModule(mod, `databases/${selections.database}`);
95
+ }
96
+
97
+ // Load desktop module
98
+ if (selections.desktop && selections.desktop !== "none") {
99
+ const mod = await loadModule("desktop", selections.desktop);
100
+ actions.push(...mod.default(context));
101
+ mergeModule(mod, `desktop/${selections.desktop}`);
102
+ }
103
+
104
+ // Load mobile module
105
+ if (selections.mobile && selections.mobile !== "none") {
106
+ const mod = await loadModule("mobile", selections.mobile);
107
+ actions.push(...mod.default(context));
108
+ mergeModule(mod, `mobile/${selections.mobile}`);
109
+ }
110
+
111
+ // Load infra modules
112
+ for (const infraName of selections.infra || []) {
113
+ const mod = await loadModule("infra", infraName);
114
+ actions.push(...mod.default(context));
115
+ mergeModule(mod, `infra/${infraName}`);
116
+ }
117
+
118
+ // Load cloud modules
119
+ for (const cloudName of selections.cloud || []) {
120
+ const mod = await loadModule("cloud", cloudName);
121
+ actions.push(...mod.default(context));
122
+ mergeModule(mod, `cloud/${cloudName}`);
123
+ }
124
+
125
+ // Load build system modules
126
+ for (const buildName of selections.build || []) {
127
+ const mod = await loadModule("build", buildName);
128
+ actions.push(...mod.default(context));
129
+ mergeModule(mod, `build/${buildName}`);
130
+ }
131
+
132
+ // Load docs modules
133
+ for (const docsName of selections.docs || []) {
134
+ const mod = await loadModule("docs", docsName);
135
+ actions.push(...mod.default(context));
136
+ mergeModule(mod, `docs/${docsName}`);
137
+ }
138
+
139
+ // Load quality/linting modules
140
+ for (const qualityName of selections.quality || []) {
141
+ const mod = await loadModule("quality", qualityName);
142
+ actions.push(...mod.default(context));
143
+ mergeModule(mod, `quality/${qualityName}`);
144
+ }
145
+
146
+ // Load storybook modules
147
+ for (const storybookName of selections.storybook || []) {
148
+ const mod = await loadModule("storybook", storybookName);
149
+ actions.push(...mod.default(context));
150
+ mergeModule(mod, `storybook/${storybookName}`);
151
+ }
152
+
153
+ return { actions, manifest };
154
+ }
155
+
156
+ /**
157
+ * Get all available module choices for prompts
158
+ */
159
+ export async function getModuleChoices() {
160
+ return {
161
+ backends: await listModules("backends"),
162
+ frontends: ["none", ...(await listModules("frontends"))],
163
+ databases: ["none", ...(await listModules("databases"))],
164
+ desktop: ["none", ...(await listModules("desktop"))],
165
+ mobile: ["none", ...(await listModules("mobile"))],
166
+ infra: await listModules("infra"),
167
+ cloud: await listModules("cloud"),
168
+ build: await listModules("build"),
169
+ docs: await listModules("docs"),
170
+ quality: await listModules("quality"),
171
+ storybook: await listModules("storybook"),
172
+ };
173
+ }
174
+
175
+ export default {
176
+ loadModule,
177
+ listModules,
178
+ composeModules,
179
+ getModuleChoices,
180
+ };
@@ -0,0 +1,10 @@
1
+ import type { Config } from "drizzle-kit";
2
+
3
+ export default {
4
+ schema: "./{{backendDir}}/src/db/schema.ts",
5
+ out: "./{{backendDir}}/drizzle",
6
+ driver: "pg",
7
+ dbCredentials: {
8
+ connectionString: process.env.DATABASE_URL!,
9
+ },
10
+ } satisfies Config;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * PostgreSQL + Drizzle ORM Module
3
+ */
4
+
5
+ import { dirname, resolve } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ const templatesDir = resolve(__dirname, "templates");
10
+
11
+ export default function (data) {
12
+ const backendDir = data.backendDir || "backend";
13
+
14
+ return [
15
+ {
16
+ type: "addMany",
17
+ destination: `{{projectDir}}/${backendDir}/src/db`,
18
+ base: templatesDir,
19
+ templateFiles: `${templatesDir}/**/*.hbs`,
20
+ stripExtensions: ["hbs"],
21
+ data,
22
+ },
23
+ // Add drizzle config to backend root
24
+ {
25
+ type: "add",
26
+ path: `{{projectDir}}/${backendDir}/drizzle.config.ts`,
27
+ templateFile: `${templatesDir}/../drizzle.config.ts.hbs`,
28
+ },
29
+ ];
30
+ }
31
+
32
+ export const description = "PostgreSQL database with Drizzle ORM";
33
+
34
+ export const dependencies = {
35
+ "drizzle-orm": "^0.29.0",
36
+ postgres: "^3.4.0",
37
+ };
38
+
39
+ export const devDependencies = {
40
+ "drizzle-kit": "^0.20.0",
41
+ };
42
+
43
+ export const scripts = {
44
+ "db:generate": "drizzle-kit generate:pg --config backend/drizzle.config.ts",
45
+ "db:push": "drizzle-kit push:pg --config backend/drizzle.config.ts",
46
+ "db:studio": "drizzle-kit studio --config backend/drizzle.config.ts",
47
+ };
48
+
49
+ export const envVars = {
50
+ DATABASE_URL: "postgres://postgres:postgres@localhost:5432/{{snakeCase name}}",
51
+ };
52
+
53
+ export const requires = ["backends/*"];
@@ -0,0 +1,15 @@
1
+ import { drizzle } from "drizzle-orm/postgres-js";
2
+ import postgres from "postgres";
3
+ import * as schema from "./schema";
4
+
5
+ const connectionString = process.env.DATABASE_URL!;
6
+
7
+ if (!connectionString) {
8
+ throw new Error("DATABASE_URL environment variable is not set");
9
+ }
10
+
11
+ const client = postgres(connectionString);
12
+
13
+ export const db = drizzle(client, { schema });
14
+
15
+ export * from "./schema";
@@ -0,0 +1,21 @@
1
+ import { pgTable, serial, text, timestamp, boolean, integer } from "drizzle-orm/pg-core";
2
+
3
+ // Example: Users table
4
+ export const users = pgTable("users", {
5
+ id: serial("id").primaryKey(),
6
+ email: text("email").notNull().unique(),
7
+ name: text("name"),
8
+ createdAt: timestamp("created_at").defaultNow().notNull(),
9
+ updatedAt: timestamp("updated_at").defaultNow().notNull(),
10
+ });
11
+
12
+ // Add your schema definitions here
13
+ // Example:
14
+ // export const posts = pgTable("posts", {
15
+ // id: serial("id").primaryKey(),
16
+ // title: text("title").notNull(),
17
+ // content: text("content"),
18
+ // authorId: integer("author_id").references(() => users.id),
19
+ // published: boolean("published").default(false),
20
+ // createdAt: timestamp("created_at").defaultNow().notNull(),
21
+ // });
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Electron Desktop Module
3
+ */
4
+
5
+ import { dirname, resolve } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ const templatesDir = resolve(__dirname, "templates");
10
+
11
+ export default function (data) {
12
+ const desktopDir = data.desktopDir || "desktop";
13
+
14
+ return [
15
+ {
16
+ type: "addMany",
17
+ destination: `{{projectDir}}/${desktopDir}`,
18
+ base: templatesDir,
19
+ templateFiles: `${templatesDir}/**/*.hbs`,
20
+ stripExtensions: ["hbs"],
21
+ data,
22
+ },
23
+ ];
24
+ }
25
+
26
+ export const description = "Electron desktop application with TypeScript";
27
+
28
+ export const dependencies = {
29
+ electron: "^28.0.0",
30
+ };
31
+
32
+ export const devDependencies = {
33
+ "@electron-forge/cli": "^7.2.0",
34
+ "@electron-forge/maker-deb": "^7.2.0",
35
+ "@electron-forge/maker-rpm": "^7.2.0",
36
+ "@electron-forge/maker-squirrel": "^7.2.0",
37
+ "@electron-forge/maker-zip": "^7.2.0",
38
+ "@electron-forge/plugin-auto-unpack-natives": "^7.2.0",
39
+ "@electron-forge/plugin-vite": "^7.2.0",
40
+ typescript: "^5.3.0",
41
+ };
42
+
43
+ export const scripts = {
44
+ "dev:desktop": "cd desktop && electron-forge start",
45
+ "build:desktop": "cd desktop && electron-forge make",
46
+ "package:desktop": "cd desktop && electron-forge package",
47
+ };
48
+
49
+ export const envVars = {
50
+ ELECTRON_IS_DEV: "1",
51
+ };
@@ -0,0 +1,38 @@
1
+ import type { ForgeConfig } from "@electron-forge/shared-types";
2
+ import { MakerSquirrel } from "@electron-forge/maker-squirrel";
3
+ import { MakerZIP } from "@electron-forge/maker-zip";
4
+ import { MakerDeb } from "@electron-forge/maker-deb";
5
+ import { MakerRpm } from "@electron-forge/maker-rpm";
6
+ import { VitePlugin } from "@electron-forge/plugin-vite";
7
+ import { AutoUnpackNativesPlugin } from "@electron-forge/plugin-auto-unpack-natives";
8
+
9
+ const config: ForgeConfig = {
10
+ packagerConfig: {
11
+ asar: true,
12
+ },
13
+ rebuildConfig: {},
14
+ makers: [
15
+ new MakerSquirrel({}),
16
+ new MakerZIP({}, ["darwin"]),
17
+ new MakerRpm({}),
18
+ new MakerDeb({}),
19
+ ],
20
+ plugins: [
21
+ new AutoUnpackNativesPlugin({}),
22
+ new VitePlugin({
23
+ build: [
24
+ {
25
+ entry: "src/main.ts",
26
+ config: "vite.main.config.ts",
27
+ },
28
+ {
29
+ entry: "src/preload.ts",
30
+ config: "vite.preload.config.ts",
31
+ },
32
+ ],
33
+ renderer: [],
34
+ }),
35
+ ],
36
+ };
37
+
38
+ export default config;
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "{{kebabCase name}}-desktop",
3
+ "version": "0.1.0",
4
+ "description": "{{titleCase name}} desktop application",
5
+ "main": "dist/main.js",
6
+ "scripts": {
7
+ "start": "electron-forge start",
8
+ "package": "electron-forge package",
9
+ "make": "electron-forge make"
10
+ },
11
+ "devDependencies": {
12
+ "@electron-forge/cli": "^7.2.0",
13
+ "@electron-forge/maker-deb": "^7.2.0",
14
+ "@electron-forge/maker-rpm": "^7.2.0",
15
+ "@electron-forge/maker-squirrel": "^7.2.0",
16
+ "@electron-forge/maker-zip": "^7.2.0",
17
+ "@electron-forge/plugin-auto-unpack-natives": "^7.2.0",
18
+ "@electron-forge/plugin-vite": "^7.2.0",
19
+ "electron": "^28.0.0",
20
+ "typescript": "^5.3.0"
21
+ }
22
+ }
@@ -0,0 +1,48 @@
1
+ import { app, BrowserWindow, ipcMain } from "electron";
2
+ import path from "path";
3
+
4
+ const isDev = process.env.ELECTRON_IS_DEV === "1";
5
+
6
+ function createWindow() {
7
+ const mainWindow = new BrowserWindow({
8
+ width: 1200,
9
+ height: 800,
10
+ webPreferences: {
11
+ preload: path.join(__dirname, "preload.js"),
12
+ nodeIntegration: false,
13
+ contextIsolation: true,
14
+ },
15
+ });
16
+
17
+ if (isDev) {
18
+ // Load from Vite dev server
19
+ mainWindow.loadURL("http://localhost:5173");
20
+ mainWindow.webContents.openDevTools();
21
+ } else {
22
+ // Load built frontend
23
+ mainWindow.loadFile(path.join(__dirname, "../frontend/dist/index.html"));
24
+ }
25
+
26
+ return mainWindow;
27
+ }
28
+
29
+ app.whenReady().then(() => {
30
+ createWindow();
31
+
32
+ app.on("activate", () => {
33
+ if (BrowserWindow.getAllWindows().length === 0) {
34
+ createWindow();
35
+ }
36
+ });
37
+ });
38
+
39
+ app.on("window-all-closed", () => {
40
+ if (process.platform !== "darwin") {
41
+ app.quit();
42
+ }
43
+ });
44
+
45
+ // IPC handlers
46
+ ipcMain.handle("app:version", () => {
47
+ return app.getVersion();
48
+ });
@@ -0,0 +1,18 @@
1
+ import { contextBridge, ipcRenderer } from "electron";
2
+
3
+ // Expose protected methods that allow the renderer process to use
4
+ // the ipcRenderer without exposing the entire object
5
+ contextBridge.exposeInMainWorld("electronAPI", {
6
+ getVersion: () => ipcRenderer.invoke("app:version"),
7
+ platform: process.platform,
8
+ });
9
+
10
+ // Type declarations for the renderer
11
+ declare global {
12
+ interface Window {
13
+ electronAPI: {
14
+ getVersion: () => Promise<string>;
15
+ platform: NodeJS.Platform;
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "CommonJS",
5
+ "moduleResolution": "node",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "skipLibCheck": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "outDir": "./dist",
11
+ "rootDir": "./src"
12
+ },
13
+ "include": ["src/**/*"]
14
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Tauri Desktop Module
3
+ */
4
+
5
+ import { dirname, resolve } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ const templatesDir = resolve(__dirname, "templates");
10
+
11
+ export default function (data) {
12
+ return [
13
+ {
14
+ type: "addMany",
15
+ destination: "{{projectDir}}",
16
+ base: templatesDir,
17
+ templateFiles: `${templatesDir}/**/*.hbs`,
18
+ stripExtensions: ["hbs"],
19
+ data,
20
+ },
21
+ ];
22
+ }
23
+
24
+ export const description = "Tauri desktop application (Rust + Web frontend)";
25
+
26
+ export const devDependencies = {
27
+ "@tauri-apps/cli": "^1.5.0",
28
+ "@tauri-apps/api": "^1.5.0",
29
+ };
30
+
31
+ export const scripts = {
32
+ "dev:desktop": "tauri dev",
33
+ "build:desktop": "tauri build",
34
+ };
35
+
36
+ export const envVars = {
37
+ TAURI_DEBUG: "1",
38
+ };
@@ -0,0 +1,20 @@
1
+ [package]
2
+ name = "{{snakeCase name}}"
3
+ version = "0.1.0"
4
+ description = "{{titleCase name}} desktop application"
5
+ authors = ["you"]
6
+ license = ""
7
+ repository = ""
8
+ edition = "2021"
9
+
10
+ [build-dependencies]
11
+ tauri-build = { version = "1.5", features = [] }
12
+
13
+ [dependencies]
14
+ tauri = { version = "1.5", features = ["shell-open"] }
15
+ serde = { version = "1.0", features = ["derive"] }
16
+ serde_json = "1.0"
17
+
18
+ [features]
19
+ default = ["custom-protocol"]
20
+ custom-protocol = ["tauri/custom-protocol"]
@@ -0,0 +1,3 @@
1
+ fn main() {
2
+ tauri_build::build()
3
+ }
@@ -0,0 +1,30 @@
1
+ // Prevents additional console window on Windows in release, DO NOT REMOVE!!
2
+ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
3
+
4
+ use tauri::Manager;
5
+
6
+ // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
7
+ #[tauri::command]
8
+ fn greet(name: &str) -> String {
9
+ format!("Hello, {}! You've been greeted from Rust!", name)
10
+ }
11
+
12
+ #[tauri::command]
13
+ fn get_app_version(app: tauri::AppHandle) -> String {
14
+ app.package_info().version.to_string()
15
+ }
16
+
17
+ fn main() {
18
+ tauri::Builder::default()
19
+ .setup(|app| {
20
+ #[cfg(debug_assertions)]
21
+ {
22
+ let window = app.get_window("main").unwrap();
23
+ window.open_devtools();
24
+ }
25
+ Ok(())
26
+ })
27
+ .invoke_handler(tauri::generate_handler![greet, get_app_version])
28
+ .run(tauri::generate_context!())
29
+ .expect("error while running tauri application");
30
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "build": {
3
+ "beforeDevCommand": "npm run dev:frontend",
4
+ "beforeBuildCommand": "npm run build:frontend",
5
+ "devPath": "http://localhost:5173",
6
+ "distDir": "../frontend/dist"
7
+ },
8
+ "package": {
9
+ "productName": "{{titleCase name}}",
10
+ "version": "0.1.0"
11
+ },
12
+ "tauri": {
13
+ "allowlist": {
14
+ "all": false,
15
+ "shell": {
16
+ "open": true
17
+ }
18
+ },
19
+ "bundle": {
20
+ "active": true,
21
+ "targets": "all",
22
+ "identifier": "com.{{snakeCase name}}.app",
23
+ "icon": [
24
+ "icons/32x32.png",
25
+ "icons/128x128.png",
26
+ "icons/128x128@2x.png",
27
+ "icons/icon.icns",
28
+ "icons/icon.ico"
29
+ ]
30
+ },
31
+ "security": {
32
+ "csp": null
33
+ },
34
+ "windows": [
35
+ {
36
+ "fullscreen": false,
37
+ "resizable": true,
38
+ "title": "{{titleCase name}}",
39
+ "width": 1200,
40
+ "height": 800
41
+ }
42
+ ]
43
+ }
44
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * MkDocs Documentation Module
3
+ *
4
+ * Sets up MkDocs with Material theme for monorepo documentation.
5
+ * Automatically aggregates docs from subprojects into a unified site.
6
+ */
7
+
8
+ import { dirname, resolve } from "node:path";
9
+ import { fileURLToPath } from "node:url";
10
+
11
+ const __dirname = dirname(fileURLToPath(import.meta.url));
12
+ const templatesDir = resolve(__dirname, "templates");
13
+
14
+ export default function (data) {
15
+ const docsDir = data.docsDir || "docs";
16
+
17
+ return [
18
+ {
19
+ type: "addMany",
20
+ destination: `{{projectDir}}`,
21
+ base: templatesDir,
22
+ templateFiles: `${templatesDir}/**/*.hbs`,
23
+ stripExtensions: ["hbs"],
24
+ data: {
25
+ ...data,
26
+ docsDir,
27
+ // Collect subprojects for nav aggregation
28
+ subprojects: data.modules || [],
29
+ },
30
+ },
31
+ ];
32
+ }
33
+
34
+ export const description = "MkDocs documentation with Material theme and monorepo aggregation";
35
+
36
+ export const dependencies = {};
37
+
38
+ export const devDependencies = {};
39
+
40
+ export const scripts = {
41
+ "docs:serve": "mkdocs serve",
42
+ "docs:build": "mkdocs build",
43
+ "docs:deploy": "mkdocs gh-deploy",
44
+ "docs:aggregate": "node scripts/aggregate-docs.mjs",
45
+ };
46
+
47
+ export const envVars = {};
48
+
49
+ // Python requirements for mkdocs
50
+ export const pythonRequirements = [
51
+ "mkdocs>=1.5.0",
52
+ "mkdocs-material>=9.5.0",
53
+ "mkdocs-monorepo-plugin>=1.0.0",
54
+ "mkdocs-awesome-pages-plugin>=2.9.0",
55
+ "mkdocs-git-revision-date-localized-plugin>=1.2.0",
56
+ "mkdocs-minify-plugin>=0.7.0",
57
+ "mkdocstrings[python]>=0.24.0",
58
+ "mkdocs-gen-files>=0.5.0",
59
+ "mkdocs-literate-nav>=0.6.0",
60
+ "mkdocs-section-index>=0.3.0",
61
+ ];