Skip to content

Commit

Permalink
Merge pull request #10 from yvesh/master
Browse files Browse the repository at this point in the history
Updated namespaces to joomla_projects\jorobo
  • Loading branch information
javigomez committed Feb 1, 2016
2 parents 1a66363 + 4976c70 commit 5deb520
Show file tree
Hide file tree
Showing 33 changed files with 124 additions and 99 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ selenium-server-standalone.jar
codecept.phar
selenium.log

# JBuild related files
# JoRobo related files
/dist
/jbuild.ini
/jorobo.ini
/source
/build
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
# jorobo (Robo.li tasks for Joomla! extensions)
# JoRobo (Robo.li tasks for Joomla!)

[![Latest Stable Version](https://poser.pugx.org/joomla-projects/jorobo/v/stable)](https://packagist.org/packages/joomla-projects/jorobo) [![Total Downloads](https://poser.pugx.org/joomla-projects/jorobo/downloads)](https://packagist.org/packages/joomla-projects/jorobo) [![Latest Unstable Version](https://poser.pugx.org/joomla-projects/jorobo/v/unstable)](https://packagist.org/packages/joomla-projects/jorobo) [![License](https://poser.pugx.org/yvesh/jbuild/license)](https://packagist.org/packages/joomla-projects/jorobo)
[![Latest Stable Version](https://poser.pugx.org/joomla-projects/jorobo/v/stable)](https://packagist.org/packages/joomla-projects/jorobo) [![Total Downloads](https://poser.pugx.org/joomla-projects/jorobo/downloads)](https://packagist.org/packages/joomla-projects/jorobo) [![Latest Unstable Version](https://poser.pugx.org/joomla-projects/jorobo/v/unstable)](https://packagist.org/packages/joomla-projects/jorobo) [![License](https://poser.pugx.org/joomla-projects/jorobo/license)](https://packagist.org/packages/joomla-projects/jorobo)

#### Warning: Currently in alpha stage!

Tool and Task based on Robo.li to manage Joomla Extension Development and Releases
Tools and Tasks based on Robo.li for Joomla Extension Development and Releases

## Installation (Standalone):

* composer install
* configure jbuild.ini
* configure jorobo.ini
* vendor/bin/robo


## Function overview:

* vendor/bin/robo map destination - Symlinks an extension into an Joomla installation (WIP @rdeutz working solution)
* vendor/bin/robo build - Builds your extension into an installable Joomla package or zip file including replacements
* vendor/bin/robo generate [--mod_xy --com_xy --plg_system_xy] (not integrated yet)


## How-to use in your own extension

Expand All @@ -32,7 +28,7 @@ require 'vendor/autoload.php';
class RoboFile extends \Robo\Tasks
{
use \JBuild\Tasks\loadTasks;
use \Joomla\Jorobo\Tasks\loadTasks;
..
```

Expand All @@ -44,13 +40,13 @@ or

`$this->taskBuild($params)->run()`

Look at the RoboFile.php in the library root for a sample file
Look at the RoboFile.php in the library root for a sample file.

## Usage in your own extension

### Directory setup

In order to use Jorobo you should use the following directory structure (it's like the "common" joomla one)
In order to use JoRobo you should use the following directory structure (it's like the "common" joomla one)

####Components

Expand Down
8 changes: 4 additions & 4 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

use JBuild\Tasks\loadTasks;
use Joomla\Jorobo\Tasks\loadTasks;

if (!defined('JPATH_BASE'))
{
Expand Down Expand Up @@ -40,7 +40,7 @@ public function __construct()
*/
public function map($target)
{
(new \JBuild\Tasks\Map($target))->run();
(new \Joomla\Jorobo\Tasks\Map($target))->run();
}

/**
Expand All @@ -52,7 +52,7 @@ public function map($target)
*/
public function build($params = ['dev' => false])
{
(new \JBuild\Tasks\Build($params))->run();
(new \Joomla\Jorobo\Tasks\Build($params))->run();
}

/**
Expand All @@ -64,6 +64,6 @@ public function build($params = ['dev' => false])
*/
public function generate($extensions)
{
(new \JBuild\Tasks\Generate($extensions))->run();
(new \Joomla\Jorobo\Tasks\Generate($extensions))->run();
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joomla-projects/jorobo",
"description": "Tool and Task based on Robo.li to manage Joomla Extension Development and Releases",
"description": "Tools and Tasks based on Robo.li for Joomla Extension Development and Releases",
"license": "GPL-2.0+",
"authors": [
{
Expand All @@ -17,7 +17,7 @@
}
],
"autoload": {
"psr-4": {"JBuild\\": "src"}
"psr-4": {"Joomla\\Jorobo\\": "src"}
},
"require" : {
"php": ">=5.4.0",
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions jorobo.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extension =
version =
source = src
target = zip

[github]
remote = origin
branch = develop
token =
owner = joomla-projects
repository = weblinks
changelog_source = commits
4 changes: 2 additions & 2 deletions src/Tasks/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks;
namespace Joomla\Jorobo\Tasks;

use Robo\Result;
use Robo\Task\BaseTask;
Expand All @@ -16,7 +16,7 @@
/**
* Class Build
*
* @package JBuild\Tasks
* @package Joomla\Jorobo\Tasks
*/
class Build extends JTask implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Build base - contains methods / data used in multiple build tasks
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Base extends JTask implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/CBPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Community Builder build class
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class CBPlugin extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Build Cli
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Cli extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Class Component
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Component extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* The supervisor
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Extension extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Class Language
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Language extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Build Library
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Library extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Class Media
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Media extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Class Module
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Module extends Base implements TaskInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/Build/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace JBuild\Tasks\Build;
namespace Joomla\Jorobo\Tasks\Build;

use Robo\Result;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Exception\TaskException;

use JBuild\Tasks\JTask;
use Joomla\Jorobo\Tasks\JTask;

/**
* Class Plugin
*
* @package JBuild\Tasks\Build
* @package Joomla\Jorobo\Tasks\Build
*/
class Plugin extends Base implements TaskInterface
{
Expand Down
Loading

0 comments on commit 5deb520

Please sign in to comment.