xodio / xod

XOD IDE
https://xod.io
GNU Affero General Public License v3.0
893 stars 119 forks source link

As an IDE admin I want to make some libs preloaded so that xoders of mine have company-specific libs avalable right away #2014

Open nkrkv opened 4 years ago

nkrkv commented 4 years ago

For enterprise and educational applications, it is desired to have a list of some libraries preloaded already at the moment when IDE starts. Currently, the list of such libraries is hard-coded and includes only the xod-*/* standard libraries. Let’s make it configurable with config.json so that an admin could add new ones.

User story

I edit my custom config.json and list things to load explicitly:

{
  "libraries": {
    "load": [
      "mycompany/libfoo",
      "mycompany/libbar@0.2.3"
    ]
  }
}

The config above should cause the installation of mycompany/libfoo at the latest version and mycompany/libbar at version 0.2.3. These libraries installed are saved in the workspace in the same way as if I’d installed them manually. If at the moment of IDE start the libraries with matching names found in the workspace, they are not installed.

Acceptance criteria

How to implement

Out of scope

brusherru commented 4 years ago

Should these libraries be saved in a workspace after saving the project? If so — how they can be managed then, especially for updating stale library versions? 🤔

nkrkv commented 4 years ago

Clarified that at the end of “User Story”. See “Out of scope” also.