This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create a GraphQL Mesh API Gateway application for Nx.
nx generate @domjtalbot/nx-plugin-graphql-mesh:application my-api-gateway # Shorthand nx generate @domjtalbot/nx-plugin-graphql-mesh:app my-api-gateway
Example Output
> NX Generating @domjtalbot/nx-plugin-graphql-mesh:application CREATE apps/my-api-gateway/.meshrc.yml CREATE apps/my-api-gateway/tsconfig.app.json CREATE apps/my-api-gateway/tsconfig.json CREATE apps/my-api-gateway/project.json UPDATE workspace.json CREATE apps/my-api-gateway-e2e/cypress.json CREATE apps/my-api-gateway-e2e/src/fixtures/example.json CREATE apps/my-api-gateway-e2e/src/integration/app.spec.ts CREATE apps/my-api-gateway-e2e/src/support/app.po.ts CREATE apps/my-api-gateway-e2e/src/support/commands.ts CREATE apps/my-api-gateway-e2e/src/support/index.ts CREATE apps/my-api-gateway-e2e/tsconfig.json CREATE apps/my-api-gateway-e2e/project.json CREATE apps/my-api-gateway-e2e/.eslintrc.json CREATE apps/my-api-gateway/jest.config.ts CREATE apps/my-api-gateway/tsconfig.spec.json CREATE apps/my-api-gateway/.eslintrc.json
Options
name
string
true
directory
d
string
false
apps/
meshConfig
mc
cjs
,js
,json
,yml
false
yml
linter
-
eslint
,tslint
false
eslint
babelJest
-
boolean
false
false
babel
instead ofts-jest
?skipFormat
-
boolean
false
false
skipWorkspaceJson
-
boolean
false
false
workspace.json
with default options based on values provided to this app (e.g.babel
).unitTestRunner
-
jest
,none
false
jest
e2eTestRunner
-
cypress
,none
false
cypress
tags
t
string
false
setParserOptionsProject
-
boolean
false
false
parserOptions.project
option. We do not do this by default for lint performance reasons.standaloneConfig
-
boolean
false
false
<projectRoot>/project.json
rather than including it insideworkspace.json