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->testCS();
|
||||||
}
|
}
|
||||||
$this->bundle();
|
$this->bundle();
|
||||||
// $this->minify( $opts );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -199,8 +198,7 @@ class RoboFile extends Tasks {
|
|||||||
->notName( '*.min.css' )
|
->notName( '*.min.css' )
|
||||||
->in( $this->target_dir . '/' . $this->final_name . '/styles' );
|
->in( $this->target_dir . '/' . $this->final_name . '/styles' );
|
||||||
foreach ( $finder as $file ) {
|
foreach ( $finder as $file ) {
|
||||||
$this->taskMinify( $file )
|
$this->taskMinify( $file )->run();
|
||||||
->run();
|
|
||||||
// Replace original file for in-place minification.
|
// Replace original file for in-place minification.
|
||||||
$abspath = $file->getPath() . '/' . $file->getFilename();
|
$abspath = $file->getPath() . '/' . $file->getFilename();
|
||||||
$this->_rename( str_replace( '.css', '.min.css', $abspath ), $abspath, true );
|
$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' ) ) {
|
if ( is_dir( $this->target_dir . '/svn' ) ) {
|
||||||
$this->taskSvnStack()
|
$this->taskSvnStack()
|
||||||
->stopOnFail()
|
->stopOnFail()
|
||||||
->dir( $this->target_dir . '/svn/statify-blacklist' )
|
->dir( $this->target_dir . '/svn/wp-liveticker2' )
|
||||||
->update()
|
->update()
|
||||||
->run();
|
->run();
|
||||||
} else {
|
} else {
|
||||||
@ -435,7 +433,7 @@ class RoboFile extends Tasks {
|
|||||||
private function commitVCS( $to_add, $msg ) {
|
private function commitVCS( $to_add, $msg ) {
|
||||||
$task = $this->taskSvnStack()
|
$task = $this->taskSvnStack()
|
||||||
->stopOnFail()
|
->stopOnFail()
|
||||||
->dir( $this->target_dir . '/svn/statify-blacklist' );
|
->dir( $this->target_dir . '/svn/wp-liveticker2' );
|
||||||
|
|
||||||
if ( is_array( $to_add ) ) {
|
if ( is_array( $to_add ) ) {
|
||||||
foreach ( $to_add as $ta ) {
|
foreach ( $to_add as $ta ) {
|
||||||
@ -454,7 +452,7 @@ class RoboFile extends Tasks {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function updateVCSreadme() {
|
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' );
|
$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() {
|
private function updateVCStrunk() {
|
||||||
// Clean trunk directory.
|
// 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();
|
$this->taskCleanDir( $trunk_dir )->run();
|
||||||
|
|
||||||
// Copy built bundle to trunk.
|
// Copy built bundle to trunk.
|
||||||
@ -479,9 +477,9 @@ class RoboFile extends Tasks {
|
|||||||
*/
|
*/
|
||||||
private function updateVCStag() {
|
private function updateVCStag() {
|
||||||
// Clean tag directory if it exists.
|
// 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 ) ) {
|
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 {
|
} else {
|
||||||
$this->_mkdir( $tag_dir );
|
$this->_mkdir( $tag_dir );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user