@atlassian/webresource-vite-plugin
Version:
Auto-generates web-resource definitions from your vite-built code, for usage in an Atlassian product or plugin.
24 lines (23 loc) • 1.03 kB
TypeScript
export type ResourceParamMap = Map<string, ResourceParam[]>;
export type PluginOptions = {
/** @property pluginKey - The fully qualified plugin key. e.g.: com.atlassian.jira.plugins.my-jira-plugin */
pluginKey?: string;
/** @property xmlDescriptors - Path to the directory where this plugin stores the descriptors about this plugin, used by the WRM to load your frontend code. */
xmlDescriptors?: string;
/** @property packageName - Name of frontend package to associate all output JS files with. */
packageName?: string;
/** @property resourceParamMap - Parameters to be added to specific file types. */
resourceParamMap?: MapOrObject<ResourceParam[]>;
/** @property prettyPrint - Makes the resulting resources xml pretty printed for debugging purposes */
prettyPrint?: boolean;
};
export type AttributesObject = {
[key: string]: unknown;
};
export type ResourceParam = {
name: string;
value: string;
};
export type MapOrObject<T> = Map<string, T> | {
[key: string]: T;
};