Add a `useProjectJson` option to project generators to allow users to opt in/out of generating the Nx configuration in a `project.json` file. ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes #
26 lines
652 B
TypeScript
26 lines
652 B
TypeScript
import type { Linter, LinterType } from '@nx/eslint';
|
|
|
|
export interface ApplicationGeneratorOptions {
|
|
directory: string;
|
|
name?: string;
|
|
frontendProject?: string;
|
|
linter?: Linter | LinterType;
|
|
skipFormat?: boolean;
|
|
skipPackageJson?: boolean;
|
|
standaloneConfig?: boolean;
|
|
tags?: string;
|
|
unitTestRunner?: 'jest' | 'none';
|
|
e2eTestRunner?: 'jest' | 'none';
|
|
setParserOptionsProject?: boolean;
|
|
rootProject?: boolean;
|
|
strict?: boolean;
|
|
addPlugin?: boolean;
|
|
useTsSolution?: boolean;
|
|
useProjectJson?: boolean;
|
|
}
|
|
|
|
interface NormalizedOptions extends ApplicationGeneratorOptions {
|
|
appProjectName: string;
|
|
appProjectRoot: Path;
|
|
}
|