[NPMCLI-88] create-light-module should support "." Created: 30/Jan/17  Updated: 16/Feb/17  Resolved: 13/Feb/17

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: New Feature Priority: Neutral
Reporter: Robert Kowalski Assignee: Robert Kowalski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
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.


Generated at Mon Feb 12 04:46:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.