Skip to content
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
8 changes: 5 additions & 3 deletions plugin_creator/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from .helpers import remove_file, remove_dir


# Minimum version requirements for core frontend libraries
# Version requirements for core frontend libraries
MIN_REACT_VERSION = "19.1.2"
MIN_MANTINE_VERSION = "8.3.10"
MIN_LINGUI_VERSION = "5.9.5"
MIN_MANTINE_VERSION = "8.2.7"
MIN_LINGUI_VERSION = "5.9.2"
MIN_VITE_VERSION = "6.4.2"


def frontend_features() -> dict:
Expand Down Expand Up @@ -76,6 +77,7 @@ def define_frontend(enabled: bool, defaults: bool = False) -> dict:
"react_version": MIN_REACT_VERSION,
"mantine_version": MIN_MANTINE_VERSION,
"lingui_version": MIN_LINGUI_VERSION,
"vite_version": MIN_VITE_VERSION,
}

if enabled:
Expand Down
1 change: 1 addition & 0 deletions plugin_creator/template/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"react_version": "0.0.0",
"lingui_version": "0.0.0",
"mantine_version": "0.0.0",
"vite_version": "0.0.0",
"features": {
"dashboard": true,
"panel": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@
"@vitejs/plugin-react": "^4.7.0",
"globals": "^15.14.0",
"typescript": "~5.6.2",
"vite": "^6.0.5",
"vite": "^{{ cookiecutter.frontend.vite_version }}",
"vite-plugin-externals": "^0.6.2"
},
"overrides": {
"glob": ">= 13.0.0",
{% if cookiecutter.frontend.translation -%}
"@lingui/core": "^{{ cookiecutter.frontend.lingui_version }}",
"@lingui/cli": "^{{ cookiecutter.frontend.lingui_version }}",
"@lingui/macro": "^{{ cookiecutter.frontend.lingui_version }}"
"@lingui/macro": "^{{ cookiecutter.frontend.lingui_version }}",
{%- endif %}
"glob": ">= 13.0.0",
"vite": "^{{ cookiecutter.frontend.vite_version }}"
}
}
Loading