Naval Pilgrim's Mayflower
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    duo-debowerpublic

    duo-debower

    converts bower.json to component.json

    intended to be used as a duo build plugin which runs immediately after fetching a package from git.

    if a component does not have a component.json but does have a bower.json, then a component.json is automatically generated using the information in bower.json.

    this enables you to require bower packages using their short repo name, e.g.

    require('angular-bower/angular');
    

    when creating the component.json bower dependencies are converted to their github urls using bower.lookup

    this project is experimental

    the duo build hook is not available yet so to see this you have to use my fork of duo which can be found here

    see this plugin in action here

    roadmap:

    • more config options (e.g. scriptExtensions, styleExtensions, amdMappings)
    • auto-require bower dependencies?
    • deamdify/browserify-shim?

    Keywords

    none

    install

    npm i duo-debower

    Downloadsweekly downloads

    8

    version

    0.2.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar