-
Bug
-
Resolution: Fixed
-
Blocker
-
3.0.1
-
None
-
Windows 10
-
-
Empty show more show less
-
Kromeriz 159
-
2
CLI produces “undefined” properties on Windows. Specifically the dialog and templateScript properties have the value undefined which makes the templates unusable.
OS:
- Windows 10
Version:
Magnolia CLI: 3.0.1 (node.js: v10.4.0)
Create light module:
C:\home\projects\magnolia\cli>mgnl create-light-module bucket-list-module
info Using configuration at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli.json
info Using prototypes at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli-prototypes
info 'No path option provided, light module will be created in the current folder.'
info Created C:\home\projects\magnolia\cli\bucket-list-module\webresources\.keep
info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\.keep
info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\components\.keep
info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\pages\.keep
info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\components\.keep
info Created C:\home\projects\magnolia\cli\bucket-list-module\README.md
info Created C:\home\projects\magnolia\cli\bucket-list-module\includes\README.txt
info Created C:\home\projects\magnolia\cli\bucket-list-module\i18n\bucket-list-module-messages_en.properties
info Created C:\home\projects\magnolia\cli\bucket-list-module\decorations\.keep
info Module bucket-list-module created at C:\home\projects\magnolia\cli\bucket-list-module
info Success! In order to add a page template, run mgnl create-page $YOUR_PAGE_NAME -p C:\home\projects\magnolia\cli\bucket-list-module
Create page:
C:\home\projects\magnolia\cli>cd bucket-list-moduleC:\home\projects\magnolia\cli\bucket-list-module>mgnl create-page bucket-list info Using configuration at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli.json info Using prototypes at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli-prototypes info No path option provided, page template will be created in the current folder. info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\bucket-list.yaml info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\pages\bucket-list.yaml info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\bucket-list.ftl info Page template created
The page .yml configuration:
title: bucket-list
templateScript: undefined
renderType: freemarker
dialog: undefined
visible: true
I also followed the walkthrough from https://documentation.magnolia-cms.com/display/DOCS57/Magnolia+CLI+walkthrough but the result is the same.
Acceptance criteria
- is causing
-
DOCU-1666 Update CLI docs for 3.0.3
- Closed
- relates to
-
NPMCLI-201 Run automated CI tests for the CLI on Windows
- Closed