Skip to content

trenc/scto-plugin-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run tests

Scto Plugin Compiler

Compiler for creating installable plugin files for the Textpattern CMS.

Installation

$ composer require scto/plugin-compiler --dev

Usage

The compiler binary can has up to five arguments.

N.B.: The name of the plugin is created from the name of the current woking directory.

$ ./vendor/bin/scto-compile manifest.json help.textile textpack.txt srcFolder outputFolder

The plugin compiler can also be used as library:

use Scto\PluginCompiler\CompilerApp;


public $args = [
    'manifest.json', // manifest file
    'help.textile',  // help file in textile markup
    'textpack.txt',  // combined textpack file with all localisation strings
    'src',           // directory with the PHP source code
    'dist',          // directory for the compiled plugins
];

$app = new CompilerApp();
$app->run($args);

Alternatives

About

Compiler for creating installable plugin files from source.

Topics

Resources

License

Stars

Watchers

Forks

Contributors