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

create-light-module should support "."

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None
    • Documentation update required:
      Yes
    • Sprint:
      Basel 83
    • Story Points:
      1

      Description

      `create-light-module` should accept "no name" for a module

      My last workflow for creating a module:

      cd light-modules
      # my mgnl modules are prefixed mgnl-
      mkdir mgnl-bobby
      cd mgnl-bobby
      mkdir test
      npm init
      git init
      git remote add origin git@github.com:robertkowalski/mgnl-bobby.git
      git add .
      git ci -m "first commit"
      git push origin master
      
      
      mgnl create-light-module react-playground
      
      # move back
      mv react-playground/* .
      

      TLDR;

      Right now `mgnl create-light-module` expects a modulename and uses it as directory.

      `mgnl create-light-module .` would be nice for everyone with an already prepared folder.

        Attachments

          Activity

            People

            • Assignee:
              rkowalski Robert Kowalski
              Reporter:
              rkowalski Robert Kowalski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: