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
754 B
TypeScript
26 lines
754 B
TypeScript
import type { Linter, LinterType } from '@nx/eslint';
|
|
|
|
export interface Schema {
|
|
directory: string;
|
|
name?: string;
|
|
displayName?: string;
|
|
style?: string;
|
|
skipFormat?: boolean;
|
|
tags?: string;
|
|
unitTestRunner: 'jest' | 'none'; // default is jest
|
|
classComponent?: boolean;
|
|
js?: boolean;
|
|
linter: Linter | LinterType;
|
|
setParserOptionsProject?: boolean;
|
|
e2eTestRunner: 'cypress' | 'playwright' | 'detox' | 'none'; // default is cypress
|
|
bundler: 'webpack' | 'vite'; // default is webpack
|
|
install: boolean; // default is true
|
|
skipPackageJson?: boolean; //default is false
|
|
// Internal options
|
|
addPlugin?: boolean;
|
|
nxCloudToken?: string;
|
|
useTsSolution?: boolean;
|
|
formatter?: 'prettier' | 'none';
|
|
useProjectJson?: boolean;
|
|
}
|