Skip to content

Commit e19b025

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

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

bin/show-success.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 " \033[36mgit init && git add -A && git commit -m 'Initial commit'\033[0m" . PHP_EOL;
10+
echo " \033[36msymfony serve -d\033[0m" . PHP_EOL;
11+
echo PHP_EOL;
12+
13+
unlink(__FILE__);

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
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 bin/show-success.php"
8284
],
8385
"database-reset": [
8486
"vendor/bin/console doctrine:database:drop --force --if-exists",

0 commit comments

Comments
 (0)