create-svc 0.1.23 → 0.1.25
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/package.json +3 -1
- package/src/post-scaffold.test.ts +10 -10
- package/src/post-scaffold.ts +4 -9
- package/src/scaffold.test.ts +46 -101
- package/src/scaffold.ts +10 -3
- package/{templates/shared/scripts → src/service-runtime}/authctl.ts +3 -3
- package/{templates/shared/scripts → src/service-runtime}/cloudrun/cleanup.ts +1 -1
- package/{templates/shared/scripts → src/service-runtime}/cloudrun/cli.ts +1 -1
- package/src/service-runtime/cloudrun/config.ts +55 -0
- package/src/service-runtime/runtime.ts +8 -0
- package/{templates/targets/workers/scripts → src/service-runtime}/workers/cli.ts +7 -6
- package/src/service.test.ts +0 -2
- package/src/service.ts +13 -19
- package/templates/shared/README.md +1 -1
- package/templates/shared/service.config.ts +31 -0
- package/templates/targets/workers/Makefile +1 -1
- package/templates/targets/workers/package.json +8 -11
- package/templates/variants/bun-connectrpc/Makefile +1 -1
- package/templates/variants/bun-connectrpc/package.json +7 -10
- package/templates/variants/bun-hono/Makefile +1 -1
- package/templates/variants/bun-hono/package.json +7 -10
- package/templates/variants/go-chi/Dockerfile +1 -1
- package/templates/variants/go-chi/Makefile +1 -1
- package/templates/variants/go-chi/go.mod +30 -1
- package/templates/variants/go-chi/go.sum +146 -0
- package/templates/variants/go-chi/package.json +7 -10
- package/templates/variants/go-connectrpc/Dockerfile +1 -1
- package/templates/variants/go-connectrpc/Makefile +1 -1
- package/templates/variants/go-connectrpc/go.mod +30 -2
- package/templates/variants/go-connectrpc/go.sum +150 -0
- package/templates/variants/go-connectrpc/package.json +7 -10
- package/templates/shared/scripts/cloudrun/config.ts +0 -62
- /package/{templates/shared/scripts → src/service-runtime}/cloudrun/bootstrap.ts +0 -0
- /package/{templates/shared/scripts → src/service-runtime}/cloudrun/deploy.ts +0 -0
- /package/{templates/shared/scripts → src/service-runtime}/cloudrun/lib.ts +0 -0
- /package/{templates/shared/scripts → src/service-runtime}/cloudrun/neon.ts +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export const config = {
|
|
2
|
-
serviceName: "{{SERVICE_NAME}}",
|
|
3
|
-
profile: "{{PROFILE}}",
|
|
4
|
-
example: {
|
|
5
|
-
kind: "{{EXAMPLE_KIND}}",
|
|
6
|
-
domain: "{{EXAMPLE_DOMAIN}}",
|
|
7
|
-
label: "{{EXAMPLE_LABEL}}",
|
|
8
|
-
},
|
|
9
|
-
runtime: "{{RUNTIME}}",
|
|
10
|
-
framework: "{{FRAMEWORK}}",
|
|
11
|
-
region: "{{REGION}}",
|
|
12
|
-
artifactRepository: "cloud-run",
|
|
13
|
-
runtimeServiceAccount: "{{RUNTIME_SERVICE_ACCOUNT}}",
|
|
14
|
-
project: {
|
|
15
|
-
mode: "{{GCP_PROJECT_MODE}}",
|
|
16
|
-
id: "{{PROJECT_ID}}",
|
|
17
|
-
name: "{{PROJECT_NAME}}",
|
|
18
|
-
createIfMissing: {{PROJECT_CREATE_IF_MISSING}},
|
|
19
|
-
billingAccount: "{{BILLING_ACCOUNT}}",
|
|
20
|
-
quotaProjectId: "{{QUOTA_PROJECT_ID}}",
|
|
21
|
-
},
|
|
22
|
-
domain: {
|
|
23
|
-
hostname: "{{API_HOSTNAME}}",
|
|
24
|
-
baseDomain: "{{API_BASE_DOMAIN}}",
|
|
25
|
-
cloudflareApiBaseUrl: "https://api.cloudflare.com/client/v4",
|
|
26
|
-
cloudflareVaultPath: "prod/providers/cloudflare",
|
|
27
|
-
cloudflareVaultField: "api_token",
|
|
28
|
-
},
|
|
29
|
-
auth: {
|
|
30
|
-
issuer: "https://auth.anmho.com/api/auth",
|
|
31
|
-
audience: "api://{{SERVICE_ID}}",
|
|
32
|
-
jwksUrl: "https://auth.anmho.com/api/auth/jwks",
|
|
33
|
-
},
|
|
34
|
-
temporal: {
|
|
35
|
-
enabled: false,
|
|
36
|
-
address: "localhost:7233",
|
|
37
|
-
namespace: "default",
|
|
38
|
-
taskQueue: "{{SERVICE_ID}}",
|
|
39
|
-
apiKeySecretName: "{{SERVICE_ID}}-temporal-api-key",
|
|
40
|
-
},
|
|
41
|
-
neon: {
|
|
42
|
-
projectId: "{{NEON_PROJECT_ID}}",
|
|
43
|
-
baseBranchId: "{{NEON_BASE_BRANCH_ID}}",
|
|
44
|
-
baseBranchName: "{{NEON_BASE_BRANCH_NAME}}",
|
|
45
|
-
databaseName: "{{NEON_DATABASE_NAME}}",
|
|
46
|
-
roleName: "{{NEON_ROLE_NAME}}",
|
|
47
|
-
previewBranchPrefix: "{{NEON_PREVIEW_BRANCH_PREFIX}}",
|
|
48
|
-
personalBranchPrefix: "{{NEON_PERSONAL_BRANCH_PREFIX}}",
|
|
49
|
-
},
|
|
50
|
-
requiredApis: [
|
|
51
|
-
"run.googleapis.com",
|
|
52
|
-
"cloudbuild.googleapis.com",
|
|
53
|
-
"artifactregistry.googleapis.com",
|
|
54
|
-
"iam.googleapis.com",
|
|
55
|
-
"iamcredentials.googleapis.com",
|
|
56
|
-
"secretmanager.googleapis.com",
|
|
57
|
-
"serviceusage.googleapis.com",
|
|
58
|
-
"sts.googleapis.com",
|
|
59
|
-
],
|
|
60
|
-
} as const;
|
|
61
|
-
|
|
62
|
-
export type DeployEnvironment = "main" | "preview" | "personal";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|