@google/dscc-gen
Version:
Create component & connector projects with sane defaults.
54 lines (46 loc) • 1.03 kB
text/typescript
export enum ProjectChoice {
VIZ = 'viz',
CONNECTOR = 'connector',
}
export interface CommonConfig {
yarn: boolean;
projectName: string;
projectChoice: ProjectChoice;
basePath: string;
}
export enum AuthType {
NONE = 'NONE',
OAUTH2 = 'OAUTH2',
KEY = 'KEY',
USER_PASS = 'USER_PASS',
USER_TOKEN = 'USER_TOKEN',
PATH_USER_PASS = 'PATH_USER_PASS',
}
export interface VizConfigHasDefaults {
ts: boolean;
}
export interface ConnectorConfigHasDefaults {
manifestLogoUrl: string;
manifestCompany: string;
manifestCompanyUrl: string;
manifestAddonUrl: string;
manifestSupportUrl: string;
manifestDescription: string;
manifestSources: string;
authType: AuthType;
}
export interface ConnectorConfig
extends CommonConfig,
ConnectorConfigHasDefaults {
scriptId?: string;
ts?: boolean;
}
export interface VizConfig extends CommonConfig, VizConfigHasDefaults {
devBucket: string;
prodBucket: string;
ts: boolean;
}
export interface Template {
match: RegExp;
replace: string;
}