Skip to content

Commit ebaf9dc

Browse files
committed
Run test-app-init automatically after rename
One command gives you a fully working plugin project.
1 parent 756124c commit ebaf9dc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

bin/rename-plugin.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
108108
} else {
109109
$io->success('Plugin renamed successfully!');
110110

111-
$pluginDir = basename(dirname(__DIR__));
112-
$io->writeln('Now run:');
113-
$io->writeln('');
114-
$io->writeln(" <info>cd {$pluginDir} && composer test-app-init</info>");
115-
$io->newLine();
116-
117111
unlink(__FILE__);
118112
}
119113

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
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"
8283
],
8384
"database-reset": [
8485
"vendor/bin/console doctrine:database:drop --force --if-exists",

0 commit comments

Comments
 (0)