Remove ./do watch task

[MAILPOET-3500]
This commit is contained in:
Pavel Dohnal
2021-06-25 09:37:14 +02:00
committed by Veljko V
parent 16894fb81c
commit 876c92ef0b
2 changed files with 0 additions and 16 deletions

View File

@@ -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()