[NPMCLI-33] lightDevCopyResources concept is broken by global install Created: 19/Jul/16 Updated: 22/Aug/16 Resolved: 02/Aug/16 |
|
| Status: | Closed |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 0.0.1 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Christopher Zimmermann | Assignee: | Federico Grilli |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | quickwin | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 3h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| 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
|
||||||||||||
| Sprint: | Basel 55 | ||||||||||||
| Story Points: | 3 | ||||||||||||
| Description |
|
TLDR Details However, now that the mgnl cli is typically (very conveniently) installed globally so that one can run "mgnl" from any location - this mechanism is broken and confusing. What is broken is that @magnolia/cli is only installed once, and so its declared npm dependencies are only installed that one time. If I now run "mgnl setup" to get the cli files to customize, I can only get different npm "dependencies" (for example angular, or to select different version of jquery), and therefore lightDevCopyResources, with confusing side-effects:
|