aws-sam-webpack-plugin
Version:
Webpack plugin to replace the AWS SAM CLI build command
38 lines (37 loc) • 1.01 kB
TypeScript
interface AwsSamProjectMap {
[pname: string]: string;
}
interface AwsSamPluginOptions {
projects: AwsSamProjectMap;
outFile: string;
vscodeDebug: boolean;
}
interface IEntryPointMap {
[pname: string]: string;
}
interface SamConfig {
buildRoot: string;
entryPointName: string;
outFile: string;
projectKey: string;
samConfig: any;
templateName: string;
}
interface IEntryForResult {
entryPoints: IEntryPointMap;
launchConfigs: any[];
samConfigs: SamConfig[];
}
declare class AwsSamPlugin {
private static defaultTemplates;
private launchConfig;
private options;
private samConfigs;
constructor(options?: Partial<AwsSamPluginOptions>);
private findTemplateName;
entryFor(projectKey: string, projectPath: string, projectTemplateName: string, projectTemplate: string, outFile: string): IEntryForResult;
entry(): IEntryPointMap;
filename(chunkData: any): string;
apply(compiler: any): void;
}
export = AwsSamPlugin;