Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask user the version of @plone/volto to be used #13

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend_addon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ These are all the template options that will be prompted by the [Cookiecutter CL
| `email` | The email address you want to identify yourself in the project. | **[email protected]** |
| `github_organization` | Used for GitHub repositories. | **collective** |
| `npm_package_name` | Name of the Node package, including the organization (if any). | **@plone-collective/volto-weather-block** |
| `volto_version` | Volto version to be used. | **18.0.0-alpha.31** |


## Code Quality Assurance 🧐
Expand Down
8 changes: 6 additions & 2 deletions frontend_addon/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"email": "[email protected]",
"github_organization": "collective",
"npm_package_name": "{{ cookiecutter.frontend_addon_name }}",
"volto_version": "{{ 'Yes' | latest_volto }}",
"__folder_name": "{{ cookiecutter.frontend_addon_name }}",
"__gha_enable": true,
"__version_package": "1.0.0-alpha.0",
"__version_plone_volto": "18.0.0-alpha.25",
"__version_plone_volto": "{{ cookiecutter.volto_version }}",
"__version_plone_components": "1.7.0",
"__version_plone_scripts": "^3.6.1",
"__version_mrs_developer": "^2.2.0",
Expand All @@ -33,9 +34,12 @@
"description": "A short description of your addon",
"github_organization": "GitHub Username or Organization",
"npm_package_name": "Package name on NPM",
"volto_version": "Volto version",
"author": "Author",
"email": "Author E-mail"
},
"_copy_without_render": [],
"_extensions": []
"_extensions": [
"cookieplone.filters.latest_volto"
]
}
5 changes: 3 additions & 2 deletions frontend_addon/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ def context() -> dict:
"frontend_addon_name": "volto-addon",
"title": "Volto Add-on",
"description": "Add new features to your Volto Project.",
"github_organization": "collective",
"npm_package_name": "@plone-collective/volto-addon",
"author": "Plone Collective",
"email": "[email protected]",
"github_organization": "collective",
"npm_package_name": "@plone-collective/volto-addon",
"volto_version": "18.0.0-alpha.31"
}


Expand Down