Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-98

Get a light-module package from npm repository

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Labels:
      None

      Description

      Provide a command to get packages by supplying their names as arguments.
      mgnl install [package-name-1 package-name-2]

      The name install connotates that it will be ready to use (as in the npm command), so it should attempt to install them to the current magnolia.resources.dir.
      If successful it should output where it installed the module.

      It should offer an option to install to the current location or another location, with --path.

      Rationale
      Magnolia is promoting npm as the place to share light-modules. It should be easy and clean to get those modules. There are other more sophisticated approaches - such as via the "build" command. But there should be a way to just easily get a specific modules.

      The npm install command does this, but has the downside of downloading it into a node_modules directory, this is clunky and could be confusing.

      Additional notes and rationale:
      https://wiki.magnolia-cms.com/display/PMTEAM/Getting+LM+packages+from+npm

        Attachments

          Activity

            People

            Assignee:
            rkowalski Robert Kowalski
            Reporter:
            czimmermann Christopher Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: