source: trip-planner-front/node_modules/license-webpack-plugin/dist/PluginOptions.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[6a3a178]1import { LicenseTest } from './LicenseTest';
2import { LicenseIdentifiedModule } from './LicenseIdentifiedModule';
3import { IncludeExcludeTest } from './IncludeExcludeTest';
4import { Module } from './Module';
5import { PluginStats } from './PluginStats';
6interface PluginOptions {
7 licenseInclusionTest?: LicenseTest;
8 unacceptableLicenseTest?: LicenseTest;
9 handleUnacceptableLicense?: (packageName: string, licenseType: string) => void;
10 handleMissingLicenseText?: (packageName: string, licenseType: string | null) => string | null;
11 perChunkOutput?: boolean;
12 licenseTemplateDir?: string;
13 licenseTextOverrides?: {
14 [key: string]: string;
15 };
16 licenseFileOverrides?: {
17 [key: string]: string;
18 };
19 licenseTypeOverrides?: {
20 [key: string]: string;
21 };
22 renderLicenses?: (modules: LicenseIdentifiedModule[]) => string;
23 renderBanner?: (filename: string, modules: LicenseIdentifiedModule[]) => string;
24 outputFilename?: string;
25 addBanner?: boolean;
26 chunkIncludeExcludeTest?: IncludeExcludeTest;
27 modulesDirectories?: string[];
28 additionalChunkModules?: {
29 [chunkName: string]: Module[];
30 };
31 additionalModules?: Module[];
32 preferredLicenseTypes?: string[];
33 handleLicenseAmbiguity?: (packageName: string, licenses: {
34 type: string;
35 url: string;
36 }[]) => string;
37 handleMissingLicenseType?: (packageName: string) => string | null;
38 excludedPackageTest?: (packageName: string) => boolean;
39 stats?: PluginStats;
40 skipChildCompilers?: boolean;
41}
42export { PluginOptions };
Note: See TracBrowser for help on using the repository browser.