-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
Codecov Report
@@ Coverage Diff @@
## php #35 +/- ##
============================================
+ Coverage 78.13% 82.33% +4.19%
- Complexity 92 116 +24
============================================
Files 35 37 +2
Lines 279 351 +72
============================================
+ Hits 218 289 +71
- Misses 61 62 +1
Continue to review full report at Codecov.
|
app/Commands/Reset.php
Outdated
$environment->overloadEnv($environment->getContextEnv($envFile)); | ||
} | ||
|
||
return collect([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment explaining this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
app/Commands/Reset.php
Outdated
return $process->dockerRun(env('FWD_IMAGE_NODE'), 'yarn install'); | ||
}, | ||
function () use ($process) { | ||
return $process->dockerRun(env('FWD_IMAGE_NODE'), 'yarn dev'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use artisanCall
app/Commands/Reset.php
Outdated
); | ||
}, | ||
function () use ($process) { | ||
return $process->dockerRun(env('FWD_IMAGE_NODE'), 'yarn install'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use artisanCall
app/Commands/Reset.php
Outdated
|
||
return collect([ | ||
function () use ($process) { | ||
return $process->dockerComposeExec('app composer install'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use artisanCall
app/Commands/Reset.php
Outdated
function () use ($process) { | ||
return $process->dockerRun(env('FWD_IMAGE_NODE'), 'yarn dev'); | ||
}, | ||
])->first(function ($command) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first will return the closure in case of exit code different than 0, instead of the actual return code. We need to think in a different way maybe... a simple foreach
Other thing: instead of having all those closures, let's use callables like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about cleaning logs, views, config, etc?
I like that, maybe a |
@gabrielboliveira @fabriciojs updated |
No description provided.