@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.
24 lines (23 loc) • 1.07 kB
TypeScript
import { Tree } from '@nrwl/devkit';
import { ViteReactProjectGeneratorSchema } from './schema';
export declare type NormalizedSchema = ReturnType<typeof normalizeOptions>;
declare function normalizeOptions(tree: Tree, options: ViteReactProjectGeneratorSchema): {
projectName: string;
projectRoot: string;
name: string;
directory?: string;
e2eTestRunner: "playwright-test" | "none" | "cypress" | "playwright-vitest";
linter: any;
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: ViteReactProjectGeneratorSchema): Promise<import("@nrwl/devkit").GeneratorCallback>;
export declare const viteProjectSchematic: (generatorOptions: ViteReactProjectGeneratorSchema) => (tree: any, context: any) => Promise<any>;
export declare function filePathPrefix(directory: string): string;
export {};