To use it, install yo
and the generator
.
npm install -g yo generator-theia-extension
To create a sample project with a Theia extension including a browser and electron app, run:
mkdir my-extension && cd my-extension
yo theia-extension
Extension options
hello-world
: creates a simple extension which provides a command and menu item which displays a message.widget
: creates the basis for a simple widget including a toggle command, alert message and button displaying a message.labelprovider
: create a simple extension which adds a custom label (with icon) for.my
files.tree-editor
: create a tree editor extension.
For configuration options, see
yo theia-extension --help
Follow this instruction to login to the npm registry with a user account.
If you don't have an account contact Theia organization to request one.
Publish with np.
npx np
- Eclipse Public License 2.0
- 一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception
"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia