@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
21 lines (20 loc) • 1.05 kB
TypeScript
/**
* This function can be used by other plugins to wait for the build pipeline to finish before doing some work in the closeBundle hook.
* This event is triggered *after* the build pipeline has finished all its work AND the results have been copied to their final output directory.
*/
export function waitForBuildPipelineToFinish(): Promise<void>;
export function waitForBuildPipelineCopyToFinish(): Promise<void>;
/** Runs the needle build pipeline as part of the vite build process.
* @param {"build" | "serve"} command
* @param {import('../types/needleConfig').needleMeta | null | undefined} config
* @param {import('../types').userSettings} userSettings
* @returns {import('vite').Plugin}
*/
export function needleBuildPipeline(command: "build" | "serve", config: import("../types/needleConfig").needleMeta | null | undefined, userSettings: import("../types").userSettings): import("vite").Plugin;
export type BuildPipelinePayload = {
event?: string;
phase?: string;
target?: string;
message?: string;
level?: string;
};