@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.
- package/README.md +222 -0
- package/dist/cli.js +28718 -0
- package/dist/templates/plopfiles/__tests__/build-systems.test.ts +730 -0
- package/dist/templates/plopfiles/__tests__/e2e.test.ts +451 -0
- package/dist/templates/plopfiles/__tests__/generation.test.ts +384 -0
- package/dist/templates/plopfiles/__tests__/linting.test.ts +854 -0
- package/dist/templates/plopfiles/__tests__/modules.test.ts +278 -0
- package/dist/templates/plopfiles/__tests__/smoke.test.ts +619 -0
- package/dist/templates/plopfiles/__tests__/templates.test.ts +341 -0
- package/dist/templates/plopfiles/_modules/backends/go-chi/module.js +43 -0
- package/dist/templates/plopfiles/_modules/backends/go-chi/templates/.air.toml.hbs +30 -0
- package/dist/templates/plopfiles/_modules/backends/go-chi/templates/cmd/server/main.go.hbs +50 -0
- package/dist/templates/plopfiles/_modules/backends/go-chi/templates/go.mod.hbs +9 -0
- package/dist/templates/plopfiles/_modules/backends/go-chi/templates/internal/handlers/health.go.hbs +51 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/module.js +38 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/build.gradle.kts.hbs +37 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/settings.gradle.kts.hbs +1 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/kotlin/Application.kt.hbs +44 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/kotlin/routes/Health.kt.hbs +41 -0
- package/dist/templates/plopfiles/_modules/backends/kotlin-ktor/templates/src/main/resources/logback.xml.hbs +11 -0
- package/dist/templates/plopfiles/_modules/backends/node-express/module.js +54 -0
- package/dist/templates/plopfiles/_modules/backends/node-express/templates/src/index.ts.hbs +37 -0
- package/dist/templates/plopfiles/_modules/backends/node-express/templates/src/routes/health.ts.hbs +21 -0
- package/dist/templates/plopfiles/_modules/backends/node-express/templates/tsconfig.json.hbs +18 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/module.js +56 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/index.ts.hbs +30 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/routes/health.ts.hbs +64 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/templates/src/routes/index.ts.hbs +38 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/templates/tsconfig.json.hbs +20 -0
- package/dist/templates/plopfiles/_modules/backends/node-hono/templates/typedoc.json.hbs +25 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/module.js +65 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/__init__.py.hbs +1 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/config.py.hbs +28 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/main.py.hbs +40 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/routers/__init__.py.hbs +1 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/app/routers/health.py.hbs +24 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/pyproject.toml.hbs +40 -0
- package/dist/templates/plopfiles/_modules/backends/python-fastapi/templates/requirements.txt.hbs +6 -0
- package/dist/templates/plopfiles/_modules/backends/rust-axum/module.js +44 -0
- package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/Cargo.toml.hbs +23 -0
- package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/src/health.rs.hbs +41 -0
- package/dist/templates/plopfiles/_modules/backends/rust-axum/templates/src/main.rs.hbs +57 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/module.js +33 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-alb.tf.hbs +92 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-ecs.tf.hbs +84 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-iam.tf.hbs +60 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws-vpc.tf.hbs +106 -0
- package/dist/templates/plopfiles/_modules/cloud/aws/templates/aws.tf.hbs +56 -0
- package/dist/templates/plopfiles/_modules/cloud/azure/module.js +31 -0
- package/dist/templates/plopfiles/_modules/cloud/azure/templates/azure-container-apps.tf.hbs +99 -0
- package/dist/templates/plopfiles/_modules/cloud/azure/templates/azure.tf.hbs +54 -0
- package/dist/templates/plopfiles/_modules/cloud/cloudflare/module.js +43 -0
- package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/src/types.d.ts.hbs +6 -0
- package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/src/worker.ts.hbs +51 -0
- package/dist/templates/plopfiles/_modules/cloud/cloudflare/templates/wrangler.toml.hbs +36 -0
- package/dist/templates/plopfiles/_modules/cloud/gcp/module.js +31 -0
- package/dist/templates/plopfiles/_modules/cloud/gcp/templates/gcp-cloudrun.tf.hbs +89 -0
- package/dist/templates/plopfiles/_modules/cloud/gcp/templates/gcp.tf.hbs +62 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/module.js +51 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/templates/src/lib/supabase.ts.hbs +25 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/templates/src/types/supabase.ts.hbs +52 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/config.toml.hbs +71 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/functions/hello/index.ts.hbs +34 -0
- package/dist/templates/plopfiles/_modules/cloud/supabase/templates/supabase/migrations/00000000000000_init.sql.hbs +60 -0
- package/dist/templates/plopfiles/_modules/composer.js +180 -0
- package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/drizzle.config.ts.hbs +10 -0
- package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/module.js +53 -0
- package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/templates/index.ts.hbs +15 -0
- package/dist/templates/plopfiles/_modules/databases/postgres-drizzle/templates/schema.ts.hbs +21 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/module.js +51 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/templates/forge.config.ts.hbs +38 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/templates/package.json.hbs +22 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/templates/src/main.ts.hbs +48 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/templates/src/preload.ts.hbs +18 -0
- package/dist/templates/plopfiles/_modules/desktop/electron/templates/tsconfig.json.hbs +14 -0
- package/dist/templates/plopfiles/_modules/desktop/tauri/module.js +38 -0
- package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/Cargo.toml.hbs +20 -0
- package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/build.rs.hbs +3 -0
- package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/src/main.rs.hbs +30 -0
- package/dist/templates/plopfiles/_modules/desktop/tauri/templates/src-tauri/tauri.conf.json.hbs +44 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/module.js +61 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/architecture/components.md.hbs +37 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/architecture/overview.md.hbs +43 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/contributing/development.md.hbs +164 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/contributing/guidelines.md.hbs +50 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/configuration.md.hbs +37 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/installation.md.hbs +53 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/getting-started/quickstart.md.hbs +39 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/index.md.hbs +44 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/javascripts/extra.js.hbs +23 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/docs/stylesheets/extra.css.hbs +51 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/mkdocs.yml.hbs +141 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/requirements-docs.txt.hbs +15 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/scripts/aggregate-docs.mjs.hbs +188 -0
- package/dist/templates/plopfiles/_modules/docs/mkdocs/templates/scripts/gen_ref_pages.py.hbs +54 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/module.js +60 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/index.html.hbs +13 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/nginx.conf.hbs +31 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/postcss.config.js.hbs +6 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/App.tsx.hbs +12 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/index.css.hbs +25 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/lib/api.ts.hbs +52 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/main.tsx.hbs +18 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/src/pages/Home.tsx.hbs +31 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tailwind.config.js.hbs +8 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tsconfig.json.hbs +25 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/tsconfig.node.json.hbs +10 -0
- package/dist/templates/plopfiles/_modules/frontends/react-vite/templates/vite.config.ts.hbs +21 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/module.js +51 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/index.html.hbs +13 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/postcss.config.js.hbs +6 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/App.tsx.hbs +12 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/index.css.hbs +3 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/index.tsx.hbs +21 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/lib/api.ts.hbs +52 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/src/pages/Home.tsx.hbs +34 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/tailwind.config.js.hbs +8 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/tsconfig.json.hbs +24 -0
- package/dist/templates/plopfiles/_modules/frontends/solid-vite/templates/vite.config.ts.hbs +21 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/module.js +54 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/index.html.hbs +13 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/postcss.config.js.hbs +6 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/App.vue.hbs +9 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/index.css.hbs +3 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/lib/api.ts.hbs +52 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/main.ts.hbs +14 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/pages/Home.vue.hbs +27 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/src/router.ts.hbs +13 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/tailwind.config.js.hbs +8 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/tsconfig.json.hbs +25 -0
- package/dist/templates/plopfiles/_modules/frontends/vue-vite/templates/vite.config.ts.hbs +21 -0
- package/dist/templates/plopfiles/_modules/infra/docker-compose/module.js +52 -0
- package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/Dockerfile.backend.hbs +32 -0
- package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/Dockerfile.frontend.hbs +31 -0
- package/dist/templates/plopfiles/_modules/infra/docker-compose/templates/docker-compose.yml.hbs +97 -0
- package/dist/templates/plopfiles/_modules/infra/github-actions/module.js +24 -0
- package/dist/templates/plopfiles/_modules/infra/github-actions/templates/.github/workflows/ci.yml.hbs +78 -0
- package/dist/templates/plopfiles/_modules/infra/github-actions/templates/.github/workflows/deploy.yml.hbs +60 -0
- package/dist/templates/plopfiles/_modules/infra/just/module.js +26 -0
- package/dist/templates/plopfiles/_modules/infra/just/templates/justfile.hbs +205 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/module.js +30 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/deployment.yaml.hbs +48 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/ingress.yaml.hbs +23 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/kustomization.yaml.hbs +11 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/base/service.yaml.hbs +15 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/dev/deployment-patch.yaml.hbs +17 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/dev/kustomization.yaml.hbs +15 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/prod/deployment-patch.yaml.hbs +17 -0
- package/dist/templates/plopfiles/_modules/infra/kubernetes/templates/k8s/overlays/prod/kustomization.yaml.hbs +15 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/module.js +30 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/.gitignore.hbs +5 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/Pulumi.dev.yaml.hbs +3 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/Pulumi.yaml.hbs +7 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/index.ts.hbs +26 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/package.json.hbs +12 -0
- package/dist/templates/plopfiles/_modules/infra/pulumi/templates/tsconfig.json.hbs +16 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/module.js +31 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/templates/.gitignore.hbs +12 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/templates/main.tf.hbs +34 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/templates/outputs.tf.hbs +15 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/templates/terraform.tfvars.example.hbs +6 -0
- package/dist/templates/plopfiles/_modules/infra/terraform/templates/variables.tf.hbs +30 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/module.js +38 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/build.gradle.kts.hbs +102 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/proguard-rules.pro.hbs +20 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/AndroidManifest.xml.hbs +25 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ApiClient.kt.hbs +38 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/App.kt.hbs +116 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/MainActivity.kt.hbs +28 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Color.kt.hbs +11 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Theme.kt.hbs +55 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/kotlin/com/example/app/ui/theme/Type.kt.hbs +31 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/res/values/strings.xml.hbs +3 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/app/src/main/res/values/themes.xml.hbs +4 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/build.gradle.kts.hbs +6 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/gradle.properties.hbs +4 -0
- package/dist/templates/plopfiles/_modules/mobile/android-kotlin/templates/settings.gradle.kts.hbs +18 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/module.js +36 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/templates/.env.hbs +1 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/main.dart.hbs +29 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/screens/home_screen.dart.hbs +88 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/templates/lib/services/api_service.dart.hbs +61 -0
- package/dist/templates/plopfiles/_modules/mobile/flutter/templates/pubspec.yaml.hbs +25 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/module.js +39 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/App.swift.hbs +10 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/AccentColor.colorset/Contents.json.hbs +11 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/AppIcon.appiconset/Contents.json.hbs +13 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Assets.xcassets/Contents.json.hbs +6 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/ContentView.swift.hbs +13 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Services/APIClient.swift.hbs +58 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Views/DetailsView.swift.hbs +22 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App/Views/HomeView.swift.hbs +62 -0
- package/dist/templates/plopfiles/_modules/mobile/ios-swift/templates/App.xcodeproj/project.pbxproj.hbs +363 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/module.js +36 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app/_layout.tsx.hbs +16 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app/index.tsx.hbs +66 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/app.json.hbs +37 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/package.json.hbs +29 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/src/lib/api.ts.hbs +52 -0
- package/dist/templates/plopfiles/_modules/mobile/react-native/templates/tsconfig.json.hbs +11 -0
- package/dist/templates/plopfiles/_modules/quality/biome/module.js +44 -0
- package/dist/templates/plopfiles/_modules/quality/biome/templates/biome.json.hbs +126 -0
- package/dist/templates/plopfiles/_modules/quality/clippy/module.js +40 -0
- package/dist/templates/plopfiles/_modules/quality/clippy/templates/clippy.toml.hbs +29 -0
- package/dist/templates/plopfiles/_modules/quality/clippy/templates/rustfmt.toml.hbs +44 -0
- package/dist/templates/plopfiles/_modules/quality/golangci-lint/module.js +40 -0
- package/dist/templates/plopfiles/_modules/quality/golangci-lint/templates/.golangci.yml.hbs +199 -0
- package/dist/templates/plopfiles/_modules/quality/ruff/module.js +43 -0
- package/dist/templates/plopfiles/_modules/quality/ruff/templates/mypy.ini.hbs +48 -0
- package/dist/templates/plopfiles/_modules/quality/ruff/templates/ruff.toml.hbs +111 -0
- package/dist/templates/plopfiles/_modules/storybook/react-storybook/module.js +54 -0
- package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/.storybook/main.ts.hbs +44 -0
- package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/.storybook/preview.ts.hbs +68 -0
- package/dist/templates/plopfiles/_modules/storybook/react-storybook/templates/src/stories/Button.stories.tsx.hbs +158 -0
- package/dist/templates/plopfiles/_modules/types.ts +98 -0
- package/dist/templates/plopfiles/full-stack/plopfile.js +132 -0
- package/dist/templates/plopfiles/full-stack/templates/gitignore.hbs +44 -0
- package/dist/templates/plopfiles/full-stack/templates/package.json.hbs +21 -0
- package/dist/templates/plopfiles/presets/cli-go/module.js +43 -0
- package/dist/templates/plopfiles/presets/cli-go/templates/README.md.hbs +42 -0
- package/dist/templates/plopfiles/presets/cli-go/templates/config.json.hbs +9 -0
- package/dist/templates/plopfiles/presets/cli-node/module.js +45 -0
- package/dist/templates/plopfiles/presets/cli-node/templates/README.md.hbs +42 -0
- package/dist/templates/plopfiles/presets/cli-node/templates/config.json.hbs +9 -0
- package/dist/templates/plopfiles/presets/cli-python/module.js +43 -0
- package/dist/templates/plopfiles/presets/cli-python/templates/README.md.hbs +42 -0
- package/dist/templates/plopfiles/presets/cli-python/templates/config.json.hbs +9 -0
- package/dist/templates/plopfiles/presets/cli-rust/module.js +43 -0
- package/dist/templates/plopfiles/presets/cli-rust/templates/README.md.hbs +42 -0
- package/dist/templates/plopfiles/presets/cli-rust/templates/config.json.hbs +9 -0
- package/dist/templates/plopfiles/presets/loader.js +125 -0
- package/dist/templates/plopfiles/typescript-service/plopfile.js +186 -0
- package/dist/templates/plopfiles/typescript-service/templates/Dockerfile.hbs +29 -0
- package/dist/templates/plopfiles/typescript-service/templates/README.md.hbs +85 -0
- package/dist/templates/plopfiles/typescript-service/templates/config.ts.hbs +15 -0
- package/dist/templates/plopfiles/typescript-service/templates/db/index.ts.hbs +19 -0
- package/dist/templates/plopfiles/typescript-service/templates/db/schema.ts.hbs +16 -0
- package/dist/templates/plopfiles/typescript-service/templates/index.ts.hbs +89 -0
- package/dist/templates/plopfiles/typescript-service/templates/package.json.hbs +36 -0
- package/dist/templates/plopfiles/typescript-service/templates/routes/health.ts.hbs +61 -0
- package/dist/templates/plopfiles/typescript-service/templates/routes/index.ts.hbs +35 -0
- package/dist/templates/plopfiles/typescript-service/templates/tsconfig.json.hbs +24 -0
- package/dist/templates/plopfiles/typescript-service/templates/types.ts.hbs +28 -0
- package/dist/templates/typescript/component.module.css.tpl +6 -0
- package/dist/templates/typescript/component.test.tsx.tpl +9 -0
- package/dist/templates/typescript/component.tsx.tpl +17 -0
- package/dist/templates/typescript/component.types.ts.tpl +3 -0
- package/dist/templates/typescript/project/nextjs/app/globals.css.tpl +10 -0
- package/dist/templates/typescript/project/nextjs/app/layout.tsx.tpl +15 -0
- package/dist/templates/typescript/project/nextjs/app/page.tsx.tpl +8 -0
- package/dist/templates/typescript/project/nextjs/babel.config.js.tpl +8 -0
- package/dist/templates/typescript/project/nextjs/jest.config.js.tpl +10 -0
- package/dist/templates/typescript/project/nextjs/jest.setup.ts.tpl +6 -0
- package/dist/templates/typescript/project/nextjs/next-env.d.ts.tpl +5 -0
- package/dist/templates/typescript/project/nextjs/next.config.js.tpl +9 -0
- package/dist/templates/typescript/project/nextjs/package.json.tpl +1 -0
- package/dist/templates/typescript/project/nextjs/tsconfig.json.tpl +1 -0
- package/dist/templates/typescript/project/vite/App.css.tpl +8 -0
- package/dist/templates/typescript/project/vite/App.tsx.tpl +17 -0
- package/dist/templates/typescript/project/vite/index.css.tpl +8 -0
- package/dist/templates/typescript/project/vite/index.html.tpl +13 -0
- package/dist/templates/typescript/project/vite/main.tsx.tpl +10 -0
- package/dist/templates/typescript/project/vite/package.json.tpl +1 -0
- package/dist/templates/typescript/project/vite/test-setup.ts.tpl +1 -0
- package/dist/templates/typescript/project/vite/tsconfig.build.json.tpl +1 -0
- package/dist/templates/typescript/project/vite/tsconfig.json.tpl +1 -0
- package/dist/templates/typescript/project/vite/tsconfig.node.json.tpl +1 -0
- package/dist/templates/typescript/project/vite/vite.config.ts.tpl +18 -0
- package/dist/templates/typescript/service.api.ts.tpl +27 -0
- package/dist/templates/typescript/service.class.ts.tpl +28 -0
- package/dist/templates/typescript/service.handler.ts.tpl +42 -0
- package/dist/templates/typescript/service.schema.ts.tpl +16 -0
- package/package.json +95 -0
- package/templates/typescript/component.module.css.tpl +6 -0
- package/templates/typescript/component.test.tsx.tpl +9 -0
- package/templates/typescript/component.tsx.tpl +17 -0
- package/templates/typescript/component.types.ts.tpl +3 -0
- package/templates/typescript/project/nextjs/app/globals.css.tpl +10 -0
- package/templates/typescript/project/nextjs/app/layout.tsx.tpl +15 -0
- package/templates/typescript/project/nextjs/app/page.tsx.tpl +8 -0
- package/templates/typescript/project/nextjs/babel.config.js.tpl +8 -0
- package/templates/typescript/project/nextjs/jest.config.js.tpl +10 -0
- package/templates/typescript/project/nextjs/jest.setup.ts.tpl +6 -0
- package/templates/typescript/project/nextjs/next-env.d.ts.tpl +5 -0
- package/templates/typescript/project/nextjs/next.config.js.tpl +9 -0
- package/templates/typescript/project/nextjs/package.json.tpl +1 -0
- package/templates/typescript/project/nextjs/tsconfig.json.tpl +1 -0
- package/templates/typescript/project/vite/App.css.tpl +8 -0
- package/templates/typescript/project/vite/App.tsx.tpl +17 -0
- package/templates/typescript/project/vite/index.css.tpl +8 -0
- package/templates/typescript/project/vite/index.html.tpl +13 -0
- package/templates/typescript/project/vite/main.tsx.tpl +10 -0
- package/templates/typescript/project/vite/package.json.tpl +1 -0
- package/templates/typescript/project/vite/test-setup.ts.tpl +1 -0
- package/templates/typescript/project/vite/tsconfig.build.json.tpl +1 -0
- package/templates/typescript/project/vite/tsconfig.json.tpl +1 -0
- package/templates/typescript/project/vite/tsconfig.node.json.tpl +1 -0
- package/templates/typescript/project/vite/vite.config.ts.tpl +18 -0
- package/templates/typescript/service.api.ts.tpl +27 -0
- package/templates/typescript/service.class.ts.tpl +28 -0
- package/templates/typescript/service.handler.ts.tpl +42 -0
- package/templates/typescript/service.schema.ts.tpl +16 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 56;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
1A0000010000000000000001 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A0000020000000000000001 /* App.swift */; };
|
|
11
|
+
1A0000030000000000000001 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A0000040000000000000001 /* ContentView.swift */; };
|
|
12
|
+
1A0000050000000000000001 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1A0000060000000000000001 /* Assets.xcassets */; };
|
|
13
|
+
1A0000070000000000000001 /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A0000080000000000000001 /* HomeView.swift */; };
|
|
14
|
+
1A0000090000000000000001 /* DetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A0000100000000000000001 /* DetailsView.swift */; };
|
|
15
|
+
1A0000110000000000000001 /* APIClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A0000120000000000000001 /* APIClient.swift */; };
|
|
16
|
+
/* End PBXBuildFile section */
|
|
17
|
+
|
|
18
|
+
/* Begin PBXFileReference section */
|
|
19
|
+
1A0000020000000000000001 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
|
|
20
|
+
1A0000040000000000000001 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
|
|
21
|
+
1A0000060000000000000001 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
22
|
+
1A0000080000000000000001 /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
|
|
23
|
+
1A0000100000000000000001 /* DetailsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsView.swift; sourceTree = "<group>"; };
|
|
24
|
+
1A0000120000000000000001 /* APIClient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIClient.swift; sourceTree = "<group>"; };
|
|
25
|
+
1A0000130000000000000001 /* {{pascalCase name}}.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "{{pascalCase name}}.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
26
|
+
/* End PBXFileReference section */
|
|
27
|
+
|
|
28
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
29
|
+
1A0000140000000000000001 /* Frameworks */ = {
|
|
30
|
+
isa = PBXFrameworksBuildPhase;
|
|
31
|
+
buildActionMask = 2147483647;
|
|
32
|
+
files = (
|
|
33
|
+
);
|
|
34
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
35
|
+
};
|
|
36
|
+
/* End PBXFrameworksBuildPhase section */
|
|
37
|
+
|
|
38
|
+
/* Begin PBXGroup section */
|
|
39
|
+
1A0000150000000000000001 = {
|
|
40
|
+
isa = PBXGroup;
|
|
41
|
+
children = (
|
|
42
|
+
1A0000160000000000000001 /* App */,
|
|
43
|
+
1A0000170000000000000001 /* Products */,
|
|
44
|
+
);
|
|
45
|
+
sourceTree = "<group>";
|
|
46
|
+
};
|
|
47
|
+
1A0000160000000000000001 /* App */ = {
|
|
48
|
+
isa = PBXGroup;
|
|
49
|
+
children = (
|
|
50
|
+
1A0000020000000000000001 /* App.swift */,
|
|
51
|
+
1A0000040000000000000001 /* ContentView.swift */,
|
|
52
|
+
1A0000180000000000000001 /* Views */,
|
|
53
|
+
1A0000190000000000000001 /* Services */,
|
|
54
|
+
1A0000060000000000000001 /* Assets.xcassets */,
|
|
55
|
+
);
|
|
56
|
+
path = App;
|
|
57
|
+
sourceTree = "<group>";
|
|
58
|
+
};
|
|
59
|
+
1A0000170000000000000001 /* Products */ = {
|
|
60
|
+
isa = PBXGroup;
|
|
61
|
+
children = (
|
|
62
|
+
1A0000130000000000000001 /* {{pascalCase name}}.app */,
|
|
63
|
+
);
|
|
64
|
+
name = Products;
|
|
65
|
+
sourceTree = "<group>";
|
|
66
|
+
};
|
|
67
|
+
1A0000180000000000000001 /* Views */ = {
|
|
68
|
+
isa = PBXGroup;
|
|
69
|
+
children = (
|
|
70
|
+
1A0000080000000000000001 /* HomeView.swift */,
|
|
71
|
+
1A0000100000000000000001 /* DetailsView.swift */,
|
|
72
|
+
);
|
|
73
|
+
path = Views;
|
|
74
|
+
sourceTree = "<group>";
|
|
75
|
+
};
|
|
76
|
+
1A0000190000000000000001 /* Services */ = {
|
|
77
|
+
isa = PBXGroup;
|
|
78
|
+
children = (
|
|
79
|
+
1A0000120000000000000001 /* APIClient.swift */,
|
|
80
|
+
);
|
|
81
|
+
path = Services;
|
|
82
|
+
sourceTree = "<group>";
|
|
83
|
+
};
|
|
84
|
+
/* End PBXGroup section */
|
|
85
|
+
|
|
86
|
+
/* Begin PBXNativeTarget section */
|
|
87
|
+
1A0000200000000000000001 /* {{pascalCase name}} */ = {
|
|
88
|
+
isa = PBXNativeTarget;
|
|
89
|
+
buildConfigurationList = 1A0000210000000000000001 /* Build configuration list for PBXNativeTarget "{{pascalCase name}}" */;
|
|
90
|
+
buildPhases = (
|
|
91
|
+
1A0000220000000000000001 /* Sources */,
|
|
92
|
+
1A0000140000000000000001 /* Frameworks */,
|
|
93
|
+
1A0000230000000000000001 /* Resources */,
|
|
94
|
+
);
|
|
95
|
+
buildRules = (
|
|
96
|
+
);
|
|
97
|
+
dependencies = (
|
|
98
|
+
);
|
|
99
|
+
name = "{{pascalCase name}}";
|
|
100
|
+
productName = "{{pascalCase name}}";
|
|
101
|
+
productReference = 1A0000130000000000000001 /* {{pascalCase name}}.app */;
|
|
102
|
+
productType = "com.apple.product-type.application";
|
|
103
|
+
};
|
|
104
|
+
/* End PBXNativeTarget section */
|
|
105
|
+
|
|
106
|
+
/* Begin PBXProject section */
|
|
107
|
+
1A0000240000000000000001 /* Project object */ = {
|
|
108
|
+
isa = PBXProject;
|
|
109
|
+
attributes = {
|
|
110
|
+
BuildIndependentTargetsInParallel = 1;
|
|
111
|
+
LastSwiftUpdateCheck = 1520;
|
|
112
|
+
LastUpgradeCheck = 1520;
|
|
113
|
+
TargetAttributes = {
|
|
114
|
+
1A0000200000000000000001 = {
|
|
115
|
+
CreatedOnToolsVersion = 15.2;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
buildConfigurationList = 1A0000250000000000000001 /* Build configuration list for PBXProject "{{pascalCase name}}" */;
|
|
120
|
+
compatibilityVersion = "Xcode 14.0";
|
|
121
|
+
developmentRegion = en;
|
|
122
|
+
hasScannedForEncodings = 0;
|
|
123
|
+
knownRegions = (
|
|
124
|
+
en,
|
|
125
|
+
Base,
|
|
126
|
+
);
|
|
127
|
+
mainGroup = 1A0000150000000000000001;
|
|
128
|
+
productRefGroup = 1A0000170000000000000001 /* Products */;
|
|
129
|
+
projectDirPath = "";
|
|
130
|
+
projectRoot = "";
|
|
131
|
+
targets = (
|
|
132
|
+
1A0000200000000000000001 /* {{pascalCase name}} */,
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
/* End PBXProject section */
|
|
136
|
+
|
|
137
|
+
/* Begin PBXResourcesBuildPhase section */
|
|
138
|
+
1A0000230000000000000001 /* Resources */ = {
|
|
139
|
+
isa = PBXResourcesBuildPhase;
|
|
140
|
+
buildActionMask = 2147483647;
|
|
141
|
+
files = (
|
|
142
|
+
1A0000050000000000000001 /* Assets.xcassets in Resources */,
|
|
143
|
+
);
|
|
144
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
145
|
+
};
|
|
146
|
+
/* End PBXResourcesBuildPhase section */
|
|
147
|
+
|
|
148
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
149
|
+
1A0000220000000000000001 /* Sources */ = {
|
|
150
|
+
isa = PBXSourcesBuildPhase;
|
|
151
|
+
buildActionMask = 2147483647;
|
|
152
|
+
files = (
|
|
153
|
+
1A0000010000000000000001 /* App.swift in Sources */,
|
|
154
|
+
1A0000030000000000000001 /* ContentView.swift in Sources */,
|
|
155
|
+
1A0000070000000000000001 /* HomeView.swift in Sources */,
|
|
156
|
+
1A0000090000000000000001 /* DetailsView.swift in Sources */,
|
|
157
|
+
1A0000110000000000000001 /* APIClient.swift in Sources */,
|
|
158
|
+
);
|
|
159
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
160
|
+
};
|
|
161
|
+
/* End PBXSourcesBuildPhase section */
|
|
162
|
+
|
|
163
|
+
/* Begin XCBuildConfiguration section */
|
|
164
|
+
1A0000260000000000000001 /* Debug */ = {
|
|
165
|
+
isa = XCBuildConfiguration;
|
|
166
|
+
buildSettings = {
|
|
167
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
168
|
+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
169
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
170
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
171
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
|
172
|
+
CLANG_ENABLE_MODULES = YES;
|
|
173
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
174
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
175
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
176
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
177
|
+
CLANG_WARN_COMMA = YES;
|
|
178
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
179
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
180
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
181
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
182
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
183
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
184
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
185
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
186
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
187
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
188
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
189
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
190
|
+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
191
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
192
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
193
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
194
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
195
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
196
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
197
|
+
COPY_PHASE_STRIP = NO;
|
|
198
|
+
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
199
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
200
|
+
ENABLE_TESTABILITY = YES;
|
|
201
|
+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
202
|
+
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
203
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
204
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
205
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
206
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
207
|
+
"DEBUG=1",
|
|
208
|
+
"$(inherited)",
|
|
209
|
+
);
|
|
210
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
211
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
212
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
213
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
214
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
215
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
216
|
+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
217
|
+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
218
|
+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
219
|
+
MTL_FAST_MATH = YES;
|
|
220
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
221
|
+
SDKROOT = iphoneos;
|
|
222
|
+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
|
223
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
224
|
+
};
|
|
225
|
+
name = Debug;
|
|
226
|
+
};
|
|
227
|
+
1A0000270000000000000001 /* Release */ = {
|
|
228
|
+
isa = XCBuildConfiguration;
|
|
229
|
+
buildSettings = {
|
|
230
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
231
|
+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
232
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
233
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
234
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
|
235
|
+
CLANG_ENABLE_MODULES = YES;
|
|
236
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
237
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
238
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
239
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
240
|
+
CLANG_WARN_COMMA = YES;
|
|
241
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
242
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
243
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
244
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
245
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
246
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
247
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
248
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
249
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
250
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
251
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
252
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
253
|
+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
254
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
255
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
256
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
257
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
258
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
259
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
260
|
+
COPY_PHASE_STRIP = NO;
|
|
261
|
+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
262
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
263
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
264
|
+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
265
|
+
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
266
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
267
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
268
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
269
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
270
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
271
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
272
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
273
|
+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
274
|
+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
275
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
276
|
+
MTL_FAST_MATH = YES;
|
|
277
|
+
SDKROOT = iphoneos;
|
|
278
|
+
SWIFT_COMPILATION_MODE = wholemodule;
|
|
279
|
+
VALIDATE_PRODUCT = YES;
|
|
280
|
+
};
|
|
281
|
+
name = Release;
|
|
282
|
+
};
|
|
283
|
+
1A0000280000000000000001 /* Debug */ = {
|
|
284
|
+
isa = XCBuildConfiguration;
|
|
285
|
+
buildSettings = {
|
|
286
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
287
|
+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
288
|
+
CODE_SIGN_STYLE = Automatic;
|
|
289
|
+
CURRENT_PROJECT_VERSION = 1;
|
|
290
|
+
DEVELOPMENT_TEAM = "";
|
|
291
|
+
ENABLE_PREVIEWS = YES;
|
|
292
|
+
GENERATE_INFOPLIST_FILE = YES;
|
|
293
|
+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
294
|
+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
295
|
+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
296
|
+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
297
|
+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
298
|
+
LD_RUNPATH_SEARCH_PATHS = (
|
|
299
|
+
"$(inherited)",
|
|
300
|
+
"@executable_path/Frameworks",
|
|
301
|
+
);
|
|
302
|
+
MARKETING_VERSION = 1.0;
|
|
303
|
+
PRODUCT_BUNDLE_IDENTIFIER = "{{bundleId}}";
|
|
304
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
305
|
+
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
306
|
+
SWIFT_VERSION = 5.0;
|
|
307
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
308
|
+
};
|
|
309
|
+
name = Debug;
|
|
310
|
+
};
|
|
311
|
+
1A0000290000000000000001 /* Release */ = {
|
|
312
|
+
isa = XCBuildConfiguration;
|
|
313
|
+
buildSettings = {
|
|
314
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
315
|
+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
316
|
+
CODE_SIGN_STYLE = Automatic;
|
|
317
|
+
CURRENT_PROJECT_VERSION = 1;
|
|
318
|
+
DEVELOPMENT_TEAM = "";
|
|
319
|
+
ENABLE_PREVIEWS = YES;
|
|
320
|
+
GENERATE_INFOPLIST_FILE = YES;
|
|
321
|
+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
322
|
+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
323
|
+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
324
|
+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
325
|
+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
326
|
+
LD_RUNPATH_SEARCH_PATHS = (
|
|
327
|
+
"$(inherited)",
|
|
328
|
+
"@executable_path/Frameworks",
|
|
329
|
+
);
|
|
330
|
+
MARKETING_VERSION = 1.0;
|
|
331
|
+
PRODUCT_BUNDLE_IDENTIFIER = "{{bundleId}}";
|
|
332
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
333
|
+
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
334
|
+
SWIFT_VERSION = 5.0;
|
|
335
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
336
|
+
};
|
|
337
|
+
name = Release;
|
|
338
|
+
};
|
|
339
|
+
/* End XCBuildConfiguration section */
|
|
340
|
+
|
|
341
|
+
/* Begin XCConfigurationList section */
|
|
342
|
+
1A0000210000000000000001 /* Build configuration list for PBXNativeTarget "{{pascalCase name}}" */ = {
|
|
343
|
+
isa = XCConfigurationList;
|
|
344
|
+
buildConfigurations = (
|
|
345
|
+
1A0000280000000000000001 /* Debug */,
|
|
346
|
+
1A0000290000000000000001 /* Release */,
|
|
347
|
+
);
|
|
348
|
+
defaultConfigurationIsVisible = 0;
|
|
349
|
+
defaultConfigurationName = Release;
|
|
350
|
+
};
|
|
351
|
+
1A0000250000000000000001 /* Build configuration list for PBXProject "{{pascalCase name}}" */ = {
|
|
352
|
+
isa = XCConfigurationList;
|
|
353
|
+
buildConfigurations = (
|
|
354
|
+
1A0000260000000000000001 /* Debug */,
|
|
355
|
+
1A0000270000000000000001 /* Release */,
|
|
356
|
+
);
|
|
357
|
+
defaultConfigurationIsVisible = 0;
|
|
358
|
+
defaultConfigurationName = Release;
|
|
359
|
+
};
|
|
360
|
+
/* End XCConfigurationList section */
|
|
361
|
+
};
|
|
362
|
+
rootObject = 1A0000240000000000000001 /* Project object */;
|
|
363
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native Mobile 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 mobileDir = data.mobileDir || "mobile";
|
|
13
|
+
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
type: "addMany",
|
|
17
|
+
destination: `{{projectDir}}/${mobileDir}`,
|
|
18
|
+
base: templatesDir,
|
|
19
|
+
templateFiles: `${templatesDir}/**/*.hbs`,
|
|
20
|
+
stripExtensions: ["hbs"],
|
|
21
|
+
data,
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const description = "React Native mobile app with Expo and TypeScript";
|
|
27
|
+
|
|
28
|
+
export const scripts = {
|
|
29
|
+
"dev:mobile": "cd mobile && npx expo start",
|
|
30
|
+
"build:mobile:ios": "cd mobile && npx eas build --platform ios",
|
|
31
|
+
"build:mobile:android": "cd mobile && npx eas build --platform android",
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const envVars = {
|
|
35
|
+
EXPO_PUBLIC_API_URL: "http://localhost:3000",
|
|
36
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Stack } from "expo-router";
|
|
2
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
3
|
+
import { StatusBar } from "expo-status-bar";
|
|
4
|
+
|
|
5
|
+
const queryClient = new QueryClient();
|
|
6
|
+
|
|
7
|
+
export default function RootLayout() {
|
|
8
|
+
return (
|
|
9
|
+
<QueryClientProvider client={queryClient}>
|
|
10
|
+
<Stack>
|
|
11
|
+
<Stack.Screen name="index" options=\{{ title: "{{titleCase name}}" }} />
|
|
12
|
+
</Stack>
|
|
13
|
+
<StatusBar style="auto" />
|
|
14
|
+
</QueryClientProvider>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, ActivityIndicator } from "react-native";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { api } from "../src/lib/api";
|
|
4
|
+
|
|
5
|
+
export default function HomeScreen() {
|
|
6
|
+
const { data: health, isLoading, error } = useQuery({
|
|
7
|
+
queryKey: ["health"],
|
|
8
|
+
queryFn: () => api.get("/health"),
|
|
9
|
+
retry: false,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<View style={styles.container}>
|
|
14
|
+
<Text style={styles.title}>{{titleCase name}}</Text>
|
|
15
|
+
|
|
16
|
+
<View style={styles.card}>
|
|
17
|
+
<Text style={styles.cardTitle}>API Status</Text>
|
|
18
|
+
{isLoading && <ActivityIndicator />}
|
|
19
|
+
{error && (
|
|
20
|
+
<Text style={styles.error}>
|
|
21
|
+
API not reachable. Make sure the backend is running.
|
|
22
|
+
</Text>
|
|
23
|
+
)}
|
|
24
|
+
{health && (
|
|
25
|
+
<Text style={styles.success}>
|
|
26
|
+
API is healthy: {JSON.stringify(health)}
|
|
27
|
+
</Text>
|
|
28
|
+
)}
|
|
29
|
+
</View>
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
flex: 1,
|
|
37
|
+
padding: 16,
|
|
38
|
+
backgroundColor: "#f5f5f5",
|
|
39
|
+
},
|
|
40
|
+
title: {
|
|
41
|
+
fontSize: 32,
|
|
42
|
+
fontWeight: "bold",
|
|
43
|
+
marginBottom: 24,
|
|
44
|
+
},
|
|
45
|
+
card: {
|
|
46
|
+
backgroundColor: "#fff",
|
|
47
|
+
borderRadius: 8,
|
|
48
|
+
padding: 16,
|
|
49
|
+
shadowColor: "#000",
|
|
50
|
+
shadowOffset: { width: 0, height: 2 },
|
|
51
|
+
shadowOpacity: 0.1,
|
|
52
|
+
shadowRadius: 4,
|
|
53
|
+
elevation: 3,
|
|
54
|
+
},
|
|
55
|
+
cardTitle: {
|
|
56
|
+
fontSize: 18,
|
|
57
|
+
fontWeight: "600",
|
|
58
|
+
marginBottom: 12,
|
|
59
|
+
},
|
|
60
|
+
error: {
|
|
61
|
+
color: "#ef4444",
|
|
62
|
+
},
|
|
63
|
+
success: {
|
|
64
|
+
color: "#22c55e",
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"expo": {
|
|
3
|
+
"name": "{{titleCase name}}",
|
|
4
|
+
"slug": "{{kebabCase name}}",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"orientation": "portrait",
|
|
7
|
+
"icon": "./assets/icon.png",
|
|
8
|
+
"scheme": "{{kebabCase name}}",
|
|
9
|
+
"userInterfaceStyle": "automatic",
|
|
10
|
+
"splash": {
|
|
11
|
+
"image": "./assets/splash.png",
|
|
12
|
+
"resizeMode": "contain",
|
|
13
|
+
"backgroundColor": "#ffffff"
|
|
14
|
+
},
|
|
15
|
+
"assetBundlePatterns": ["**/*"],
|
|
16
|
+
"ios": {
|
|
17
|
+
"supportsTablet": true,
|
|
18
|
+
"bundleIdentifier": "com.{{snakeCase name}}.app"
|
|
19
|
+
},
|
|
20
|
+
"android": {
|
|
21
|
+
"adaptiveIcon": {
|
|
22
|
+
"foregroundImage": "./assets/adaptive-icon.png",
|
|
23
|
+
"backgroundColor": "#ffffff"
|
|
24
|
+
},
|
|
25
|
+
"package": "com.{{snakeCase name}}.app"
|
|
26
|
+
},
|
|
27
|
+
"web": {
|
|
28
|
+
"bundler": "metro",
|
|
29
|
+
"output": "static",
|
|
30
|
+
"favicon": "./assets/favicon.png"
|
|
31
|
+
},
|
|
32
|
+
"plugins": ["expo-router"],
|
|
33
|
+
"experiments": {
|
|
34
|
+
"typedRoutes": true
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{kebabCase name}}-mobile",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "expo-router/entry",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "expo start",
|
|
7
|
+
"android": "expo start --android",
|
|
8
|
+
"ios": "expo start --ios",
|
|
9
|
+
"web": "expo start --web"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"expo": "~50.0.0",
|
|
13
|
+
"expo-router": "~3.4.0",
|
|
14
|
+
"expo-status-bar": "~1.11.0",
|
|
15
|
+
"react": "18.2.0",
|
|
16
|
+
"react-native": "0.73.2",
|
|
17
|
+
"react-native-safe-area-context": "4.8.2",
|
|
18
|
+
"react-native-screens": "~3.29.0",
|
|
19
|
+
"@tanstack/react-query": "^5.0.0",
|
|
20
|
+
"nativewind": "^2.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@babel/core": "^7.20.0",
|
|
24
|
+
"@types/react": "~18.2.0",
|
|
25
|
+
"tailwindcss": "^3.3.0",
|
|
26
|
+
"typescript": "^5.1.0"
|
|
27
|
+
},
|
|
28
|
+
"private": true
|
|
29
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const API_URL = process.env.EXPO_PUBLIC_API_URL || "http://localhost:3000";
|
|
2
|
+
|
|
3
|
+
class ApiClient {
|
|
4
|
+
private baseUrl: string;
|
|
5
|
+
|
|
6
|
+
constructor(baseUrl: string) {
|
|
7
|
+
this.baseUrl = baseUrl;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
private async request<T>(path: string, options: RequestInit = {}): Promise<T> {
|
|
11
|
+
const url = `${this.baseUrl}${path}`;
|
|
12
|
+
const response = await fetch(url, {
|
|
13
|
+
...options,
|
|
14
|
+
headers: {
|
|
15
|
+
"Content-Type": "application/json",
|
|
16
|
+
...options.headers,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
if (!response.ok) {
|
|
21
|
+
throw new Error(`API error: ${response.status} ${response.statusText}`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return response.json();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
get<T>(path: string, options?: RequestInit): Promise<T> {
|
|
28
|
+
return this.request<T>(path, { ...options, method: "GET" });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
post<T>(path: string, data?: unknown, options?: RequestInit): Promise<T> {
|
|
32
|
+
return this.request<T>(path, {
|
|
33
|
+
...options,
|
|
34
|
+
method: "POST",
|
|
35
|
+
body: data ? JSON.stringify(data) : undefined,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
put<T>(path: string, data?: unknown, options?: RequestInit): Promise<T> {
|
|
40
|
+
return this.request<T>(path, {
|
|
41
|
+
...options,
|
|
42
|
+
method: "PUT",
|
|
43
|
+
body: data ? JSON.stringify(data) : undefined,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
delete<T>(path: string, options?: RequestInit): Promise<T> {
|
|
48
|
+
return this.request<T>(path, { ...options, method: "DELETE" });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const api = new ApiClient(API_URL);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Biome Linting & Formatting Module
|
|
3
|
+
*
|
|
4
|
+
* Sets up Biome for JavaScript/TypeScript projects.
|
|
5
|
+
* Biome is a fast, modern alternative to ESLint + Prettier.
|
|
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
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "addMany",
|
|
18
|
+
destination: `{{projectDir}}`,
|
|
19
|
+
base: templatesDir,
|
|
20
|
+
templateFiles: `${templatesDir}/**/*.hbs`,
|
|
21
|
+
stripExtensions: ["hbs"],
|
|
22
|
+
data,
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const description = "Biome - Fast linter and formatter for JavaScript/TypeScript";
|
|
28
|
+
|
|
29
|
+
export const dependencies = {};
|
|
30
|
+
|
|
31
|
+
export const devDependencies = {
|
|
32
|
+
"@biomejs/biome": "^1.9.0",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const scripts = {
|
|
36
|
+
lint: "biome lint .",
|
|
37
|
+
"lint:fix": "biome lint --write .",
|
|
38
|
+
format: "biome format --write .",
|
|
39
|
+
"format:check": "biome format .",
|
|
40
|
+
check: "biome check .",
|
|
41
|
+
"check:fix": "biome check --write .",
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const envVars = {};
|