@ma3-pro-plugins/ma3-ts-plugin-builder
Version:
grandMA3 Typescript plugin build script
43 lines (42 loc) • 1.18 kB
TypeScript
export declare type EnvType = "prod" | "dev";
export declare type ComponentData = {
type: "ts" | "lua";
fileName: string;
};
export declare type MAConfig = {
/** e.g. "1.8.8" */
maVersion: string;
author: string;
organizationId: string;
/** usually a lowercase plugin name with underscores instead of spaces */
pluginId: string;
pluginVersion: string;
/** No dots allowed */
maPluginName: string;
components: ComponentData[];
/** MA version : 1.6, 1.8 when running dev mode */
devMATargetVersion: string;
};
export declare type BuildConfig = {
tstlPluginPath: string;
/** Relative to package.json */
distPath: string;
readMeTemplatePath?: string;
pluginFolderPath: string;
isDev: boolean;
maTargetVersion: string;
/** e.g. on Mac: "/Users/[user]/MALightingTechnology/" */
maInstallPath: string;
};
export declare type ScriptArgs = {
pluginFolderPath: string;
isDev: boolean;
maTargetVersion: string;
};
export interface ModuleInterface {
maconfig: MAConfig;
buildConfig: BuildConfig;
}
export interface ModuleResponseInterface {
build: () => Promise<string>;
}