Child pages
  • Developing packages for NGClient2
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[workspace]/.metadata/.plugins/com.servoy.eclipse.ngclient.ui/target

Is the working directoy of the NGClient2 sources,
the package.json will be adjusted by Servoy depending on the web packages you have installed for the active solution.

Then Servoy will run in developer "npm run build_debug_nowatch" script on that to generate source mapped application for easier debugging in the developer.
It will only run that when it sees it needs to run "npm install webpackage" for a webpackage that is not installed.

"Copy the NGClient2 sources" menu entry in the Solex will overwrite the sources in that target dir and trigger a npm install again for all the packages and will run once a npm build
This is then a clean install.

To develop a Component or Service package they must be on the same version of angular then the core.
that Component or Service pacakage can be added to the current solution as a project (instead of a zip)

the spec file must have a section:
This one describes a service:

"ng2Config": {
"packageName": "@servoy/ngdesktopfile",
"serviceName": "NGDesktopFileService",
"entryPoint": "dist/servoy/ngdesktopfile"
},

The PackageName is the npm name.
The ServiceName is how the Service is exported like:

@Injectable()
export class NGDesktopFileService {


The entry point is the distribution folder what is the root of the npm package.

If it is installed as a source project then that folder is used to install that npm package (as a folder install)

To debug then you first need to run the the package folder in watch mode:

npm run build_debug

and after that the same command must be run in the [workspace]/.metadata/.plugins/com.servoy.eclipse.ngclient.ui/target folder to also run that one in watch mode



  • No labels