Skip to content

Commit 7615a9a

Browse files
committed
Code cleanup
1 parent d1d5eca commit 7615a9a

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Very short description of the package
1+
# Laravel setup local dev is your little Elf
22

33

44
This is a very simple, but handy package for setting up local Laravel development environment.
55
This package contains commands to do all the trivial steps you normally do when setting up your local Laravel development environment.
66

7+
# setenv
78
Create a .default_vars.env in the your home directory with the common .env variables that you always set e.g. MAIL_HOST=127.0.0.1 for Homestead based development environments.
89

910
It is also possible to specify a specific file to be used by using the --file options.
@@ -14,6 +15,18 @@ VAR_NAME=[ASK_FOR_VALUE]
1415

1516
Then you wil be prompted to enter a value
1617

18+
# commontasks
19+
Create a .default_laravel_local_dev.tasks in your home directory with the common tasks that you normally perfrom on each local environment.
20+
e.g.
21+
``` bash
22+
npm install
23+
mpn run dev
24+
php artisan migrate
25+
php artisan storage:link
26+
```
27+
28+
#all
29+
Execcute all of the available commands
1730

1831
## Installation
1932

phpunit.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
</phpunit>

src/Console/Commands/CommonTasksCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
namespace Rabol\LaravelSetupLocalDev\Console\Commands;
44

55
use Illuminate\Console\Command;
6-
use Symfony\Component\Process\Exception\RuntimeException;
76
use Symfony\Component\Process\Process;
8-
use Symfony\Component\Process\Exception\ProcessFailedException;
9-
use Symfony\Component\VarDumper\VarDumper;
7+
108

119
class CommonTasksCommand extends Command
1210
{
@@ -79,7 +77,7 @@ public function handle()
7977

8078
// executes after the command finishes
8179
if (!$process->isSuccessful()) {
82-
//throw new ProcessFailedException($process);
80+
8381
$error = sprintf('The command "%s" failed.'."\n\nExit Code: %s(%s)\n\nWorking directory: %s",
8482
$process->getCommandLine(),
8583
$process->getExitCode(),

0 commit comments

Comments
 (0)