Versions Compared

Key

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

So you’re writing an interface and you make some useful routines and then you realize that you’d like to use this library in other components.

How do you do this?

You can create libraries which are then re-usable from any other Iguana X component.

Expand
titleAdd a component

Expand
titleMake sure it has an upstream repo

Expand
titleCreate a directory FOO

Expand
titleCreate a file BAR.lua in the directory with a function

Try this:

Code Block
function FOObar()
   return "The world needs more FOO";
end
Expand
titleCommit your changes

Expand
titlePush the changes to the upstream repo

Expand
titleRight click and convert FOO to a library

Expand
titleCommit and push

If you look at the FOO library it should have the BAR.lua file in it.

If you look at the repo for the component it should have the link to the library in it.

Expand
titleNow create a new component + FROM URL based on the git repo of this library

Bang - this work flow is currently broken as of 10.1.80