The Eclipse Update site project to package our feature/plugin.
README.md: this current file.gitignore: Git related file.project: the Eclipse project configuration
To ignore: all content generated when the site is built.
In Eclipse IDE, import an existing project using this .project file.
There are some prerequisites before executing the build process:
- first you need to setup the
featureproject and apply the build procedure until the configuration step (included) - also (even if this should be in the procedure for the build of the plugin), please ensure that:
- the node modules have been installed (to grab the backend): running
npm installat the root of the project - the node modules are up to date: same as above but with
npm update - the
node.exeexecutable has been downloaded into the folderruntimeunder the root of the project - the editor backend has been built
- you configured the backend to use the port used by the plugin
- the node modules have been installed (to grab the backend): running
For the three last points, you can run the grunt task grunt prepare-site which does that for you (it sets the port to 50000 which is the default used, and downloads a version of node hard-coded in the gruntfile).
Then:
-
Be sure to clean all previously generated files by running
grunt clean:site(not necessary if you rangrunt prepare-site) -
Open
site.xmlin the IDE, the Update Site editor should open -
In main tab
Site Map, click buttonBuild All
Then, you can either run the task grunt package-site which creates an archive and remove original files, or do it yourself by copying the following content:
features/plugins/site.xml
And run grunt clean:site to remove the generated content.



