Remove ./do watch task
[MAILPOET-3500]
This commit is contained in:
15
RoboFile.php
15
RoboFile.php
@@ -33,21 +33,6 @@ class RoboFile extends \Robo\Tasks {
|
||||
->run();
|
||||
}
|
||||
|
||||
public function watch() {
|
||||
$this->say('Warning: this lints and compiles all files, not just the changed one. Use separate tasks watch:js and watch:css for faster and more efficient watching.');
|
||||
$cssFiles = $this->rsearch('assets/css/src/', ['scss']);
|
||||
$jsFiles = $this->rsearch('assets/js/src/', ['js', 'jsx', 'ts', 'tsx']);
|
||||
|
||||
$this->taskWatch()
|
||||
->monitor($jsFiles, function() {
|
||||
$this->compileJs();
|
||||
})
|
||||
->monitor($cssFiles, function() {
|
||||
$this->compileCss();
|
||||
})
|
||||
->run();
|
||||
}
|
||||
|
||||
public function watchCss() {
|
||||
$cssFiles = $this->rsearch('assets/css/src/', ['scss']);
|
||||
$this->taskWatch()
|
||||
|
Reference in New Issue
Block a user