[NPMCLI-260] mgnl create-app command must create files complying with naming best practice Created: 28/May/21 Updated: 01/Jun/22 |
|
| Status: | Selected |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | headless-team-support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoR: |
Empty
|
||||||||
| Epic Link: | Content Types phase 2 | ||||||||
| Story Points: | 3 | ||||||||
| Description |
|
With
However, when using e.g. the CLI mgnl create-app assets-app command, it creates the following: ├── apps Task: Ensure that the above best practices are followed. Include tips in the help about expected name.
If user enters a name detected to be a plural, Either:
If the user executes the mgnl create-app <name><pluralMarker>-app command, the CLI library should do some cropping and create ├── apps
Technical Note Consider using existing npm library to achieve pluralization. (For example this looks popular https://www.npmjs.com/package/pluralize) |