Giter VIP home page Giter VIP logo

Comments (4)

jrburke avatar jrburke commented on July 17, 2024

Will think about it for 0.4.0, but in the meantime, I updated https://github.com/volojs/repos to include angular/angular with the URL overrides and amd info, so now if you do:

volo add angular/angular/1.3.0

It should do the right thing, even on reinstall.

from volo.

zanona avatar zanona commented on July 17, 2024

Great idea, specially for automation (CI) where volo install would be used to set the desired structure for building the app, specially because the build will generally fail on interactive commands.
I would be great to have the depends and exports information embedded into package.json as well.

one question @jrburke, I saw that for angular, the amd.json was created in order to establish the amd information. Is the amd.json referenced somewhere with more information or is it just a temporary workaround?

from volo.

zanona avatar zanona commented on July 17, 2024

I found out that by using requirejs shim config options achieves that perfectly, working around the current issue where there would be no need to re-define that in volo as well.

That being said, it could work like the below, while these settings could be used for both runtime and optimisation with r.js without the need of creating multiple files through mainConfigFile option as well.

requirejs.config({
    shim: {
        angular: {
            deps: ['jquery'],
            exports: 'angular'
        }
    }
});

However, it would still be handy to be able to perform that straight from volo I guess. Specially when building volo re-usable packages that depend on other libraries that need this shim.

from volo.

Rush avatar Rush commented on July 17, 2024

I find shims very awkward to use when dealing with multiple projects. I want to simply copy/init my deps and be done with it. Specifying them in two places is not optimal.

from volo.

Related Issues (20)

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.