start.d.ts 1.3 KB

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