Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

package.json provide before #34

Open
bmatusiak opened this issue Feb 23, 2014 · 0 comments
Open

package.json provide before #34

bmatusiak opened this issue Feb 23, 2014 · 0 comments

Comments

@bmatusiak
Copy link
Contributor

it would be ideal to have a "before" under plugins.package.json

so one can tell a plugin to load before a provided plugin (if provided plugin is defined)

{
    "name": "auth",
    "version": "0.0.1",
    "main": "auth.js",
    "private": true,
    "plugin": {
        "consumes": ["database"],
        "provides": ["auth"]
    }
}
{
    "name": "auth-env",
    "version": "0.0.1",
    "main": "auth-env.js",
    "private": true,
    "plugin": {
        "before": ["auth"]
    }
}

this would allow plugin "auth-env" to register before "auth" without knowing "auth-env" is there,
and allow for testing and dev plugins without the main plugin knowing about it

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