generator-reflex-ide-extension NPM version

adding new complex extension into existing refelx-ide repository

Installation

Install Yeoman and generator-reflex-ide-extension using npm (we assume you have pre-installed node.js):

npm install -g yo
npm install -g generator-reflex-ide-extension

Creating an extension

First, clone RIDE 2.0 and go to a theia package:

git clone https://github.com/TatianaLiakh/RIDE-2.0.git
cd RIDE-2.0/theia

Then run generator, it will ask you for name of your extension:

yo reflex-ide-extension

Result extension module will be placed in RIDE-2.0/theia/<extension-name>/.

Publication of the extension

To publish your extension you have to create an npm account. Then log in locally using your credentials:

npm login 

And now publish the extension package (run command from RIDE-2.0/theia/<extension-name>/):

npm publish 

Adding a published extension:

To add published extension to your build you need to install corresponding dependency from npm registry. Run command from RIDE-2.0/theia/browser-app/ for web build and from RIDE-2.0/theia/electron-app/ for desktop build (or both at the same time):

npm install <extension-name>@<version> --save 

Removing a published extension:

Same as adding but a bit different command:

npm uninstall <extension-name>@<version> --save 

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © Vitchenko Vladislav