RoboFile.php
function build(): Result {
    $version = $this->taskSemVer('.semver')->setFormat('%M.%m.%p')->__toString();
    return $this->taskReplaceInFile('bin/which')->regex("/const packageVersion = '\d+(\.\d+){2}'/")->to("const packageVersion = '$version'")->run();
  }
function build(): Result {
    $version = $this->taskSemVer('.semver')->setFormat('%M.%m.%p')->__toString();
    return $this->taskReplaceInFile('bin/which')->regex("/const packageVersion = '\d+(\.\d+){2}'/")->to("const packageVersion = '$version'")->run();
  }
function build ( ) : Result { $ version = $ this -> taskSemVer ( '.semver' ) -> setFormat ( '%M.%m.%p' ) -> __toString ( ) ; return $ this -> taskReplaceInFile ( 'bin/which' ) -> regex ( "/const packageVersion = '\d+(\.\d+){2}'/" ) -> to ( "const packageVersion = '$version'" ) -> run ( ) ; }
Builds the project.
@return Result The task result.
Builds the project .