Search Unity

Package repository x Development Repository

Discussion in 'Package Manager' started by CarreraSilvio, Feb 19, 2020.

  1. CarreraSilvio

    CarreraSilvio

    Joined:
    Jul 21, 2012
    Posts:
    31
    I've been trying to find the best way to publish a package and to develop it. Right now the repo needs only to have the defined structure by unity:

    <root>
    ├── package.json
    ├── README.md
    ├── CHANGELOG.md
    ├── LICENSE.md
    ├── Editor
    │ ├── Unity.[YourPackageName].Editor.asmdef
    │ └── EditorExample.cs
    ├── Runtime
    │ ├── Unity.[YourPackageName].asmdef
    │ └── RuntimeExample.cs
    ├── Tests
    │ ├── Editor
    │ │ ├── Unity.[YourPackageName].Editor.Tests.asmdef
    │ │ └── EditorExampleTest.cs
    │ └── Runtime
    │ ├── Unity.[YourPackageName].Tests.asmdef
    │ └── RuntimeExampleTest.cs
    └── Documentation~
    └── [YourPackageName].md



    Example Repo I'm making: https://bitbucket.org/carreraSilvio/tool_playspeed/src/master/

    But what would be the best way to test the package that I'm developing in Unity and to version it as well?

    Right now I have another Dummy project that I load the package and test it, but it's cumbersome to iterate on the code. The best way I found was to copy the package manually to the dummy project iterate there and then copy back to the clean folder to be versioned.

    Any suggestions on how to go about this?
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
  3. CarreraSilvio

    CarreraSilvio

    Joined:
    Jul 21, 2012
    Posts:
    31
    Thanks for the quick reply Favo-Yang. What I ended up doing was

    DummyProject (Local Only)
    -- Assets
    ----Packages
    -------Package_01 (Versioned to a given rep)
    ----------Contents
    -------Package_02 (Versioned to a different rep)
    ----------Contents

    And so on. This way I can iterate on the package code and easily submit the changes but without having to add package via file protocol or via git when it's still under development. What are your thoughts on it?
     
  4. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    Sure, a local dummy project works.
     
    CarreraSilvio likes this.