Skip to content
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

Scoped Packages #13

Open
hughsk opened this issue Jun 15, 2014 · 0 comments
Open

Scoped Packages #13

hughsk opened this issue Jun 15, 2014 · 0 comments

Comments

@hughsk
Copy link
Member

hughsk commented Jun 15, 2014

Will most likely require a major version bump, but I'd like to get this done soon :)

Let's get rid of sources entirely and stick to a key/value mapping of package scopes -> dependencies:

{
  "aperture": {
    "mango": ["features/mango/*"],
    "flow": ["flow/*"]
  }
}

Such that in your code you might pull in modules like so:

var graph = require('@flow/graph')
var node  = require('@flow/node')

@timoxley what're your thoughts on the above? I feel it's better this way, keeps it clear the a module's not coming from npm and consistent with the soon-to-arrive scoped packages: can allow smaller teams to work as if they had their own on-premise npm without all the maintenance overhead involved, potentially easing the transition down the line too.

If we need to use anything other than the sources property then it might be time to look into an optional aperture.json, but if the config can stay this simple that'd be nice!

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

No branches or pull requests

1 participant