Git Product home page Git Product logo

apm-repo's Introduction

apm-repo

Repository for the APM tool in the Automation Slimefun addon.

Project structure

Example project structure:

hello/
├── 1.1.0/
│   ├── hello.metis
│   ├── libhello.metis
│   └── vinfo.json
├── 1.0.0/
│   ├── hello.metis
│   └── vinfo.json
└── versions.json

All projects must be in a folder with the same name as the project. Within that folder, there must be a versions.json file containing a JSON list of all the available versions of the project. For the example project above, it would look like this:

["1.1.0", "1.0.0"]

The higher the version is, the closer it should be to the start of the list.

Each version should be in its corresponding folder. Each folder is required to have a vinfo.json file in it. The contents of that file is a single JSON object. Here is an example for hello 1.1.0:

{
  "bin": ["hello.metis"],
  "lib": ["libhello.metis"],
  "dependencies": {
    "sf-dos": "1.2"
  }
}

bin is a list of files that will be downloaded into the /bin/ folder and will be available on PATH. lib is a list of files which the files in bin require access to and are downloaded to /lib/<package>/ (e.x. /lib/hello/). include, while not shown in this example, would be a list of files that get downlaoded into /include/, and will be available for import. dependencies is an object of pairs of the name of the dependency and a version selector. APM will determine the highest version that meets the selector. For example, in the example, an sf-dos version of 1.2.9 will satisfy the dependency, but a version of 1.3.4 will not.

apm-repo's People

Contributors

seggan avatar

Watchers

 avatar

Forkers

schntgaispock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.