diff --git a/frontend_addon/README.md b/frontend_addon/README.md index 2784abd..46448f3 100644 --- a/frontend_addon/README.md +++ b/frontend_addon/README.md @@ -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@example.com** | | `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 🧐 diff --git a/frontend_addon/cookiecutter.json b/frontend_addon/cookiecutter.json index b107f20..f7f1f0a 100644 --- a/frontend_addon/cookiecutter.json +++ b/frontend_addon/cookiecutter.json @@ -6,10 +6,11 @@ "email": "collective@plone.org", "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", @@ -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" + ] } diff --git a/frontend_addon/tests/conftest.py b/frontend_addon/tests/conftest.py index d32aeb4..07ade32 100644 --- a/frontend_addon/tests/conftest.py +++ b/frontend_addon/tests/conftest.py @@ -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": "collective@plone.org", + "github_organization": "collective", + "npm_package_name": "@plone-collective/volto-addon", + "volto_version": "18.0.0-alpha.31" }