diff --git a/.gitignore b/.gitignore index 5d48a4c..26e9251 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,9 @@ Thumbs.db # PHP CS Fixer cache .php-cs-fixer.cache +# Local dev env (cwm-build-tools build.properties) +build.properties + # Build outputs (generated from build/media_source/ via npm run build) media/lib_cwmscripture/js/*.min.js media/lib_cwmscripture/js/*.min.js.map diff --git a/build.properties.tmpl b/build.properties.tmpl new file mode 100644 index 0000000..98cd94e --- /dev/null +++ b/build.properties.tmpl @@ -0,0 +1,42 @@ +; build.properties — local Joomla installs for cwm-build-tools dev commands. +; +; This file is the per-developer mate to cwm-build.config.json: +; - cwm-build.config.json (committed) — what the project IS: +; extension layout, manifest paths, optional dev.links[]. +; - build.properties (gitignored) — where YOUR dev environment runs: +; paths to your Joomla installs, DB credentials, admin credentials. +; +; To set up the first time: +; cp build.properties.tmpl build.properties +; Then either edit by hand or run the wizard: +; composer setup +; +; ALWAYS keep this gitignored. It contains DB and admin passwords. + +; Comma-separated list of install ids — must match the section names below. +; Add or remove as needed (j5, j6, j7, ...). +installs = j5, j6 + +[j5] +path = /path/to/joomla5 +url = https://j5-dev.local +version = 5.4.2 +db_host = localhost +db_user = +db_pass = +db_name = +admin_user = admin +admin_pass = admin +admin_email = admin@example.com + +[j6] +path = /path/to/joomla6 +url = https://j6-dev.local +version = 6.0.0 +db_host = localhost +db_user = +db_pass = +db_name = +admin_user = admin +admin_pass = admin +admin_email = admin@example.com diff --git a/composer.json b/composer.json index 5f5ace9..0ca40d3 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ "ext-mbstring": "*" }, "require-dev": { - "cwm/build-tools": "^0.3.2@alpha", + "cwm/build-tools": "^0.4@alpha", "friendsofphp/php-cs-fixer": "^3.0", "phpunit/phpunit": "^11.0" }, @@ -61,7 +61,15 @@ "ars-list": "cwm-ars-list", "changelog": "cwm-changelog", "sync-languages": "cwm-sync-languages", - "sync-configs": "cwm-sync-configs" + "sync-configs": "cwm-sync-configs", + + "setup": "cwm-setup", + "link": "cwm-link", + "link-check": "cwm-link-check", + "clean": "cwm-clean", + "verify": "cwm-verify", + "joomla-install": "cwm-joomla-install", + "joomla-latest": "cwm-joomla-latest" }, "autoload-dev": { "psr-4": {