frontity
Version:
Frontity cli and entry point to other packages
40 lines (39 loc) • 936 B
TypeScript
/**
* Options for the {@link buildCommand} function.
*/
interface BuildOptions {
/**
* Builds the project for production.
*
* @defaultValue `false`
*/
development?: boolean;
/**
* Create bundles with "es5", "module" or both.
*
* @defaultValue `"both"`
*/
target?: "es5" | "module" | "both";
/**
* Set the public path for static assets.
*
* @defaultValue `"/static/"`
*/
publicPath?: string;
/**
* Create HTML files for bundle analyzing.
*
* @defaultValue `false`
*/
analyze?: boolean;
}
/**
* Build the project for production.
*
* This function is executed by the CLI when running the `npx frontity build`
* command.
*
* @param options - Object of type {@link BuildOptions}.
*/
declare const buildCommand: ({ development, target, publicPath, analyze, }: BuildOptions) => Promise<void>;
export default buildCommand;