File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 21
21
* Hyde Command to run the Build Process.
22
22
*
23
23
* @see \Tests\Feature\Commands\BuildStaticSiteCommandTest
24
- *
25
- * @todo #361 Rename --pretty option to --run-prettier to distinguish it better
26
24
*/
27
25
class HydeBuildStaticSiteCommand extends Command
28
26
{
@@ -37,7 +35,7 @@ class HydeBuildStaticSiteCommand extends Command
37
35
protected $ signature = 'build
38
36
{--run-dev : Run the NPM dev script after build}
39
37
{--run-prod : Run the NPM prod script after build}
40
- {--pretty : Should the build files be prettified?}
38
+ {--run-prettier : Should the build files be prettified?}
41
39
{--pretty-urls : Should links in output use pretty URLs?}
42
40
{--no-api : Disable external API calls, such as Torchlight} ' ;
43
41
@@ -154,7 +152,7 @@ public function purge(): void
154
152
*/
155
153
public function postBuildActions (): void
156
154
{
157
- if ($ this ->option ('pretty ' )) {
155
+ if ($ this ->option ('run-prettier ' )) {
158
156
$ this ->runNodeCommand (
159
157
'npx prettier ' .Hyde::pathToRelative (Hyde::getSiteOutputPath ($ path )).'/ --write --bracket-same-line ' ,
160
158
'Prettifying code! ' ,
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function test_handle_purge_method()
79
79
80
80
public function test_node_action_outputs ()
81
81
{
82
- $ this ->artisan ('build --pretty --run-dev --run-prod ' )
82
+ $ this ->artisan ('build --run-prettier --run-dev --run-prod ' )
83
83
->expectsOutput ('Prettifying code! This may take a second. ' )
84
84
->expectsOutput ('Building frontend assets for development! This may take a second. ' )
85
85
->expectsOutput ('Building frontend assets for production! This may take a second. ' )
You can’t perform that action at this time.
0 commit comments