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

create-light-module should support "."

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.0
    • None
    • None
    • Yes
    • Basel 83
    • 1

      `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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: