@aws/nx-plugin-mcp 0.120.0 → 1.0.0-rc.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/bin/aws-nx-mcp.js +74 -41
- package/docs/guides/astro-docs.mdx +144 -0
- package/docs/guides/connection/py-agent-a2a.mdx +105 -0
- package/docs/guides/connection/py-agent-mcp.mdx +147 -0
- package/docs/guides/connection/react-agui.mdx +240 -0
- package/docs/guides/connection/react-fastapi.mdx +1476 -0
- package/docs/guides/connection/react-py-agent.mdx +198 -0
- package/docs/guides/connection/react-smithy.mdx +1355 -0
- package/docs/guides/connection/react-trpc.mdx +447 -0
- package/docs/guides/connection/react-ts-agent.mdx +198 -0
- package/docs/guides/connection/smithy-rdb.mdx +161 -0
- package/docs/guides/connection/trpc-rdb.mdx +127 -0
- package/docs/guides/connection/ts-agent-a2a.mdx +106 -0
- package/docs/guides/connection/ts-agent-mcp.mdx +144 -0
- package/docs/guides/connection/ts-agent-rdb.mdx +141 -0
- package/docs/guides/connection/ts-mcp-server-rdb.mdx +135 -0
- package/docs/guides/connection.mdx +126 -0
- package/docs/guides/docker-bundling.mdx +403 -0
- package/docs/guides/docs.mdx +21 -0
- package/docs/guides/fastapi.mdx +511 -0
- package/docs/guides/license.mdx +293 -0
- package/docs/guides/nx-generator.mdx +588 -0
- package/docs/guides/py-agent.mdx +483 -0
- package/docs/guides/py-api.mdx +22 -0
- package/docs/guides/py-mcp-server.mdx +161 -0
- package/docs/guides/python-lambda-function.mdx +207 -0
- package/docs/guides/python-project.mdx +228 -0
- package/docs/guides/react-website-auth.mdx +216 -0
- package/docs/guides/react-website.mdx +424 -0
- package/docs/guides/runtime-config.mdx +312 -0
- package/docs/guides/terraform-project.mdx +317 -0
- package/docs/guides/trpc.mdx +818 -0
- package/docs/guides/ts-agent.mdx +436 -0
- package/docs/guides/ts-api.mdx +28 -0
- package/docs/guides/ts-lambda-function.mdx +218 -0
- package/docs/guides/ts-mcp-server.mdx +169 -0
- package/docs/guides/ts-nx-plugin.mdx +159 -0
- package/docs/guides/ts-rdb.mdx +759 -0
- package/docs/guides/ts-smithy-api.mdx +663 -0
- package/docs/guides/typescript-infrastructure.mdx +408 -0
- package/docs/guides/typescript-project.mdx +312 -0
- package/docs/guides/website.mdx +21 -0
- package/docs/guides/workspace.mdx +181 -0
- package/docs/snippets/agent/architecture.mdx +72 -0
- package/docs/snippets/agent/bedrock-deployment.mdx +172 -0
- package/docs/snippets/agent/runtime-arn.mdx +64 -0
- package/docs/snippets/api/api-architecture.mdx +93 -0
- package/docs/snippets/api/api-choice-note.mdx +6 -0
- package/docs/snippets/api/cors-configuration-cdk-note.mdx +25 -0
- package/docs/snippets/api/cors-configuration-terraform-note.mdx +28 -0
- package/docs/snippets/api/shared-constructs.mdx +38 -0
- package/docs/snippets/api/type-safe-api-integrations.mdx +643 -0
- package/docs/snippets/api/waf-configuration.mdx +37 -0
- package/docs/snippets/connection/a2a-infrastructure.mdx +63 -0
- package/docs/snippets/connection/lambda-rdb-ssl-requirements.mdx +40 -0
- package/docs/snippets/connection/mcp-server-rdb-ssl-requirements.mdx +35 -0
- package/docs/snippets/connection/rdb-api-infrastructure.mdx +72 -0
- package/docs/snippets/connection/react-agent-infrastructure.mdx +61 -0
- package/docs/snippets/connection/strands-agent-rdb-ssl-requirements.mdx +35 -0
- package/docs/snippets/lambda-function/architecture.mdx +36 -0
- package/docs/snippets/lambda-function/deploying-your-function.mdx +118 -0
- package/docs/snippets/mcp/architecture.mdx +58 -0
- package/docs/snippets/mcp/assistant-docs.mdx +10 -0
- package/docs/snippets/mcp/bedrock-deployment.mdx +167 -0
- package/docs/snippets/mcp/config.mdx +13 -0
- package/docs/snippets/mcp/configuration-py.mdx +42 -0
- package/docs/snippets/mcp/configuration-ts.mdx +53 -0
- package/docs/snippets/mcp/observability.mdx +8 -0
- package/docs/snippets/mcp/shared-constructs.mdx +32 -0
- package/docs/snippets/pdk-migration/example/01-migrate-api.mdx +602 -0
- package/docs/snippets/pdk-migration/example/02-migrate-website.mdx +915 -0
- package/docs/snippets/pdk-migration/example/03-migrate-infra.mdx +161 -0
- package/docs/snippets/pdk-migration/example/04-deploy.mdx +229 -0
- package/docs/snippets/pdk-migration/faq/aws-arch.mdx +17 -0
- package/docs/snippets/pdk-migration/faq/cdk-graph.mdx +29 -0
- package/docs/snippets/pdk-migration/faq/infrastructure-python-java.mdx +19 -0
- package/docs/snippets/pdk-migration/faq/pdk-nag.mdx +15 -0
- package/docs/snippets/pdk-migration/faq/pipeline.mdx +15 -0
- package/docs/snippets/pdk-migration/faq/type-safe-api.mdx +310 -0
- package/docs/snippets/pdk-migration/faq/use-of-projen.mdx +15 -0
- package/docs/snippets/prerequisites.mdx +20 -0
- package/docs/snippets/required-prerequisites.mdx +12 -0
- package/docs/snippets/shared-constructs.mdx +40 -0
- package/docs/snippets/tools/acurl.mdx +73 -0
- package/docs/snippets/ts-bundle.mdx +14 -0
- package/generators.json +47 -6
- package/package.json +1 -1
- package/src/py/api/schema.json +100 -0
- package/src/ts/api/schema.json +105 -0
- package/src/ts/docs/schema.json +70 -0
- package/src/ts/website/app/schema.json +97 -0
- package/src/ts/website/auth/schema.json +46 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "py#api",
|
|
4
|
+
"title": "py#api",
|
|
5
|
+
"description": "Create a Python API",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Name of the API project to generate",
|
|
11
|
+
"x-priority": "important",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "What name would you like your API to have? i.e: MyApi"
|
|
17
|
+
},
|
|
18
|
+
"framework": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The API framework to use.",
|
|
21
|
+
"default": "fastapi",
|
|
22
|
+
"enum": ["fastapi"],
|
|
23
|
+
"x-prompt": {
|
|
24
|
+
"message": "Which API framework would you like to use?",
|
|
25
|
+
"type": "list",
|
|
26
|
+
"items": [
|
|
27
|
+
{
|
|
28
|
+
"value": "fastapi",
|
|
29
|
+
"label": "FastAPI (modern Python web framework)"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"default": "fastapi"
|
|
33
|
+
},
|
|
34
|
+
"x-priority": "important"
|
|
35
|
+
},
|
|
36
|
+
"computeType": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The type of compute to use to deploy this API. Choose between ServerlessApiGatewayRestApi (default) or ServerlessApiGatewayHttpApi.",
|
|
39
|
+
"default": "ServerlessApiGatewayRestApi",
|
|
40
|
+
"enum": ["ServerlessApiGatewayRestApi", "ServerlessApiGatewayHttpApi"],
|
|
41
|
+
"x-prompt": "What compute type would you like to deploy your API with?",
|
|
42
|
+
"x-priority": "important"
|
|
43
|
+
},
|
|
44
|
+
"integrationPattern": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "How API Gateway integrations are generated for the API. Choose between isolated (default) and shared.",
|
|
47
|
+
"default": "isolated",
|
|
48
|
+
"enum": ["isolated", "shared"],
|
|
49
|
+
"x-priority": "important",
|
|
50
|
+
"x-prompt": {
|
|
51
|
+
"message": "How would you like to map integrations to your API operations?",
|
|
52
|
+
"type": "list",
|
|
53
|
+
"items": [
|
|
54
|
+
{
|
|
55
|
+
"value": "isolated",
|
|
56
|
+
"label": "isolated (one integration per operation)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "shared",
|
|
60
|
+
"label": "shared (single default integration with optional overrides)"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"default": "isolated"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"auth": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "The method used to authenticate with your API. Choose between IAM (default), Cognito or Custom.",
|
|
69
|
+
"default": "IAM",
|
|
70
|
+
"enum": ["IAM", "Cognito", "Custom"],
|
|
71
|
+
"x-prompt": "How would you like users to authenticate with your API?",
|
|
72
|
+
"x-priority": "important"
|
|
73
|
+
},
|
|
74
|
+
"directory": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "The directory to store the application in.",
|
|
77
|
+
"default": "packages",
|
|
78
|
+
"x-prompt": "Which directory do you want to create the project in?",
|
|
79
|
+
"x-priority": "important"
|
|
80
|
+
},
|
|
81
|
+
"subDirectory": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
84
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
85
|
+
},
|
|
86
|
+
"iacProvider": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
89
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
90
|
+
"x-priority": "important",
|
|
91
|
+
"default": "Inherit",
|
|
92
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
93
|
+
},
|
|
94
|
+
"moduleName": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Python module name"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": ["name"]
|
|
100
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#api",
|
|
4
|
+
"title": "ts#api",
|
|
5
|
+
"description": "Create a TypeScript API",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the API (required). Used to generate class names and file paths.",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "What name would you like your API to have? i.e: MyApi"
|
|
16
|
+
},
|
|
17
|
+
"framework": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The API framework to use.",
|
|
20
|
+
"default": "trpc",
|
|
21
|
+
"enum": ["trpc", "smithy"],
|
|
22
|
+
"x-prompt": {
|
|
23
|
+
"message": "Which API framework would you like to use?",
|
|
24
|
+
"type": "list",
|
|
25
|
+
"items": [
|
|
26
|
+
{
|
|
27
|
+
"value": "trpc",
|
|
28
|
+
"label": "tRPC (end-to-end type-safe APIs with TypeScript)"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"value": "smithy",
|
|
32
|
+
"label": "Smithy (model-driven API development)"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"default": "trpc"
|
|
36
|
+
},
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"namespace": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The namespace for the Smithy API (only applicable for the smithy framework). Defaults to your monorepo scope",
|
|
42
|
+
"x-prompt": "What namespace would you like your API to have? i.e: com.example"
|
|
43
|
+
},
|
|
44
|
+
"computeType": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The type of compute to use to deploy this API.",
|
|
47
|
+
"default": "ServerlessApiGatewayRestApi",
|
|
48
|
+
"enum": ["ServerlessApiGatewayRestApi", "ServerlessApiGatewayHttpApi"],
|
|
49
|
+
"x-prompt": "What compute type would you like to deploy your API with?",
|
|
50
|
+
"x-priority": "important"
|
|
51
|
+
},
|
|
52
|
+
"integrationPattern": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "How API Gateway integrations are generated for the API. Choose between isolated (default) and shared.",
|
|
55
|
+
"default": "isolated",
|
|
56
|
+
"enum": ["isolated", "shared"],
|
|
57
|
+
"x-priority": "important",
|
|
58
|
+
"x-prompt": {
|
|
59
|
+
"message": "How would you like to map integrations to your API operations?",
|
|
60
|
+
"type": "list",
|
|
61
|
+
"items": [
|
|
62
|
+
{
|
|
63
|
+
"value": "isolated",
|
|
64
|
+
"label": "isolated (one integration per operation)"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "shared",
|
|
68
|
+
"label": "shared (single default integration with optional overrides)"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"default": "isolated"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"auth": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "The method used to authenticate with your API. Choose between IAM (default), Cognito or Custom.",
|
|
77
|
+
"default": "IAM",
|
|
78
|
+
"enum": ["IAM", "Cognito", "Custom"],
|
|
79
|
+
"x-prompt": "How would you like users to authenticate with your API?",
|
|
80
|
+
"x-priority": "important"
|
|
81
|
+
},
|
|
82
|
+
"directory": {
|
|
83
|
+
"description": "The directory to store the application in.",
|
|
84
|
+
"type": "string",
|
|
85
|
+
"alias": "dir",
|
|
86
|
+
"x-priority": "important",
|
|
87
|
+
"default": "packages",
|
|
88
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
89
|
+
},
|
|
90
|
+
"subDirectory": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
93
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
94
|
+
},
|
|
95
|
+
"iacProvider": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
98
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
99
|
+
"x-priority": "important",
|
|
100
|
+
"default": "Inherit",
|
|
101
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": ["name"]
|
|
105
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "ts#docs",
|
|
5
|
+
"title": "Create a documentation site",
|
|
6
|
+
"description": "Generates a documentation site. Use the `framework` option to select the underlying docs framework.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "nx g ts#docs",
|
|
10
|
+
"description": "Generate a docs site using Astro (default framework)"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"command": "nx g ts#docs --framework=astro --noTranslation",
|
|
14
|
+
"description": "Generate an Astro docs site without the automated translation pipeline"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"name": {
|
|
20
|
+
"description": "The name of the docs project.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "docs",
|
|
23
|
+
"$default": {
|
|
24
|
+
"$source": "argv",
|
|
25
|
+
"index": 0
|
|
26
|
+
},
|
|
27
|
+
"x-prompt": "What name would you like to use for the docs project?",
|
|
28
|
+
"pattern": "^[a-zA-Z][^:]*$"
|
|
29
|
+
},
|
|
30
|
+
"directory": {
|
|
31
|
+
"description": "The parent directory the docs project is placed in.",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"alias": "dir",
|
|
34
|
+
"x-priority": "important",
|
|
35
|
+
"default": ".",
|
|
36
|
+
"x-prompt": "Which parent directory would you like to place the docs project in?"
|
|
37
|
+
},
|
|
38
|
+
"subDirectory": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The sub directory the docs project is placed in. Defaults to the kebab-case project name.",
|
|
41
|
+
"x-prompt": "Which sub directory should the docs project be created in? (default: kebab-case of the name)"
|
|
42
|
+
},
|
|
43
|
+
"framework": {
|
|
44
|
+
"description": "The documentation framework to use.",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["astro"],
|
|
47
|
+
"default": "astro",
|
|
48
|
+
"x-priority": "important",
|
|
49
|
+
"x-prompt": "Which documentation framework would you like to use?"
|
|
50
|
+
},
|
|
51
|
+
"noTranslation": {
|
|
52
|
+
"description": "Opt out of the automated documentation translation pipeline (Strands Agent on Amazon Bedrock + a `translate` project target).",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": false,
|
|
55
|
+
"x-prompt": "Would you like to opt out of automated documentation translation?"
|
|
56
|
+
},
|
|
57
|
+
"noBlog": {
|
|
58
|
+
"description": "Opt out of the `starlight-blog` plugin and the sample blog post.",
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false,
|
|
61
|
+
"x-prompt": "Would you like to opt out of the blog?"
|
|
62
|
+
},
|
|
63
|
+
"skipInstall": {
|
|
64
|
+
"description": "Skip installing dependencies after the generator runs.",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": ["name"]
|
|
70
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Website",
|
|
5
|
+
"title": "Create a Website",
|
|
6
|
+
"description": "Create a website application for Nx.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "nx g app myapp --directory=myorg",
|
|
10
|
+
"description": "Generate `apps/myorg/myapp` and `apps/myorg/myapp-e2e`"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {
|
|
16
|
+
"description": "The name of the application.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"$default": {
|
|
19
|
+
"$source": "argv",
|
|
20
|
+
"index": 0
|
|
21
|
+
},
|
|
22
|
+
"x-prompt": "What name would you like to use for the application?",
|
|
23
|
+
"pattern": "^[a-zA-Z][^:]*$"
|
|
24
|
+
},
|
|
25
|
+
"framework": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The frontend framework to use.",
|
|
28
|
+
"enum": ["react"],
|
|
29
|
+
"default": "react",
|
|
30
|
+
"x-priority": "important",
|
|
31
|
+
"x-prompt": "Which frontend framework would you like to use?"
|
|
32
|
+
},
|
|
33
|
+
"directory": {
|
|
34
|
+
"description": "The directory of the new application.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"alias": "dir",
|
|
37
|
+
"x-priority": "important",
|
|
38
|
+
"default": "packages",
|
|
39
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
40
|
+
},
|
|
41
|
+
"subDirectory": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
44
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
45
|
+
},
|
|
46
|
+
"uxProvider": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The preferred UX provider.",
|
|
49
|
+
"enum": ["None", "Cloudscape", "Shadcn"],
|
|
50
|
+
"x-priority": "important",
|
|
51
|
+
"default": "Cloudscape",
|
|
52
|
+
"x-prompt": {
|
|
53
|
+
"message": "Which UX provider should we scaffold for this app?",
|
|
54
|
+
"type": "list",
|
|
55
|
+
"items": [
|
|
56
|
+
{
|
|
57
|
+
"value": "None",
|
|
58
|
+
"label": "None (plain React/Vite without a UI kit)"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"value": "Cloudscape",
|
|
62
|
+
"label": "Cloudscape (AWS-first components with ready-made layouts)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "Shadcn",
|
|
66
|
+
"label": "Shadcn (shared UI library under packages/common/shadcn)"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"default": "Cloudscape"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"enableTailwind": {
|
|
73
|
+
"description": "Enable TailwindCSS for utility-first styling.",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": true,
|
|
76
|
+
"x-priority": "important",
|
|
77
|
+
"x-prompt": "Would you like to enable TailwindCSS for additional styling capabilities?"
|
|
78
|
+
},
|
|
79
|
+
"enableTanstackRouter": {
|
|
80
|
+
"description": "Enable Tanstack router for type-safe routing.",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": true,
|
|
83
|
+
"x-priority": "important",
|
|
84
|
+
"x-prompt": "Would you like to enable Tanstack Router for type-safe routing?"
|
|
85
|
+
},
|
|
86
|
+
"iacProvider": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
89
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
90
|
+
"x-priority": "important",
|
|
91
|
+
"default": "Inherit",
|
|
92
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["name"],
|
|
96
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
97
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Website Auth",
|
|
5
|
+
"title": "Website Auth",
|
|
6
|
+
"description": "Adds auth to an existing website.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "nx g @aws/nx-plugin:ts#website#auth --project=my-website",
|
|
10
|
+
"description": "Add Cognito auth to an existing website"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"project": {
|
|
16
|
+
"description": "The root directory of the website.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"alias": "dir",
|
|
19
|
+
"x-priority": "important",
|
|
20
|
+
"x-prompt": "the root directory for your website.",
|
|
21
|
+
"x-dropdown": "projects"
|
|
22
|
+
},
|
|
23
|
+
"cognitoDomain": {
|
|
24
|
+
"description": "The cognito domain prefix to use. If omitted, a value is derived from the npm scope and website project name.",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"x-priority": "important",
|
|
27
|
+
"x-prompt": "the cognito domain prefix to use i.e: https://{{cognitoDomain}}-123456789.auth.ap-southeast-2.amazoncognito.com (leave blank to derive from scope and project name)"
|
|
28
|
+
},
|
|
29
|
+
"allowSignup": {
|
|
30
|
+
"description": "Whether to allow self-signup",
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false,
|
|
33
|
+
"x-prompt": "Enable self signup?",
|
|
34
|
+
"x-priority": "important"
|
|
35
|
+
},
|
|
36
|
+
"iacProvider": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
39
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
40
|
+
"x-priority": "important",
|
|
41
|
+
"default": "Inherit",
|
|
42
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": ["project"]
|
|
46
|
+
}
|