Skip to content

Commit a654008

Browse files
committed
Add full automation: test-app-init, git init, success message
1 parent 48d7302 commit a654008

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

bin/show-success.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
declare(strict_types=1);
5+
6+
echo PHP_EOL;
7+
echo " \033[42;30m DONE \033[0m Your plugin is ready!" . PHP_EOL;
8+
echo PHP_EOL;
9+
echo " Run: \033[36msymfony serve -d\033[0m" . PHP_EOL;
10+
echo PHP_EOL;
11+
12+
unlink(__FILE__);

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@
7878
"@php bin/validate-directory.php"
7979
],
8080
"post-create-project-cmd": [
81-
"@php bin/rename-plugin.php"
81+
"@php bin/rename-plugin.php",
82+
"@test-app-init",
83+
"@php -r \"echo PHP_EOL.' Initializing git repository...'.PHP_EOL;\"",
84+
"git init -q",
85+
"git add -A",
86+
"git commit -q -m 'Initial commit'",
87+
"@php bin/show-success.php"
8288
],
8389
"database-reset": [
8490
"vendor/bin/console doctrine:database:drop --force --if-exists",

0 commit comments

Comments
 (0)