Child pages
  • Developing packages for NGClient2

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

That gives you the various api to talk to servoy or use helper functions/types: servoy-eclipse/public-api.ts at master · Servoy/servoy-eclipse (github.com)

Releasing a component

When releasing a component you need to build the component first

that means in the component root directory you have to do:

npm install                        (to make sure all package.json depedencies are there, node_modules folder is created, this should be done also for development)

npm run build                   (to really make the production build, compiling the component)

npm run make_release      (this will generate then a zip file that is described in the scripts/build.js that should be adjusted to include all the stuff you want to have, that mostly the ng1 dirs/spec files and the "dist/xxx" folder)


this build and make_release scripts of npm are there when you generate a setup/project through the developer (the skeleton code)

else look at servoy-extra-components/package.json at master · Servoy/servoy-extra-components (github.com) (that make_release does a build and a package at one go)

and servoy-extra-components/build.js at master · Servoy/servoy-extra-components (github.com) for the script that makes the zip