Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

package.json fallback if no component.json exist for remote deps #613

Open
timaschew opened this issue Nov 25, 2014 · 0 comments
Open

package.json fallback if no component.json exist for remote deps #613

timaschew opened this issue Nov 25, 2014 · 0 comments
Milestone

Comments

@timaschew
Copy link
Member

because of reactions like this: chaijs/sinon-chai#26 (comment)

So my idea is to fetch the data from github, not npm.
Because the files which are used are implicit via require calls from the entry point (main property of the package.json) we need to download the archive and not single files.

Then we need to do the same as browserify and duo are doing: parse the require calls, transitively and collect them and maybe generate a component.json from it, put it to the components directory where alll the remote files exist. Then we need to do the same for each dependency, at this point we need a mapping from the npm repo names to the github url and for each dependency we need to do the same, transitively.

Then we're done, so we don't need to change something for the build process. Because we have all the component.json files. We only need to extend the install process for remotes.

@timaschew timaschew added this to the 1.1.0 milestone Nov 25, 2014
@timaschew timaschew changed the title package.json fallback if no component.json exist for remote package.json fallback if no component.json exist for remote deps Nov 25, 2014
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

1 participant