Skip to content

Extend package.json #7

Description

@richrdkng
  • extend package.json with use key
  • define use() behavior, when including sub-namespaces (namespaces within classes), partials, native packages and global packages
  • create an open standard draft for a standard npm package naming convention (@name/package) similar to composer/packagist
// draft

// within package.json...
// for a partial
"use" : {
    "partial" : "foreach",
    "namespace" : "js.foreach"
}

// for a module/class/general package
"use" : {
    "module" : "Exception",
    "namespace" : "js.lang",
    "structure" : {
        "directory" : "dist"
        "main" : "Exception",
        "exception" : [
            "ArgException",
            "RangeException",
            "ValueException"
        ]
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions