From ebc53e8aea9aad4476344a54d376ec267518a813 Mon Sep 17 00:00:00 2001 From: David Ryan Date: Wed, 21 Feb 2018 23:14:21 -0700 Subject: [PATCH] organization --- app/admin/class-generators-page.php | 4 +++- .../simple}/.circleci/codesniffer.ruleset.xml | 0 .../plugin => boilerplates/simple}/.circleci/config.yml | 0 .../plugin => boilerplates/simple}/.github/ISSUE_TEMPLATE.md | 0 .../simple}/.github/PULL_REQUEST_TEMPLATE.md | 0 .../templates/plugin => boilerplates/simple}/.gitignore | 0 app/{admin/templates/plugin => boilerplates/simple}/README.md | 0 .../plugin => boilerplates/simple}/app/admin/class-app.php | 0 .../plugin => boilerplates/simple}/app/class-plugin.php | 0 .../plugin => boilerplates/simple}/composer-test.json | 0 .../templates/plugin => boilerplates/simple}/composer.json | 0 .../lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE | 0 .../abstract-plugin-base/src/abstract-plugin.php | 0 app/{admin/templates/plugin => boilerplates/simple}/main.php | 0 app/{admin/templates/plugin => boilerplates/simple}/phpcs.xml | 0 15 files changed, 3 insertions(+), 1 deletion(-) rename app/{admin/templates/plugin => boilerplates/simple}/.circleci/codesniffer.ruleset.xml (100%) rename app/{admin/templates/plugin => boilerplates/simple}/.circleci/config.yml (100%) rename app/{admin/templates/plugin => boilerplates/simple}/.github/ISSUE_TEMPLATE.md (100%) rename app/{admin/templates/plugin => boilerplates/simple}/.github/PULL_REQUEST_TEMPLATE.md (100%) rename app/{admin/templates/plugin => boilerplates/simple}/.gitignore (100%) rename app/{admin/templates/plugin => boilerplates/simple}/README.md (100%) rename app/{admin/templates/plugin => boilerplates/simple}/app/admin/class-app.php (100%) rename app/{admin/templates/plugin => boilerplates/simple}/app/class-plugin.php (100%) rename app/{admin/templates/plugin => boilerplates/simple}/composer-test.json (100%) rename app/{admin/templates/plugin => boilerplates/simple}/composer.json (100%) rename app/{admin/templates/plugin => boilerplates/simple}/lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE (100%) rename app/{admin/templates/plugin => boilerplates/simple}/lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php (100%) rename app/{admin/templates/plugin => boilerplates/simple}/main.php (100%) rename app/{admin/templates/plugin => boilerplates/simple}/phpcs.xml (100%) diff --git a/app/admin/class-generators-page.php b/app/admin/class-generators-page.php index d47db4c..1ee05ff 100644 --- a/app/admin/class-generators-page.php +++ b/app/admin/class-generators-page.php @@ -51,10 +51,12 @@ function __construct( $installed_dir, $installed_url, $version ) { */ function process_download() { $data = $this->gather_submitted_data(); + error_log( var_export( $data, true ) ); + $plugin = isset( $data['plugin_arch_type'] ) ? $data['plugin_arch_type'] : 'simple'; $data['generator_version'] = $this->version; new Product_Machine( sanitize_title_with_dashes( $data['plugin_name'] ), - $this->installed_dir . '/admin/templates/plugin', + $this->installed_dir . '/boilerplates/' . $plugin, $this->installed_dir . '/tmp', $data, $this->create_config() diff --git a/app/admin/templates/plugin/.circleci/codesniffer.ruleset.xml b/app/boilerplates/simple/.circleci/codesniffer.ruleset.xml similarity index 100% rename from app/admin/templates/plugin/.circleci/codesniffer.ruleset.xml rename to app/boilerplates/simple/.circleci/codesniffer.ruleset.xml diff --git a/app/admin/templates/plugin/.circleci/config.yml b/app/boilerplates/simple/.circleci/config.yml similarity index 100% rename from app/admin/templates/plugin/.circleci/config.yml rename to app/boilerplates/simple/.circleci/config.yml diff --git a/app/admin/templates/plugin/.github/ISSUE_TEMPLATE.md b/app/boilerplates/simple/.github/ISSUE_TEMPLATE.md similarity index 100% rename from app/admin/templates/plugin/.github/ISSUE_TEMPLATE.md rename to app/boilerplates/simple/.github/ISSUE_TEMPLATE.md diff --git a/app/admin/templates/plugin/.github/PULL_REQUEST_TEMPLATE.md b/app/boilerplates/simple/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from app/admin/templates/plugin/.github/PULL_REQUEST_TEMPLATE.md rename to app/boilerplates/simple/.github/PULL_REQUEST_TEMPLATE.md diff --git a/app/admin/templates/plugin/.gitignore b/app/boilerplates/simple/.gitignore similarity index 100% rename from app/admin/templates/plugin/.gitignore rename to app/boilerplates/simple/.gitignore diff --git a/app/admin/templates/plugin/README.md b/app/boilerplates/simple/README.md similarity index 100% rename from app/admin/templates/plugin/README.md rename to app/boilerplates/simple/README.md diff --git a/app/admin/templates/plugin/app/admin/class-app.php b/app/boilerplates/simple/app/admin/class-app.php similarity index 100% rename from app/admin/templates/plugin/app/admin/class-app.php rename to app/boilerplates/simple/app/admin/class-app.php diff --git a/app/admin/templates/plugin/app/class-plugin.php b/app/boilerplates/simple/app/class-plugin.php similarity index 100% rename from app/admin/templates/plugin/app/class-plugin.php rename to app/boilerplates/simple/app/class-plugin.php diff --git a/app/admin/templates/plugin/composer-test.json b/app/boilerplates/simple/composer-test.json similarity index 100% rename from app/admin/templates/plugin/composer-test.json rename to app/boilerplates/simple/composer-test.json diff --git a/app/admin/templates/plugin/composer.json b/app/boilerplates/simple/composer.json similarity index 100% rename from app/admin/templates/plugin/composer.json rename to app/boilerplates/simple/composer.json diff --git a/app/admin/templates/plugin/lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE b/app/boilerplates/simple/lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE similarity index 100% rename from app/admin/templates/plugin/lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE rename to app/boilerplates/simple/lib/wordpress-phoenix/abstract-plugin-base/src/LICENSE diff --git a/app/admin/templates/plugin/lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php b/app/boilerplates/simple/lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php similarity index 100% rename from app/admin/templates/plugin/lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php rename to app/boilerplates/simple/lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php diff --git a/app/admin/templates/plugin/main.php b/app/boilerplates/simple/main.php similarity index 100% rename from app/admin/templates/plugin/main.php rename to app/boilerplates/simple/main.php diff --git a/app/admin/templates/plugin/phpcs.xml b/app/boilerplates/simple/phpcs.xml similarity index 100% rename from app/admin/templates/plugin/phpcs.xml rename to app/boilerplates/simple/phpcs.xml