Skip to content

Commit

Permalink
feat(nx-plugin): update generators and executors schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Dec 18, 2024
1 parent 97922ad commit 2fdccaf
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .verdaccio/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ auth:
htpasswd:
file: ./htpasswd

max_body_size: 15mb

# a list of other known repositories we can talk to
uplinks:
npmjs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["none", "jest"],
"enum": ["none", "jest", "vitest"],
"description": "Test runner to use for unit tests."
},
"linter": {
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/packages/plugin/generators/executor.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["jest", "none"],
"enum": ["jest", "vitest", "none"],
"description": "Test runner to use for unit tests.",
"default": "jest"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/packages/plugin/generators/generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["jest", "none"],
"enum": ["jest", "vitest", "none"],
"description": "Test runner to use for unit tests.",
"default": "jest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/create-package/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface CreatePackageSchema {
// options to create cli package, passed to js library generator
skipFormat?: boolean;
tags?: string;
unitTestRunner?: 'jest' | 'none';
unitTestRunner?: 'jest' | 'vitest' | 'none';
linter?: Linter | LinterType;
compiler?: 'swc' | 'tsc';

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/create-package/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["none", "jest"],
"enum": ["none", "jest", "vitest"],
"description": "Test runner to use for unit tests."
},
"linter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface NormalizedSchema extends CreatePackageSchema {
bundler: 'swc' | 'tsc';
projectName: string;
projectRoot: string;
unitTestRunner: 'jest' | 'none';
unitTestRunner: 'jest' | 'vitest' | 'none';
linter: LinterType;
useProjectJson: boolean;
addPlugin: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/executor/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface Schema {
path: string;
name?: string;
description?: string;
unitTestRunner: 'jest' | 'none';
unitTestRunner: 'jest' | 'vitest' | 'none';
includeHasher: boolean;
skipLintChecks?: boolean;
skipFormat?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/executor/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["jest", "none"],
"enum": ["jest", "vitest", "none"],
"description": "Test runner to use for unit tests.",
"default": "jest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/generator/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface Schema {
path: string;
name?: string;
description?: string;
unitTestRunner: 'jest' | 'none';
unitTestRunner: 'jest' | 'vitest' | 'none';
skipLintChecks?: boolean;
skipFormat?: boolean;
}
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/generator/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"unitTestRunner": {
"type": "string",
"enum": ["jest", "none"],
"enum": ["jest", "vitest", "none"],
"description": "Test runner to use for unit tests.",
"default": "jest"
},
Expand Down

0 comments on commit 2fdccaf

Please sign in to comment.