UNPKG

1.29 kBTypeScriptView Raw
1import { CommandLineOptions, IConfig, ILogger, ProjectType, StarterList, StarterManifest, StarterTemplate } from '../definitions';
2export declare const STARTER_BASE_URL = "https://d2ql0qc7j8u4b2.cloudfront.net";
3export interface BaseAppSchema {
4 projectId: string;
5 projectDir: string;
6 packageId?: string;
7 appflowId?: string;
8}
9export interface NewAppSchema extends BaseAppSchema {
10 cloned: false;
11 name: string;
12 type: ProjectType;
13 template: string;
14 themeColor?: string;
15}
16export interface ClonedAppSchema extends BaseAppSchema {
17 cloned: true;
18 url: string;
19}
20export declare type AppSchema = NewAppSchema | ClonedAppSchema;
21export declare function verifyOptions(options: CommandLineOptions, { log }: {
22 log: ILogger;
23}): void;
24export declare function readStarterManifest(p: string): Promise<StarterManifest>;
25export declare function getAdvertisement(): string;
26export declare function getStarterList(config: IConfig, tag?: string): Promise<StarterList>;
27export declare function getStarterProjectTypes(): string[];
28export interface SupportedFramework {
29 name: string;
30 type: ProjectType;
31 description: string;
32}
33export declare const SUPPORTED_FRAMEWORKS: readonly SupportedFramework[];
34export declare const STARTER_TEMPLATES: StarterTemplate[];