Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Creating Plugin and versionning code ?
Hello plugins creators,
I’m discover the creation of plugins for Textpattern. And my first need is to put in place an good workflow.
At the moment I work with ied_plugin_composer, but maybe this is not the right solution.
How do you work when you want to test your code in Textpattern and versioning your code with a VCS?
Offline
Re: Creating Plugin and versionning code ?
I use Composer (package manager), MassPlugCompiler (compiler), and rah_blobin (dynamic plugin loader, loads source files from a directory), and do my all development in git repositories.
Take a look in rah_flat or any other (up-to-date) repository I have on GitHub for an idea. The CONTRIBUTING file in rah_flat’s repository outlines the standards (PSR-0 and PSR-2 for programming style, Semantic Versioning) and tools (Composer, PHP_CodeSniffer) I use.
Textpattern itself doesn’t have test suite, nor has CLI compliant interface, so testing can not be automated with unit tests unfortunately.
Last edited by Gocom (2014-05-06 03:51:24)
Offline