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 |
---|
title | Make sure it has an upstream repo |
---|
|
|
Expand |
---|
title | Create a directory FOO |
---|
|
|
Expand |
---|
title | Create a file BAR.lua in the directory with a function |
---|
|
Try this: Code Block |
---|
function FOObar()
return "The world needs more FOO";
end |
|
Expand |
---|
title | Push the changes to the upstream repo |
---|
|
|
Expand |
---|
title | Right click and convert FOO to a library |
---|
|
|
Expand |
---|
|
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 |
---|
title | Now 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 |