UNPKG

@nx/remix

Version:

The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook. - Generators for applica

56 lines (55 loc) 1.46 kB
{ "$schema": "https://json-schema.org/schema", "$id": "NxRemixRoute", "title": "Create a Route", "description": "Generate a route.", "type": "object", "examples": [ { "description": "Generate a route at `myapp/app/routes/foo.tsx`", "command": "nx g resource-route myapp/app/routes/foo.tsx" }, { "description": "Generate a 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?" }, "style": { "type": "string", "description": "Generate a stylesheet", "enum": ["none", "css"], "default": "css" }, "meta": { "type": "boolean", "description": "Generate a meta function", "default": false }, "action": { "type": "boolean", "description": "Generate an action function", "default": false }, "loader": { "type": "boolean", "description": "Generate a loader function", "default": false }, "skipChecks": { "type": "boolean", "description": "Skip route error detection", "default": false } }, "required": ["path"] }