@gobstones/gobstones-scripts
Version:
Scripts to abstract away build configuration of Gobstones Project's libraries and modules.
49 lines • 1.41 kB
TypeScript
/**
* This type represents the options that you can pass to the vite task.
*/
export interface TaskViteOptions {
/**
* The files to watch for changes, if desired.
*/
watch?: string;
}
/**
* The vite object holds the different ways in you can run a task in vite,
* either by running dev, build or preview.
*/
export declare const vite: {
/**
* Returns the string for the bash command to run
* vite's dev server with the gobstones-script detected configuration.
*
* @param options - The options applied when running vite.
*
* @example vite.dev()
*
* @returns The bash command string.
*/
dev: (options?: TaskViteOptions) => string;
/**
* Returns the string for the bash command to run
* vite's build process with default configuration.
*
* @param options - The options applied when running vite.
*
* @example vite.build()
*
* @returns The bash command string.
*/
build: (options?: TaskViteOptions) => string;
/**
* Returns the string for the bash command to run
* vite's preview server with default configuration.
*
* @param options - The options applied when running vite.
*
* @example vite.preview()
*
* @returns The bash command string.
*/
preview: (options?: TaskViteOptions) => string;
};
//# sourceMappingURL=vite.d.ts.map