Skip to content
This repository was archived by the owner on Aug 2, 2018. It is now read-only.

npm compatibility #354

Open
Integral opened this issue Oct 4, 2014 · 5 comments
Open

npm compatibility #354

Integral opened this issue Oct 4, 2014 · 5 comments

Comments

@Integral
Copy link

Integral commented Oct 4, 2014

Hey!

Thanks for this wonderful package manager!
Have a one question. A lot of commonJS modules wrap require("something") by factory functions. Let's look at some backbone.js plugins for example. Does it mean that i need to convert all of this modules to local files and change module.exports = factory(require("underscore"), require("backbone")) to module.exports = factory(require("jashkenas/underscore"), require("jashkenas/backbone"))? Are there any workarounds here?

@jmas
Copy link

jmas commented Oct 17, 2014

npm is supported by default.

a.js:

var a = require('underscore');
var b = require("jashkenas/backbone");

Then run:

$ duo a.js

@hkjels
Copy link

hkjels commented Jan 14, 2015

I've tried this several times without any luck. Even if I have the dependencies listed in both package.json and component.json. I know the idea initially was to support npm, but are we there yet?

@stephenmathieson
Copy link
Contributor

no, npm is not supported yet

@joshrtay
Copy link

when can we expect npm support?

@Mouvedia
Copy link

dupe of #193?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants