Leosvel Pérez Espinosa cbf80c18d1
feat(misc): add useProjectJson flag to project generators (#30319)
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 #
2025-03-11 12:12:03 -04:00

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;
}