Skip to content

Instantly share code, notes, and snippets.

@kargirwar
Last active December 10, 2017 09:43
Show Gist options
  • Save kargirwar/cbd6612e006c8a7bdd8d359e3f320e5f to your computer and use it in GitHub Desktop.
Save kargirwar/cbd6612e006c8a7bdd8d359e3f320e5f to your computer and use it in GitHub Desktop.
<?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