Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created December 9, 2009 04:53
Show Gist options
  • Select an option

  • Save subtleGradient/252274 to your computer and use it in GitHub Desktop.

Select an option

Save subtleGradient/252274 to your computer and use it in GitHub Desktop.
MooTools Dependency System

MooTools Dependency System

  • Package
    • tag
      • group (filename)
        • Provide

Package has many tags
Package/tag has many groups
Package/tag/group has many provides
Package/tag/group/provide has many requires

Consistency

The dependency strings should be consistent across all the various possible uses. They are used in more than just the file headers.

Ideal / Recommended format: A flat array of Package:tag/Provide strings

  • File headers
    requires: [Package:tag/Provide]
  • commandline/shell/terminal building
    build Package:tag/Provide
  • http building/linking
    build/?Package:tag/Provide
  • JavaScript building
    build(['Package:tag/Provide'])

Optional undocumented formats:

:<space>, : and / should be interchangeable.

"Package:tag/Provide" === "Package:tag:Provide" === "Package/tag/Provide" === "Package: tag: Provide"

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