You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PatternLab/Console/Commands/WatchCommand.php
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
use \PatternLab\Config;
14
14
use \PatternLab\Console;
15
15
use \PatternLab\Console\Command;
16
+
use \PatternLab\Console\ProcessSpawner;
16
17
use \PatternLab\Generator;
17
18
use \PatternLab\Timer;
18
19
use \PatternLab\Watcher;
@@ -29,6 +30,7 @@ public function __construct() {
29
30
Console::setCommandOption($this->command,"patternsonly","Watches only the patterns. Does NOT clean <path>public/</path>.","To watch and generate only the patterns:","p");
30
31
Console::setCommandOption($this->command,"nocache","Set the cacheBuster value to 0.","To watch and turn off the cache buster:","n");
31
32
Console::setCommandOption($this->command,"sk","Watch for changes to the StarterKit and copy to <path>source/</path>. The <info>--sk</info> flag should only be used if one is actively developing a StarterKit.","To watch for changes to the StarterKit:");
33
+
Console::setCommandOption($this->command,"noprocs","Disable plug-in related processes. For use with <info>--server --with-watch</info>.","To disable plug-in related processes:");
32
34
Console::setCommandSample($this->command,"To watch only patterns and turn off the cache buster:","--patternsonly --nocache");
33
35
//Console::setCommandOption($this->command,"autoreload","Turn on the auto-reload service.","To turn on auto-reload:","r");
34
36
@@ -53,6 +55,12 @@ public function run() {
53
55
54
56
} else {
55
57
58
+
// collect any processes that might be related to watch (e.g. reload). spawn them.
0 commit comments