generator-theia
Theia Generator
Last updated 2 years ago by theia .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install generator-theia 
SYNC missed versions from official npm registry.

Theia Generator

Getting started

In the generator-theia directory:

  • yarn
  • yarn link to install generator-theia as a global module
  • yarn global add yo to install yo globally

In the example root directory:

  • yo theia:browser to generate the browser app
  • yo theia:electron to generate the electron app

Overwrite all existing files if any.

Providing extensions

A node package can declare several extensions via theiaExtensions property in package.json:

{
    "theiaExtensions": [{
      "frontend": "lib/myExtension/browser/myextension-frontend-module",
      "backend": "lib/myExtension/node/myextension-backend-module",
    }, {
      "frontend": "lib/myExtension2/browser/myextension2-browser-module",
      "frontendElectron": "lib/myExtension2/electron-browser/myextension2-electron-browser-module",
      "backend": "lib/myExtension2/node/myextension2-node-module",
      "backendElectron": "lib/myExtension2/electron-main/myextension2-electron-main-module"
    }]
}

Each extension can consist of the following modules:

  • frontend is used in the browser env and as well in the electron if frontendElectron is not provided
  • frontendElectron is used in the electron env
  • backend is used in the node env and as well in the electron env if backendElectron is not provided
  • backendElectron is used in the electron env

An extension module should have a default export of ContainerModule | Promise<ContainerModule> type.

Consuming extensions

A node package should contain theia.package.json listing node packages providing extensions as dependencies. Theia generator based on theia.package.json generates package.json as well as other artifacts corresponding to the env.

Current Tags

  • 0.1.1                                ...           latest (2 years ago)
  • 0.2.0-next.4ef019c8                                ...           next (2 years ago)
  • 0.1.0-testnext.54410a67                                ...           testnext (2 years ago)

85 Versions

  • 0.2.0-next.4ef019c8                                ...           2 years ago
  • 0.2.0-next.d437aedb                                ...           2 years ago
  • 0.2.0-next.42e55d72                                ...           2 years ago
  • 0.2.0-next.91e2be85                                ...           2 years ago
  • 0.2.0-next.803bb353                                ...           2 years ago
  • 0.2.0-next.7b51a521                                ...           2 years ago
  • 0.2.0-next.4e08db62                                ...           2 years ago
  • 0.2.0-next.e19cfb28                                ...           2 years ago
  • 0.2.0-next.8456d933                                ...           2 years ago
  • 0.2.0-next.7d9e304f                                ...           2 years ago
  • 0.2.0-next.f2ec9708                                ...           2 years ago
  • 0.2.0-next.c7c46de3                                ...           2 years ago
  • 0.2.0-next.5c23bd8c                                ...           2 years ago
  • 0.2.0-next.2d788020                                ...           2 years ago
  • 0.2.0-next.daed968e                                ...           2 years ago
  • 0.2.0-next.45884b21                                ...           2 years ago
  • 0.2.0-next.d7b6aaf4                                ...           2 years ago
  • 0.2.0-next.8f11da78                                ...           2 years ago
  • 0.2.0-next.1ba6ec0c                                ...           2 years ago
  • 0.2.0-next.26f9c65e                                ...           2 years ago
  • 0.2.0-next.f2ee4c8a                                ...           2 years ago
  • 0.2.0-next.f9650ac1                                ...           2 years ago
  • 0.2.0-next.957920dd                                ...           2 years ago
  • 0.2.0-next.03fe4f3a                                ...           2 years ago
  • 0.2.0-next.a683e646                                ...           2 years ago
  • 0.2.0-next.29736537                                ...           2 years ago
  • 0.2.0-next.ba9f3625                                ...           2 years ago
  • 0.2.0-next.fb0dca0f                                ...           2 years ago
  • 0.2.0-next.14ec9e2a                                ...           2 years ago
  • 0.2.0-next.84ae586f                                ...           2 years ago
  • 0.2.0-next.29255833                                ...           2 years ago
  • 0.2.0-next.8ed03204                                ...           2 years ago
  • 0.2.0-next.17def95e                                ...           2 years ago
  • 0.2.0-next.c1dc913c                                ...           2 years ago
  • 0.2.0-next.24e0c5ec                                ...           2 years ago
  • 0.2.0-next.6da6a565                                ...           2 years ago
  • 0.2.0-next.2b648689                                ...           2 years ago
  • 0.2.0-next.e1c870ac                                ...           2 years ago
  • 0.2.0-next.6162805b                                ...           2 years ago
  • 0.2.0-next.841138f0                                ...           2 years ago
  • 0.2.0-next.a1ef968e                                ...           2 years ago
  • 0.2.0-next.d9b8934f                                ...           2 years ago
  • 0.2.0-next.8528ff76                                ...           2 years ago
  • 0.2.0-next.86e09425                                ...           2 years ago
  • 0.2.0-next.14fcf359                                ...           2 years ago
  • 0.2.0-next.2926cf77                                ...           2 years ago
  • 0.2.0-next.23bbfd84                                ...           2 years ago
  • 0.2.0-next.df86bc7b                                ...           2 years ago
  • 0.2.0-next.4109a317                                ...           2 years ago
  • 0.2.0-next.ef61f84a                                ...           2 years ago
  • 0.2.0-next.d13f9c3e                                ...           2 years ago
  • 0.2.0-next.cdf22bed                                ...           2 years ago
  • 0.2.0-next.432e741e                                ...           2 years ago
  • 0.2.0-next.bc5b6fb1                                ...           2 years ago
  • 0.2.0-next.d890f670                                ...           2 years ago
  • 0.2.0-next.e1f3ba62                                ...           2 years ago
  • 0.2.0-next.4ee81012                                ...           2 years ago
  • 0.2.0-next.154061a9                                ...           2 years ago
  • 0.2.0-next.b207e0cb                                ...           2 years ago
  • 0.2.0-next.f68bd4ca                                ...           2 years ago
  • 0.2.0-next.033211a1                                ...           2 years ago
  • 0.2.0-next.f559774a                                ...           2 years ago
  • 0.2.0-next.74593ca4                                ...           2 years ago
  • 0.2.0-next.979321ff                                ...           2 years ago
  • 0.2.0-next.048b5406                                ...           2 years ago
  • 0.2.0-next.7c37256d                                ...           2 years ago
  • 0.2.0-next.31ee1730                                ...           2 years ago
  • 0.2.0-next.1ea32ca6                                ...           2 years ago
  • 0.2.0-next.26ad9e9a                                ...           2 years ago
  • 0.2.0-next.a7afb763                                ...           2 years ago
  • 0.2.0-next.a2c3d3a3                                ...           2 years ago
  • 0.2.0-next.515e23db                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.2.0-next.504c0dcc                                ...           2 years ago
  • 0.2.0-next.eac7a388                                ...           2 years ago
  • 0.2.0-next.5039c3dd                                ...           2 years ago
  • 0.2.0-next.b1f7b9fd                                ...           2 years ago
  • 0.2.0-next.f923ee6a                                ...           2 years ago
  • 0.2.0-next.8d8e5cb6                                ...           2 years ago
  • 0.2.0-next.02292ee9                                ...           2 years ago
  • 0.2.0-next.61852d2d                                ...           2 years ago
  • 0.2.0-next.f2962684                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.1.0-next.7fe83a96                                ...           2 years ago
  • 0.1.0-testnext.54410a67                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 1
Last Month 13
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |