UNPKG

@nx-plugins/vite

Version:

The Nx Plugin for Vite that contains executors, generators, and utilities for managing Vite applications and libraries within an Nx workspace.

25 lines (24 loc) 1.12 kB
import { Tree } from '@nrwl/devkit'; import { ViteProjectGeneratorSchema } from './schema'; import { Linter } from '@nrwl/linter'; export declare type NormalizedSchema = ReturnType<typeof normalizeOptions>; declare function normalizeOptions(tree: Tree, options: ViteProjectGeneratorSchema): { projectName: string; projectRoot: string; name: string; directory?: string; e2eTestRunner: "playwright-test" | "none" | "cypress" | "playwright-vitest"; linter: Linter.EsLint | Linter.None; setParserOptionsProject: boolean; unitTestRunner: "vitest" | "none" | "jest"; js: boolean; port: number; skipFormat: boolean; skipPackageJson: boolean; standaloneConfig: boolean; tags?: string; }; export default function viteProjectGenerator(tree: Tree, schema: ViteProjectGeneratorSchema): Promise<import("@nrwl/devkit").GeneratorCallback>; export declare const viteProjectSchematic: (generatorOptions: ViteProjectGeneratorSchema) => (tree: any, context: any) => Promise<any>; export declare function filePathPrefix(directory: string): string; export {};