@nx/remix
Version:
45 lines (44 loc) • 1.23 kB
JSON
{
"$schema": "https://json-schema.org/schema",
"$id": "NxRemixResourceRoute",
"title": "Create a Resource Route",
"type": "object",
"description": "Generate a resource route.",
"examples": [
{
"description": "Generate a resource route at `myapp/app/routes/foo.ts`",
"command": "nx g resource-route myapp/app/routes/foo.ts"
},
{
"description": "Generate a resource route without providing the file extension at `myapp/app/routes/foo.tsx`",
"command": "nx g resource-route myapp/app/routes/foo"
}
],
"properties": {
"path": {
"type": "string",
"description": "The file path to the route. Relative to the current working directory.",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "What is the route file path?"
},
"action": {
"type": "boolean",
"description": "Generate an action function",
"default": false
},
"loader": {
"type": "boolean",
"description": "Generate a loader function",
"default": true
},
"skipChecks": {
"type": "boolean",
"description": "Skip route error detection",
"default": false
}
},
"required": ["path"]
}