RoboFile corrections
This commit is contained in:
parent
176e6897df
commit
51e31c224f
16
RoboFile.php
16
RoboFile.php
@ -128,7 +128,6 @@ class RoboFile extends Tasks {
|
||||
$this->testCS();
|
||||
}
|
||||
$this->bundle();
|
||||
// $this->minify( $opts );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -199,8 +198,7 @@ class RoboFile extends Tasks {
|
||||
->notName( '*.min.css' )
|
||||
->in( $this->target_dir . '/' . $this->final_name . '/styles' );
|
||||
foreach ( $finder as $file ) {
|
||||
$this->taskMinify( $file )
|
||||
->run();
|
||||
$this->taskMinify( $file )->run();
|
||||
// Replace original file for in-place minification.
|
||||
$abspath = $file->getPath() . '/' . $file->getFilename();
|
||||
$this->_rename( str_replace( '.css', '.min.css', $abspath ), $abspath, true );
|
||||
@ -411,7 +409,7 @@ class RoboFile extends Tasks {
|
||||
if ( is_dir( $this->target_dir . '/svn' ) ) {
|
||||
$this->taskSvnStack()
|
||||
->stopOnFail()
|
||||
->dir( $this->target_dir . '/svn/statify-blacklist' )
|
||||
->dir( $this->target_dir . '/svn/wp-liveticker2' )
|
||||
->update()
|
||||
->run();
|
||||
} else {
|
||||
@ -435,7 +433,7 @@ class RoboFile extends Tasks {
|
||||
private function commitVCS( $to_add, $msg ) {
|
||||
$task = $this->taskSvnStack()
|
||||
->stopOnFail()
|
||||
->dir( $this->target_dir . '/svn/statify-blacklist' );
|
||||
->dir( $this->target_dir . '/svn/wp-liveticker2' );
|
||||
|
||||
if ( is_array( $to_add ) ) {
|
||||
foreach ( $to_add as $ta ) {
|
||||
@ -454,7 +452,7 @@ class RoboFile extends Tasks {
|
||||
* @return void
|
||||
*/
|
||||
private function updateVCSreadme() {
|
||||
$trunk_dir = $this->target_dir . '/svn/statify-blacklist/trunk';
|
||||
$trunk_dir = $this->target_dir . '/svn/wp-liveticker2/trunk';
|
||||
$this->_copy( $this->target_dir . '/' . $this->final_name . 'README.md', $trunk_dir . 'README.md' );
|
||||
}
|
||||
|
||||
@ -465,7 +463,7 @@ class RoboFile extends Tasks {
|
||||
*/
|
||||
private function updateVCStrunk() {
|
||||
// Clean trunk directory.
|
||||
$trunk_dir = $this->target_dir . '/svn/statify-blacklist/trunk';
|
||||
$trunk_dir = $this->target_dir . '/svn/wp-liveticker2/trunk';
|
||||
$this->taskCleanDir( $trunk_dir )->run();
|
||||
|
||||
// Copy built bundle to trunk.
|
||||
@ -479,9 +477,9 @@ class RoboFile extends Tasks {
|
||||
*/
|
||||
private function updateVCStag() {
|
||||
// Clean tag directory if it exists.
|
||||
$tag_dir = $this->target_dir . '/svn/statify-blacklist/tags/' . $this->version;
|
||||
$tag_dir = $this->target_dir . '/svn/wp-liveticker2/tags/' . $this->version;
|
||||
if ( is_dir( $tag_dir ) ) {
|
||||
$this->taskCleanDir( $this->target_dir . '/svn/statify-blacklist/tags/' . $this->version )->run();
|
||||
$this->taskCleanDir( $this->target_dir . '/svn/wp-liveticker2/tags/' . $this->version )->run();
|
||||
} else {
|
||||
$this->_mkdir( $tag_dir );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user