Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-05-05 18:44:34

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

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

#2 2014-05-06 03:46:39

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB