/** * LocalDevMode - we have two modes we can run local development in: * * 1. Dev Mode * - Used as the standard local-dev experience where we serve debug/dev resources from the MRT bundle * - Local source is compiled and served from the overrides directory at ${site}/app/__overrides__ * - Defaults to appendedSrc rather than inline (source modules are added at the begining of each view, original module left intact) * - SSR_DEBUG enabled by default * - HMR is enabled by default, refreshing page on change * * 2. Prod Mode (Experimental) * - Alternative local development mode in which we serve prod resources from the MRT bundle * - Local source is compiled will overwrite existing bundles in ${site}/app/prod/* * - Defaults to 'inlineSrc' (source modules overwrite any existing module definitions, consitent with production build) * - SSR_DEBUG is disabled by default * - HMR is disabled by default * * Prod mode is intended to be used in the following flow: * - You have source changes you want to test out for performance on MRT * - You've used dev mode to prepare them * - You start prod mode and navigate to the prod pages you want to update * - Those files get overriden in the bundle * - You then can stop the server and run the 'lwr preview' command to test performance locally * - You can also zip up the changes and publish them to an MRT instance directly for testing * */ export type LocalDevMode = 'dev' | 'prod'; /** * LocalDevOptions - options used in our CLI */ export interface LocalDevOptions { mode: LocalDevMode; port: number; basePath?: string; timeout?: number; logLevel?: string; open?: boolean; authToken?: string; sfCLI?: boolean; } export interface SitesLocalDevOptions extends LocalDevOptions { siteDir: string; siteZip?: string; writeSrcFilesToBundle?: boolean; inlineUpdate?: boolean; regenerateAllRoutes?: boolean; } export interface ComponentLocalDevOptions extends LocalDevOptions { rootDir: string; namespacePaths: string[]; name?: string; } //# sourceMappingURL=cli.d.ts.map