Skip to content

Commit

Permalink
Merge pull request #346 from LavaLite/master
Browse files Browse the repository at this point in the history
Installer for LavaLite.
  • Loading branch information
niksamokhvalov committed Mar 13, 2017
2 parents 08ab3ea + 27e1dbd commit 697ea58
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
# Change Log

## [Unreleased]
* Installer for Lavalite.

## v1.2.0 - 2016-08-13
### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -66,6 +66,7 @@ is not needed to install packages with these frameworks:
| KodiCMS | `kodicms-plugin`<br>`kodicms-media`
| Kohana | **`kohana-module`**
| Laravel | `laravel-library`
| Lavalite | `lavalite-theme`<br>`lavalite-package`
| Lithium | **`lithium-library`<br>`lithium-source`**
| Magento | `magento-library`<br>`magento-skin`<br>`magento-theme`
| Mako | `mako-package`
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -31,6 +31,7 @@
"Kanboard",
"Kohana",
"Laravel",
"Lavalite",
"Lithium",
"Magento",
"Mako",
Expand Down
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Expand Up @@ -48,6 +48,7 @@ class Installer extends LibraryInstaller
'kodicms' => 'KodiCMSInstaller',
'kohana' => 'KohanaInstaller',
'laravel' => 'LaravelInstaller',
'lavalite' => 'LavaLiteInstaller',
'lithium' => 'LithiumInstaller',
'magento' => 'MagentoInstaller',
'mako' => 'MakoInstaller',
Expand Down
10 changes: 10 additions & 0 deletions src/Composer/Installers/LavaLiteInstaller.php
@@ -0,0 +1,10 @@
<?php
namespace Composer\Installers;

class LavaLiteInstaller extends BaseInstaller
{
protected $locations = array(
'package' => 'packages/{$name}/',
'theme' => 'public/themes/{$name}/',
);
}
4 changes: 4 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Expand Up @@ -138,6 +138,8 @@ public function dataForTestSupport()
array('kirby-plugin', true),
array('kohana-module', true),
array('laravel-library', true),
array('lavalite-theme', true),
array('lavalite-package', true),
array('lithium-library', true),
array('magento-library', true),
array('mako-package', true),
Expand Down Expand Up @@ -283,6 +285,8 @@ public function dataForTestInstallPath()
array('kirby-plugin', 'site/plugins/my_plugin/', 'shama/my_plugin'),
array('kohana-module', 'modules/my_package/', 'shama/my_package'),
array('laravel-library', 'libraries/my_package/', 'shama/my_package'),
array('lavalite-theme', 'public/themes/my_theme/', 'shama/my_theme'),
array('lavalite-package', 'packages/my_package/', 'shama/my_package'),
array('lithium-library', 'libraries/li3_test/', 'user/li3_test'),
array('magento-library', 'lib/foo/', 'test/foo'),
array('modxevo-snippet', 'assets/snippets/my_snippet/', 'shama/my_snippet'),
Expand Down

0 comments on commit 697ea58

Please sign in to comment.