Giter VIP home page Giter VIP logo

repos's Introduction

volojs/repos

A set of package.json and amd.json files that serve as "overrides" for github repos that do not have the correct information in the repos themselves.

package.json

volo add will look for a "volo" property in a package.json to find a download location for any project that does not follow the default conventions used by volo to find the installable piece of code.

If a project does not have a "volo" property in their package.json for the latest version tag of their project, then this repo is consulted for an override.

See the package.json info on the volo wiki for what kinds of volo information can go in a package.json.

amd.json

For projects that specify an "amd" section in their package.json, volo add will attempt to convert a dependency to be an AMD module wrapped in a define() call. volo add scans the file, and if it is already calling define() then it will do nothing.

However if the file does not call define, volo add will reach out to this repo and look for a user/repo/amd.json file that specifies the dependencies and exports for the file and use that to wrap the file.

If there is no amd.json file in this repo, then the user is prompted for the answers.

This can be turned off for a particular add by passing -amdoff to the add command: volo add -amdoff.

An example amd.json for Backbone:

{
    "deps": ["jquery", "underscore"],
    "exports": "Backbone"
}

If there are no dependencies, you can pass an empty array. Example one for Zepto:

{
    "deps": [],
    "exports": "Zepto"
}

repos's People

Contributors

jrburke avatar karlguillotte avatar

Watchers

 avatar

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.