@communities-webruntime/services
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).
Last updated 21 hours ago by tconn .
MIT · Original npm · Tarball · package.json
$ cnpm install @communities-webruntime/services 
SYNC missed versions from official npm registry.

Lightning Web Runtime :: Core API

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.

Context

Most operations require that a context be already established. The context says a lot about your application and since the compiler is stateless, you will have to establish a context before starting. The context-service provides you with 3 methods: startContext, getContext and endContext.

Usage

import { startContext } from '@webruntime/api';

await contextService.startContext(options);

try {
    // do something
} finally {
    contextService.endContext();
}

Reference

Context Service Documentation

Generators

TBD

Usage

Get all the resources for the current application:

import { routeService, resourceService } from '@webruntime/api';

const resources = routeService.getRoutesResources(routes, theme, locale, isDesignMode);
await Promise.all(
    resources.map(routeDescriptor => {
        return resourceService.get(routeDescriptor);
    })
);

Reference

Express Middlewares

TBD

Reference

Current Tags

  • 0.30.13                                ...           latest (21 hours ago)
  • 0.29.13-226.1                                ...           summer20 (2 months ago)

105 Versions

  • 0.30.13                                ...           21 hours ago
  • 0.30.12                                ...           4 days ago
  • 0.30.11                                ...           4 days ago
  • 0.30.10                                ...           7 days ago
  • 0.30.9                                ...           11 days ago
  • 0.30.8                                ...           12 days ago
  • 0.30.7                                ...           15 days ago
  • 0.30.6                                ...           19 days ago
  • 0.30.5                                ...           20 days ago
  • 0.30.4                                ...           20 days ago
  • 0.30.3                                ...           21 days ago
  • 0.30.2                                ...           22 days ago
  • 0.30.1                                ...           a month ago
  • 0.30.0                                ...           a month ago
  • 0.29.34                                ...           a month ago
  • 0.29.33                                ...           a month ago
  • 0.29.32                                ...           a month ago
  • 0.29.31                                ...           a month ago
  • 0.29.30                                ...           a month ago
  • 0.29.29                                ...           a month ago
  • 0.29.28                                ...           a month ago
  • 0.29.27                                ...           a month ago
  • 0.29.26                                ...           a month ago
  • 0.29.25                                ...           a month ago
  • 0.29.24                                ...           a month ago
  • 0.29.23                                ...           a month ago
  • 0.29.22                                ...           2 months ago
  • 0.29.21                                ...           2 months ago
  • 0.29.20                                ...           2 months ago
  • 0.29.13-226.1                                ...           2 months ago
  • 0.29.19                                ...           2 months ago
  • 0.29.18                                ...           2 months ago
  • 0.29.17                                ...           2 months ago
  • 0.29.16                                ...           2 months ago
  • 0.29.15                                ...           2 months ago
  • 0.29.13-226.0                                ...           2 months ago
  • 0.29.14                                ...           2 months ago
  • 0.29.13                                ...           2 months ago
  • 0.29.12                                ...           2 months ago
  • 0.29.11                                ...           2 months ago
  • 0.29.10                                ...           2 months ago
  • 0.29.9                                ...           2 months ago
  • 0.29.8                                ...           2 months ago
  • 0.29.7                                ...           2 months ago
  • 0.29.6                                ...           2 months ago
  • 0.29.5                                ...           2 months ago
  • 0.29.4                                ...           2 months ago
  • 0.29.3                                ...           2 months ago
  • 0.29.2                                ...           2 months ago
  • 0.29.1                                ...           2 months ago
  • 0.29.0                                ...           2 months ago
  • 0.28.5                                ...           2 months ago
  • 0.28.4                                ...           2 months ago
  • 0.28.3                                ...           2 months ago
  • 0.28.2                                ...           2 months ago
  • 0.28.1                                ...           2 months ago
  • 0.28.0                                ...           2 months ago
  • 0.27.1                                ...           2 months ago
  • 0.27.0                                ...           2 months ago
  • 0.26.1                                ...           2 months ago
  • 0.26.0                                ...           3 months ago
  • 0.25.3                                ...           3 months ago
  • 0.25.2                                ...           3 months ago
  • 0.25.1                                ...           3 months ago
  • 0.25.0                                ...           3 months ago
  • 0.24.0                                ...           3 months ago
  • 0.23.1                                ...           3 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.4                                ...           3 months ago
  • 0.22.3                                ...           3 months ago
  • 0.22.2                                ...           3 months ago
  • 0.22.1                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.21.9                                ...           3 months ago
  • 0.21.8                                ...           3 months ago
  • 0.21.7                                ...           3 months ago
  • 0.21.6                                ...           3 months ago
  • 0.21.5                                ...           3 months ago
  • 0.21.4                                ...           3 months ago
  • 0.21.3                                ...           3 months ago
  • 0.21.2                                ...           3 months ago
  • 0.21.1                                ...           3 months ago
  • 0.21.0                                ...           4 months ago
  • 0.20.18                                ...           4 months ago
  • 0.20.17                                ...           4 months ago
  • 0.20.15                                ...           4 months ago
  • 0.20.13-226.0                                ...           4 months ago
  • 0.20.14                                ...           4 months ago
  • 0.20.13                                ...           4 months ago
  • 0.20.12                                ...           4 months ago
  • 0.20.11                                ...           4 months ago
  • 0.20.10                                ...           4 months ago
  • 0.20.9                                ...           4 months ago
  • 0.20.8                                ...           4 months ago
  • 0.20.7                                ...           4 months ago
  • 0.20.6                                ...           4 months ago
  • 0.20.5                                ...           4 months ago
  • 0.20.3                                ...           4 months ago
  • 0.20.2                                ...           4 months ago
  • 0.20.1                                ...           4 months ago
  • 0.19.5                                ...           4 months ago
  • 0.19.4                                ...           4 months ago
  • 0.19.3                                ...           4 months ago
  • 0.19.2                                ...           4 months ago
  • 0.18.51                                ...           4 months ago

Copyright 2014 - 2016 © taobao.org |