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

Get a light-module package from npm repository


    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.0
    • None
    • None
    • Yes
    • Basel 87
    • 8

      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.

      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:

        Acceptance criteria

              rkowalski Robert Kowalski
              czimmermann Christopher Zimmermann
              0 Vote for this issue
              5 Start watching this issue