plone / create-volto-app

Set up the Volto with a single command
MIT License
9 stars 3 forks source link

create-volto-app reimplemented as Yeoman generator #26

Closed tiberiuichim closed 3 years ago

tiberiuichim commented 4 years ago

Benefits, some already implemented, some low-hanging fruit:

Usage:
  yo create-volto-app:app [<projectName>] [options]

Options:
  -h,   --help          # Print the generator's options and usage
        --skip-cache    # Do not remember prompt answers                                        Default: false
        --skip-install  # Do not automatically install dependencies                             Default: false
        --addon         # Addon loader string, like: some-volto-addon:loadExtra,loadOtherExtra
        --description   # Project description                                                   Default: A Volto-powered Plone frontend

Arguments:
  projectName    Type: String  Required: false

You can pass multiple --addon options and it will list them in the generated package.json. For the future, I'll enhance this to also allow a mrs.developer file to be passed as an option.

tiberiuichim commented 4 years ago

This is how you can test the package:

tiberiuichim commented 4 years ago

To reviewers: be aware that this is a completely new package (instead of @plone/create-volto-app, it needs to be generator-create-volto-app. Timo suggested that we might use a different repo for that package. Maybe even include it in the Volto code source, although this will imply that we make Volto a multi-package repo. In any case, to me, generator-volto sounds nice, and it can include a yo volto:addon template, for Volto addon templates.

tiberiuichim commented 4 years ago

@jenkins-plone-org please run jobs

nzambello commented 4 years ago

I like this! Seems really interesting

tiberiuichim commented 4 years ago

Issues: gitignore file is not properly generated. package.json.tpl is not properly excluded.

sneridagh commented 3 years ago

I love it! I really think we should continue explore this.

@tiberiuichim can we make it a @plone repo? I already hacked around it a bit :)

tiberiuichim commented 3 years ago

@sneridagh Sure! Go ahead, fork it in plone.

tiberiuichim commented 3 years ago

@sneridagh Be aware that yeoman generators don't like namespaces (I think) if you want to run them with yo

tiberiuichim commented 3 years ago

Work continues in https://github.com/plone/generator-volto-app/