<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
|
import type { Linter, LinterType } from '@nx/eslint';
|
|
import type { SupportedStyles } from '../../../typings/style';
|
|
|
|
export interface Schema {
|
|
name: string;
|
|
style: SupportedStyles;
|
|
skipFormat?: boolean;
|
|
directory?: string;
|
|
projectNameAndRootFormat?: ProjectNameAndRootFormat;
|
|
tags?: string;
|
|
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
|
inSourceTests?: boolean;
|
|
e2eTestRunner: 'cypress' | 'playwright' | 'none';
|
|
linter: Linter | LinterType;
|
|
classComponent?: boolean;
|
|
routing?: boolean;
|
|
skipNxJson?: boolean;
|
|
js?: boolean;
|
|
globalCss?: boolean;
|
|
strict?: boolean;
|
|
setParserOptionsProject?: boolean;
|
|
compiler?: 'babel' | 'swc';
|
|
remotes?: string[];
|
|
devServerPort?: number;
|
|
skipPackageJson?: boolean;
|
|
rootProject?: boolean;
|
|
bundler?: 'webpack' | 'vite' | 'rspack';
|
|
minimal?: boolean;
|
|
addPlugin?: boolean;
|
|
nxCloudToken?: string;
|
|
}
|
|
|
|
export interface NormalizedSchema<T extends Schema = Schema> extends T {
|
|
projectName: string;
|
|
appProjectRoot: string;
|
|
e2eProjectName: string;
|
|
e2eProjectRoot: string;
|
|
parsedTags: string[];
|
|
fileName: string;
|
|
styledModule: null | SupportedStyles;
|
|
hasStyles: boolean;
|
|
unitTestRunner: 'jest' | 'vitest' | 'none';
|
|
addPlugin?: boolean;
|
|
}
|