Versions Compared

Key

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

...

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

Create

Create a Component

Expand
Include Page
Create a Component
titleAdd a component using green [+ COMPONENT] button
STEP 1: Start with a component which you have edit rights for and has a remote setup already.

If you need a reminder see Edit a Component

Set an upstream repository & Set upstream Git repo

Expand
titleMake sure it has an upstream repo
Include Page
Set an upstream repositorySet an upstream repository
Expand
titleSTEP 2: Create a directory FOO

Click on the

Create Folder iconImage Removed
  • Enter the folder name and click and click the green [CREATE] button

    Image Removed
  • You should see something like this:

    Image Removed
  • new folder icon and name the folder FOO.

    Image Added
  • Select the Create File menu optin on the FOO folder

    Image Removed
  • Enter the folder name and click and click the green [CREATE] button

    Image Removed
  • Create a function in the BAR.lua file, you can paste this example
    Expand
    titleSTEP 3: Create a file BARFOObar.lua in the FOO directory with and add a function
    FOObar

    Start here:

    Image Added

    In 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

    You should see something like this:

    Image Removed

    Bang - this work flow is currently broken as of 10.1.80
    Expand
    Expand
    titleNow create a new component + FROM URL based on the git repo of this library
    titleCommit the changes and push them to the upstream repo
    • Click the Commit changes toolbar button

      Image Removed
    • The commit dialogue will open, enter a commit message and click the green [COMMIT] button

    • Click the Push changes to remote toolbar button

      Image Removed
    • The upstream repository will look something like this:
      NOTE: FOO is currently just a folder

      Image Removed
    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. It doesn’t currently - there is a bug.

    STEP 4: Invoke Create Library from the FOO folder ellipsis menu:
    Image Added

    Click CREATE

    Expand
    titleSTEP 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
    titleSTEP 6: Commit and push the FOO library changes

    See Commit and Push Changes to Git

    Expand
    titleSTEP 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.