Developer Tools

xF2 Add-on Developer Tools 1.4.3

No permission to download
  • Fixed: Fatal error thrown when code even listeners callback method use namespace alias for type hinting (#31)
  • Removed: Even more XF 2.0 specific composer code (#32)
  • New** Show style property group in breadcrumb
  • New** Show option group when adding option
  • New** Show template modification type in breadcrumb
  • New** Ability to exclude files and directories using exclude_files and exclude_directories respectively via build.json (#25)
  • New** Add CHANGELOG.md to release archive
  • New** Class extensions will now have common classes already imported
  • New** Allow creating multiple phrases via the add phrase page (#27)
  • New** Automatically fill code event listener callback class and method based on selected event and add-on and create listener file / method as required (#28)
  • Changed** Entity class extensions created via CLI command will now have XF\Mvc\Entity\Structure class aliased to EntityStructure
  • Changed** Provided scripts now have .sh extension
  • Changed** Developer options group will now only be shown in debug mode
  • Changed** CLI commands have more consistent aliases
  • Changed** Changed execution order for all listeners
  • Changed** Increased minimum XenForo version requirement to 2.1.6 PL 1 (#30)
  • Fixed** Template modification test failing
  • Fixed** "View modifications" failing for templates
  • Fixed** Path for addon.json is not shown when invalid add-on id is provided for class extension CLI command (#26)
  • Removed** Dead class extension and phrases
  • Removed** Removed PHPUnit integration which was borderline useless
  • General code changes and improvements
Changes
  • New: Enable hidden file-based email transport option
  • New: Option to disable template watching (performance improvement)
  • New: Option to disable file hash checking
  • New: Add link to build add-on archive from add-on control menu
  • New: New CLI command to add phrase
  • Changed: Allow per-style analysis of how template modifications apply
Contributions
Some of the changes and bug-fixes were made by @Xon
New
  • New ticktackk-devtools:git-init, ticktackk-devtools:git-move, tdt:create-entity and tdt:schema-entity (modified to round-trip better) CLI command
  • Added method to get random entity based on an identifier
  • Added post seed
  • New "Custom Git repository location" option
  • Show template modifications which are applying (or failing) for a template
Changes
  • Clear cache before adding files to the repository
  • Update default .gitignore file contents to include git.json, _metadata.json and .phpstorm.meta.php
  • General bug fixes and improvements
  • More robust git-init
  • Release build no longer removes _data after successfully creating a repository
  • CLI command git-commit will now make use of the new ticktackk-devtools:git-move command
  • Move seeding process to Job to avoid timeouts
  • Default branch is now master for ticktackk-devtools:better-export command
  • Every seed will be now run as a random user
Bug fixes
  • Git username and email not showing correctly
  • File not found error when FakeComposer attempts to load files
  • FakeComposer would fail on non-Windows Server
  • Setup not porting old settings correctly
  • additional_files directive saving incorrectly
  • When attempting to seed specific file, it would fail
Contributions
Some of the changes and bug-fixes were made by @Xon and @DragonByte Tech
New
  • Faker integration
    • Check _seeds directory for sample
  • New CLI commands:
    • ticktackk-devtools:create-class-extension (thanks to @Xon)
    • ticktackk-devtools:seed
  • Allows hosting the google minification closure compiler locally to avoid rate-limiting (thanks to @Xon)
  • Some bash wrappers inside scripts directory (thanks to @Xon)
Bug-fixes
  • Fix: Redirect back to developer options page after making changes
What happen to 1.0.0 Beta 2?
I have no idea...

New
  • PHPUnit framework integration allows you to test add-on before releasing or pushing the new changes to VCS
  • Add-on specific git configuration (currently only name and email supported)
  • Ability to use packages made using composer without composer itself for your add-ons
  • Added new CLI commands ticktackk-devtools:phpunit and ticktackk-devtools:rebuild-fake-composer
Changes
  • Minimum PHP requirement has been bumped to 7.2
  • Removed useless template from public side
  • Repository directory now will be initialized if it hasn't already
  • Store developer options of add-on in dev.json instead of database
  • Store git configuration of add-on in git.json instead of database
Bug-fixes
  • Stop spamming name and email in CONFIG file for git
Changes:
  • Move xf-addon:build-release to the end in ticktackk-devtools:better-export
Bug Fixes:
  • Fixed: [E_USER_WARNING] Accessed unknown getter 'gitignore'
New:
  • Added new CLI command ticktackk-devtools:git-push <add-on id> <repo> <branch> (thanks to @DragonByte Tech )
  • New options for ticktackk-devtools:better-export
    • --skip-export Allows skipping exporting data before building release or moving files to _repo directory (thanks to @DragonByte Tech )
    • --commit Allows committing changes (if any) to the local repository
    • --push Allows local repository to a branch (thanks to @DragonByte Tech )
  • Added option to exclude directories when moving working files to _repo directory (thanks to @DragonByte Tech )
  • Added option to copy additional files to _repo directory
    • Can be enabled/disabled per add-on (Default: disabled)
Changes:
  • Developer options won't be shown in overlay
Bug fixes:
  • I lost count ;_;
New:
  • Copy additional files to repository directory
  • Add "Save and exit" button for template modification editing process
  • LICENSE is now LICENSE.md
  • Both LICENSE.md and README.md are now copied to root directory
  • Both LICENSE.md and README.md is now added to add-on archive as well
  • New CLI commands ticktackk-devtools:git-init and ticktackk-devtools:git-commit
Changes:
  • Removed commit upon any developer output
  • Moved all git related commands to separate CLI command
Bug fix:
  • Check if _repo directory exists before committing