@interopio/cli
Version:
Interop.io CLI - a command line for creating Interop.io applications
49 lines (48 loc) • 1.32 kB
TypeScript
export type CliMode = "auto" | "offline" | "remote";
export type CliProduct = "ioCb";
export type NewAppType = "browser-client" | "browser-platform";
export type BrowserPlatformTemplate = "dev-react-seed" | "home-react-wsp" | "vanilla-js" | "wsp-frame";
export type BrowserClientTemplate = "react" | "vanilla-js";
export interface CliConfig {
licenseKey?: string;
mode: CliMode;
}
export interface NewBrowserPlatformConfig {
appName: string;
template: BrowserPlatformTemplate;
version: string;
}
export interface NewBrowserClientConfig {
appName: string;
template: BrowserClientTemplate;
version: string;
}
export interface CliManifest {
ioCb: {
latestVersion: string;
versions: string[];
};
}
export interface NpmDownloadConfig {
appDir: string;
destination: string;
destinationMap: string;
distFileName: string;
distFileNameMap: string;
packageNameNoScope: string;
version: string;
}
export interface NpmInstallConfig {
appDir: string;
noScopePackages: string[];
version: string;
}
export interface DirectoryConfig {
configDir: string;
root: string;
}
export interface NewCommandFlags {
name: string | undefined;
template: BrowserClientTemplate | BrowserPlatformTemplate | undefined;
yes: boolean;
}