-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] use npm to download extension dependencies after installing from registry #9350
Comments
Comment by le717 |
Comment by mackenza Is this being considered for merging? I think it's a great addition speaking as some who has published a node-based extension with dependencies. |
Comment by zaggino
|
Comment by mackenza ah, I see. That would closely resemble what Atom does with APM wrapping On Tue, Mar 17, 2015 at 5:10 AM, Martin Zagora [email protected]
|
Comment by zaggino To be honest, I've no idea what Atom does or doesn't do, never had time to take a closer look at it. |
Comment by mackenza Yeah, basically this is what they do. The have the Atom Package Manager Atom is a hot mess, honestly. Truly an editor without an identity. On Tue, Mar 17, 2015 at 6:22 PM, Martin Zagora [email protected]
|
Comment by nethip
Couple of things to consider for this PR.
Talking about the third point, how about downloading the extension itself from just a link? Something like, the registry will only have links (mostly to GitHub repositories) and we download the extension itself from Github repository/external link followed by installing the dependencies(which this PR is about), if any. CC |
Comment by mackenza
On 3, NPM is quickly becoming the dependency manager to rule them all. Certainly it's not restricted to Node modules anymore. I can find most of the modules I use for front end JS in there, as well. I think what |
Comment by zaggino
|
Comment by petetnt Looks good to me with some minor nits about personal preferences. |
Comment by ficristo I like the idea but I defer the final decision to others, I'm not confident on how this will interact with the registry. A part the following few questions, LGTM. I suppose we can start to using |
Comment by zaggino
|
Comment by ficristo I didn't expect to become complex like this, but I believe is better than using npm API. Thank you |
Comment by zaggino Have a look again guys, I've ripped out the spawn stuff into a separate function so the condition is much more readable. Also used |
Comment by zaggino Since 1.9 is too far away, can this be reviewed / merged for 1.8? |
Comment by zaggino sorry I missed this one... ready to re-review |
Comment by ficristo
You should update |
Comment by zaggino
|
Comment by ficristo Nice! |
Comment by zaggino
|
Comment by madanbn moving it out to 1.9 release as we are closer to the 1.8 release time frame. |
Comment by ficristo
|
Comment by zaggino Right, had a look, I'll resolve this too. |
Comment by zaggino Anything missing for this except brackets-registry PR ? |
Comment by zaggino |
Comment by swmitra
|
Comment by MiguelCastillo this looks good to me. |
Comment by ficristo Today I was thinking if this will work if the user is behind a proxy: do we need to pass it to npm script? |
Comment by zaggino I believe that it will pick up whatever is configured for npm on the machine. npm's config is stored in user's folder so if the domain is running under the same user, everything should be allright. |
Comment by ficristo
Don't we use the npm version embedded in this PR? If so don't we need to pass the proxy somehow to npm? |
Issue by zaggino
Sunday Feb 15, 2015 at 02:29 GMT
Originally opened as adobe/brackets#10602
Seems to be working fine. Tests included, but currently they are disabled in Gruntfile so they need to be run manually, wasn't investigating what was the reason for disabling the tests.
zaggino included the following code: https://github.com/adobe/brackets/pull/10602/commits
The text was updated successfully, but these errors were encountered: