Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Jul 23, 2021
0 parents commit 7a44a39
Show file tree
Hide file tree
Showing 31 changed files with 3,915 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Code editors
.idea
.vscode

# Composer
/vendor
17 changes: 17 additions & 0 deletions command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use WP_Forge\Command\Package;

if ( ! class_exists( 'WP_CLI' ) || ! is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
return;
}

require __DIR__ . '/vendor/autoload.php';

new Package(
array(
'base_command' => 'forge',
'project_config_filename' => '.wp-forge.json',
'global_config_filename' => '.wp-forge.json',
)
);
43 changes: 43 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "wp-forge/wp-cli-forge-command",
"description": "A zero-config scaffolding tool for WordPress.",
"type": "wp-cli-package",
"homepage": "https://github.com/wp-forge/wp-cli-forge-command",
"license": "MIT",
"authors": [
{
"name": "Micah Wood",
"email": "[email protected]",
"homepage": "https://wpscholar.com"
}
],
"require": {
"php": ">=7.0",
"league/climate": "^3.7",
"league/flysystem": "^2.1",
"mustache/mustache": "^2.13",
"wpscholar/collection": "^1.0",
"wp-forge/container": "^1.0",
"wp-forge/data-store": "^1.0",
"wp-forge/helpers": "^1.1"
},
"require-dev": {
"wpscholar/phpcs-standards-wpscholar": "^1.0"
},
"autoload": {
"files": [
"command.php"
],
"psr-4": {
"WP_Forge\\Command\\": "includes"
}
},
"scripts": {
"lint": [
"vendor/bin/phpcs --standard=phpcs.xml -s ."
],
"fix": [
"vendor/bin/phpcbf --standard=phpcs.xml -s ."
]
}
}
Loading

0 comments on commit 7a44a39

Please sign in to comment.