UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

66 lines (65 loc) 2.28 kB
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>;