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

31 lines (28 loc) 765 B
import type { FileExtensionType } from '@nx/devkit/internal'; import { SupportedStyles } from '../../../typings/style'; export interface Schema { path: string; name?: string; style: SupportedStyles; skipTests?: boolean; export?: boolean; classComponent?: boolean; routing?: boolean; globalCss?: boolean; inSourceTests?: boolean; skipFormat?: boolean; // Used by Next.js to determine how React should generate the page isNextPage?: boolean; } export interface NormalizedSchema extends Schema { directory: string; projectRoot: string; projectSourceRoot: string; projectName: string; fileName: string; filePath: string; fileExtension: string; fileExtensionType: FileExtensionType; className: string; hasStyles: boolean; }