@communities-webruntime/services
Version:
If you would like to run Lightning Web Runtime without the CLI, we expose some of our programmatic APIs available in Node.js. If you're looking for the CLI documentation [you can find that here](https://www.npmjs.com/package/@communities-webruntime/cli).
43 lines • 1.32 kB
TypeScript
/**
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import 'colors';
import WebruntimeContextConfig from './webruntime-context-config.js';
import WebruntimeContext from './webruntime-context.js';
export declare class ContextService {
uri: any;
mappings: any;
toSpecifier: any;
parseUrl: any;
projectDir: any;
basePath: any;
static shutdown(): Promise<void>;
/**
* Start the Web Runtime context and compute the template version key
* based on the given configuration by computing a hash for srcDir
* and watching it for changes.
*
* @public
* @param {Object} config The template configuration
*/
static startContext(config: WebruntimeContextConfig): Promise<WebruntimeContext>;
/**
* Returns the current context
* @public
*/
static getContext(): WebruntimeContext;
/**
* Returns the current context
* @public
*/
static waitForContext(): Promise<WebruntimeContext>;
/**
* Ends the current context and stops watching srcDir for changes.
* @public
*/
static endContext(): void;
}
//# sourceMappingURL=context-service.d.ts.map