Skip to content

Commit

Permalink
feat(remix): projectNameAndRootFormat for e2e generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Dec 5, 2023
1 parent dd0a90b commit 0273264
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/remix/src/generators/cypress/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { type ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';

export interface CypressGeneratorSchema {
project: string;
name: string;
baseUrl?: string;
directory?: string;
projectNameAndRootFormat?: ProjectNameAndRootFormat;
linter?: 'none' | 'eslint';
js?: boolean;
skipFormat?: boolean;
Expand Down
17 changes: 15 additions & 2 deletions packages/remix/src/generators/cypress/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
"$source": "projectName"
}
},
"projectNameAndRootFormat": {
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
"type": "string",
"enum": [
"as-provided",
"derived"
]
},
"baseUrl": {
"type": "string",
"description": "URL to access the application on",
Expand All @@ -32,7 +40,10 @@
"linter": {
"description": "The tool to use for running lint checks.",
"type": "string",
"enum": ["eslint", "none"],
"enum": [
"eslint",
"none"
],
"default": "eslint"
},
"js": {
Expand All @@ -51,5 +62,7 @@
"default": false
}
},
"required": ["name"]
"required": [
"name"
]
}

0 comments on commit 0273264

Please sign in to comment.