@nx/react
Version:
66 lines (65 loc) • 2.28 kB
TypeScript
import { Tree } from '@nx/devkit';
import { WithNxOptions } from '@nx/webpack';
import { WithReactOptions } from '../../../../plugins/with-react';
import { NormalizedSchema } from '../schema';
export declare function getDefaultTemplateVariables(host: Tree, options: NormalizedSchema): {
name: string;
className: string;
propertyName: string;
constantName: string;
directory: string;
skipFormat?: boolean;
tags?: string;
inSourceTests?: boolean;
e2eTestRunner: 'cypress' | 'playwright' | 'none';
linter: import("@nx/eslint").Linter | import("@nx/eslint").LinterType;
classComponent?: boolean;
routing?: boolean;
useReactRouter?: boolean;
skipNxJson?: boolean;
globalCss?: boolean;
strict?: boolean;
enableTypedLinting?: boolean;
setParserOptionsProject?: boolean;
compiler?: 'babel' | 'swc';
remotes?: string[];
devServerPort?: number;
skipPackageJson?: boolean;
rootProject?: boolean;
bundler?: 'webpack' | 'vite' | 'rspack' | 'rsbuild';
minimal?: boolean;
nxCloudToken?: string;
useTsSolution?: boolean;
formatter?: 'prettier' | 'none';
useProjectJson?: boolean;
projectName: string;
appProjectRoot: string;
e2eProjectName: string;
e2eProjectRoot: string;
importPath: string;
parsedTags: string[];
fileName: string;
hasStyles: boolean;
unitTestRunner: 'jest' | 'vitest' | 'none';
addPlugin?: boolean;
names: ReturnType<typeof import("@nx/devkit").names>;
isUsingTsSolutionConfig?: boolean;
typesNodeVersion: string;
typesReactDomVersion: string;
reactRouterVersion: string;
typesReactVersion: string;
reactDomVersion: string;
reactVersion: string;
reactRouterIsBotVersion: string;
js: boolean;
tmpl: string;
offsetFromRoot: string;
appTests: string;
inSourceVitestTests: string;
style: import("../../../..").SupportedStyles;
hasStyleFile: boolean;
isUsingTsSolutionSetup: boolean;
port: number;
};
export declare function createNxRspackPluginOptions(options: NormalizedSchema, rootOffset: string, tsx?: boolean): WithNxOptions & WithReactOptions;
export declare function createApplicationFiles(host: Tree, options: NormalizedSchema): Promise<void>;