Skip to content
Snippets Groups Projects
Verified Commit 182e8447 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: add VERY simple command to cache plugin data

parent 57b7b57f
No related branches found
No related tags found
3 merge requests!3improve into wp-hook and some additional unfinished things,!21.x,!1Draft: Basic implementation of plugin initializer
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
bin/wpinit 0 → 100755
#!/usr/bin/env php
<?php
use WPDesk\Init\Dumper\PhpFileDumper;
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
$filename = $argv[1] ?? null;
$parser = new \WPDesk\Init\PluginHeaderParser();
$data = $parser->parse( $filename );
$dumper = new PhpFileDumper();
$dumper->dump( $parser->parse( $filename ), $argv[2] );
//echo "Compile static plugin resources.";
\ No newline at end of file
......@@ -21,6 +21,9 @@
"role": "Developer"
}
],
"bin": [
"bin/wpinit"
],
"autoload": {
"psr-4": {
"WPDesk\\Init\\": "src"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment