UNPKG

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