...
You can create libraries which are then re-usable from any other Iguana X component.
Expand |
---|
title | Add STEP 1: Start with a component |
---|
|
Expand |
---|
title | Make sure it has an upstream repo |
---|
|
which you have edit rights for and has a remote setup already. |
|
If you need a reminder see Edit a Component |
Expand |
---|
title | STEP 2: Create a directory FOO |
---|
|
Click on the new folder icon and name the folder FOO. Image Added |
Expand |
---|
title | STEP 3: Create a file BARFOObar.lua in the FOO directory with and add a function |
---|
| Try this |
Start here: Image AddedIn the context menu that comes up select Create File and create a FOObar.lua file with this content: Code Block |
---|
function FOObar()
return "The world needs more FOO";
end |
|
Expand |
---|
title | Commit your changes | STEP 4: Invoke Create Library from the FOO folder ellipsis menu: |
---|
|
Image Added Click CREATE |
Expand |
---|
title | Push the changes to the upstream repoSTEP 5: Fill out the repository management screen to determine what remote git repository to put the library code in: |
---|
|
See Repository Management Screen if you need a refresher about this. |
Expand |
---|
title | Right click and convert FOO to a library |
---|
|
Expand |
---|
title | Commit and pushSTEP 6: Commit and push the FOO library changes |
---|
|
See Commit and Push Changes to Git |
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.80STEP 7: After this the code will be in the remote git repository you configured it to be in |
|
You should able to go to the Repository Management Screen and from there navigate to the remote repository to see your changes. |