[NPMCLI-202] prototypes in nested catalogs doesn't rename filenames Created: 24/Jan/19 Updated: 30/Aug/23 |
|
| Status: | Open |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mykola | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: Windows 10 x64 |
||
| Attachments: |
|
| Template: |
|
| Patch included: |
Yes
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
Default path to component prototype is:
mgnl-cli-prototypes/component/default/templates/components/__name__.ftl
mgnl-cli-prototypes/component/default/templates/components/__name__.yaml
but if I nest these files on level deeper like so:
mgnl-cli-prototypes/component/default/templates/components/__name__/__name__.ftl
mgnl-cli-prototypes/component/default/templates/components/__name__/__name__.yaml
then __name__.* files not renaming
|
| Comments |
| Comment by Mykola [ 31/Oct/19 ] |
|
replaceFileNameIfNeeded method in /lib/helpers.js didn't have global flag in regexp, which I added |
| Comment by Mykola [ 19/Sep/22 ] |
|
czimmermann is this project is still active? |
| Comment by Mykola [ 30/Aug/23 ] |
|
mmichlova is this project is still active and/or right place to report bugs? |