UNPKG

1.27 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}
15export interface ClonedAppSchema extends BaseAppSchema {
16 cloned: true;
17 url: string;
18}
19export declare type AppSchema = NewAppSchema | ClonedAppSchema;
20export declare function verifyOptions(options: CommandLineOptions, { log }: {
21 log: ILogger;
22}): void;
23export declare function readStarterManifest(p: string): Promise<StarterManifest>;
24export declare function getAdvertisement(): string;
25export declare function getStarterList(config: IConfig, tag?: string): Promise<StarterList>;
26export declare function getStarterProjectTypes(): string[];
27export interface SupportedFramework {
28 name: string;
29 type: ProjectType;
30 description: string;
31}
32export declare const SUPPORTED_FRAMEWORKS: readonly SupportedFramework[];
33export declare const STARTER_TEMPLATES: StarterTemplate[];