ticktackk / DeveloperToolsForXF2

This add-on provides enhancements for add-on developers.
MIT License
14 stars 7 forks source link
developer-tools xenforo xenforo-2 xenforo-addon

Developer Tools for XenForo 2.1.7+

Description

This add-on provides enhancements for add-on developers.

Features

Requirements

Options

Developer Tools (Debug only)

Name Description
Disable hash checking For development purposes disabling XF's hash check is required to hotpatch code
Disable XF Template watching XF's template watching causes a large amount of IO per page, and doesn't touch phrases to template modification. Disable for a boost in performance if it isn't required.
Use full width for admin control panel If checked, admin control panel will have fluid width instead of fixed width.

CLI Commands

Command Description
tck-devtools:generate-schema-addon Generates schema codes from add-on.
tck-devtools:create-class-extension Creates an XF class-extension for an add-on and writes out a basic template file.
tck-devtools:build-readme Builds README files for provided add-on.
tck-devtools:clamp-versions Ensures an add-on does not have phrases or templates with version id's above the addon.json file.
tck-devtools:generate-schema-entity Generates schema code from an entity
tck-devtools:finder-class-properties Applies class properties to type hint relations.
tck-devtools:better-export Exports the XML files for an add-on and applies class properties to type hint columns, getters and relations
tck-devtools:create-entity-from-table Creates an XF entity for an add-on from a table.
tck-devtools:add-phrase Creates a phrase for an add-on.
tck-devtools:entity-class-properties Applies class properties to type hint columns, relations and getters

Scripts

There are some wrapper scripts under scripts directory provided by Xon which can be helpful.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.