Robo plug-in minifying PHP source code by removing comments and whitespace. https://docs.belin.io/robo-php-minify
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
457 B

  1. <?php declare(strict_types=1);
  2. use Robo\{Result, Tasks};
  3. use Robo\PhpMinify\TransformMode;
  4. // Load the dependencies.
  5. require_once __DIR__."/vendor/autoload.php";
  6. /** Provides tasks for the build system. */
  7. class RoboFile extends Tasks {
  8. use \Robo\PhpMinify\Tasks;
  9. /**
  10. * Builds the project.
  11. * @return Result The task result.
  12. */
  13. function build(): Result {
  14. return $this->taskPhpMinify("src")->mode(TransformMode::fast)->to("build")->run();
  15. }
  16. }