diff --git a/.gitignore b/.gitignore index 90279ad..8d3812a 100644 --- a/.gitignore +++ b/.gitignore @@ -793,6 +793,36 @@ package-lock.json .phpunit.result.cache codeception.phar +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST +.pytest_cache/ +.coverage +.coverage.* +htmlcov/ +.tox/ +.nox/ +*.cover +.hypothesis/ + # ============================================================ # Keep-empty folders helper # ============================================================ diff --git a/Makefile b/Makefile index 634f298..7e302f9 100644 --- a/Makefile +++ b/Makefile @@ -179,8 +179,42 @@ list-scripts: @echo "Available fix scripts:" @find scripts/fix -type f -name "*.sh" -exec basename {} \; | sort @echo "" - @echo "Available run scripts:" + @echo "Available run scripts (bash):" @find scripts/run -type f -name "*.sh" -exec basename {} \; | sort + @echo "" + @echo "Available run scripts (python):" + @find scripts/run -type f -name "*.py" -exec basename {} \; | sort + +## scaffold: Create new Joomla extension scaffolding +scaffold: + @echo "Create new Joomla extension scaffolding" + @echo "" + @echo "Usage: make scaffold TYPE= NAME= AUTHOR= DESC=" + @echo "" + @echo "Types: component, module, plugin, template, package" + @echo "" + @echo "Example:" + @echo " make scaffold TYPE=module NAME='My Module' AUTHOR='John Doe' DESC='Module description'" + +## scaffold-component: Create a component +scaffold-component: + @python3 scripts/run/scaffold_extension.py component "$(NAME)" "$(DESC)" "$(AUTHOR)" + +## scaffold-module: Create a module +scaffold-module: + @python3 scripts/run/scaffold_extension.py module "$(NAME)" "$(DESC)" "$(AUTHOR)" --client $(CLIENT) + +## scaffold-plugin: Create a plugin +scaffold-plugin: + @python3 scripts/run/scaffold_extension.py plugin "$(NAME)" "$(DESC)" "$(AUTHOR)" --group $(GROUP) + +## scaffold-template: Create a template +scaffold-template: + @python3 scripts/run/scaffold_extension.py template "$(NAME)" "$(DESC)" "$(AUTHOR)" + +## scaffold-package: Create a package +scaffold-package: + @python3 scripts/run/scaffold_extension.py package "$(NAME)" "$(DESC)" "$(AUTHOR)" ## docs: Open documentation docs: diff --git a/scripts/lib/__pycache__/common.cpython-312.pyc b/scripts/lib/__pycache__/common.cpython-312.pyc deleted file mode 100644 index 849226b..0000000 Binary files a/scripts/lib/__pycache__/common.cpython-312.pyc and /dev/null differ diff --git a/scripts/lib/__pycache__/joomla_manifest.cpython-312.pyc b/scripts/lib/__pycache__/joomla_manifest.cpython-312.pyc deleted file mode 100644 index 0f80db2..0000000 Binary files a/scripts/lib/__pycache__/joomla_manifest.cpython-312.pyc and /dev/null differ