Skip to content

Commit 7a44a39

Browse files
committed
Initial commit
0 parents  commit 7a44a39

31 files changed

Lines changed: 3915 additions & 0 deletions

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Code editors
2+
.idea
3+
.vscode
4+
5+
# Composer
6+
/vendor

command.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
use WP_Forge\Command\Package;
4+
5+
if ( ! class_exists( 'WP_CLI' ) || ! is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
6+
return;
7+
}
8+
9+
require __DIR__ . '/vendor/autoload.php';
10+
11+
new Package(
12+
array(
13+
'base_command' => 'forge',
14+
'project_config_filename' => '.wp-forge.json',
15+
'global_config_filename' => '.wp-forge.json',
16+
)
17+
);

composer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "wp-forge/wp-cli-forge-command",
3+
"description": "A zero-config scaffolding tool for WordPress.",
4+
"type": "wp-cli-package",
5+
"homepage": "https://github.com/wp-forge/wp-cli-forge-command",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Micah Wood",
10+
"email": "micah@wpscholar.com",
11+
"homepage": "https://wpscholar.com"
12+
}
13+
],
14+
"require": {
15+
"php": ">=7.0",
16+
"league/climate": "^3.7",
17+
"league/flysystem": "^2.1",
18+
"mustache/mustache": "^2.13",
19+
"wpscholar/collection": "^1.0",
20+
"wp-forge/container": "^1.0",
21+
"wp-forge/data-store": "^1.0",
22+
"wp-forge/helpers": "^1.1"
23+
},
24+
"require-dev": {
25+
"wpscholar/phpcs-standards-wpscholar": "^1.0"
26+
},
27+
"autoload": {
28+
"files": [
29+
"command.php"
30+
],
31+
"psr-4": {
32+
"WP_Forge\\Command\\": "includes"
33+
}
34+
},
35+
"scripts": {
36+
"lint": [
37+
"vendor/bin/phpcs --standard=phpcs.xml -s ."
38+
],
39+
"fix": [
40+
"vendor/bin/phpcbf --standard=phpcs.xml -s ."
41+
]
42+
}
43+
}

0 commit comments

Comments
 (0)