diff --git a/README.md b/README.md index f4ecb63c58..8b3b46cc90 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,6 @@ $ ./do compile:all # compiles CSS and JS files. $ ./do watch:css # watch CSS files for changes and compile them. $ ./do watch:js # watch JS files for changes and compile them. -$ ./do watch # watch CSS and JS files for changes and compile them. $ ./do test:unit [--file=...] [--debug] # runs the PHP unit tests. diff --git a/RoboFile.php b/RoboFile.php index 591fd9baae..300fa82502 100644 --- a/RoboFile.php +++ b/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()