Last active
December 10, 2017 09:43
-
-
Save kargirwar/cbd6612e006c8a7bdd8d359e3f320e5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RoboFile extends \Robo\Tasks | |
{ | |
public function mvCssFiles() { | |
$this->taskCopyDir(["css" => "css-0.1"])->run(); | |
$this->taskDeleteDir("css")->run(); | |
} | |
public function changeRefs() { | |
$this->taskReplaceInFile("index.html") | |
->regex("#css\\/styles.css#") | |
->to('/css-0.1/styles.css') | |
->run(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment