Skip to content

Commit 260a3b3

Browse files
authored
Add installer for Miaoxing plugin (#482)
1 parent e0be7bd commit 260a3b3

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ is not needed to install packages with these frameworks:
8383
| MODX | `modx-extra`
8484
| MODX Evo | `modxevo-snippet`<br>`modxevo-plugin`<br>`modxevo-module`<br>`modxevo-template`<br>`modxevo-lib`
8585
| MediaWiki | `mediawiki-extension`
86+
| Miaoxing | `miaoxing-plugin`
8687
| October | **`october-module`<br>`october-plugin`<br>`october-theme`**
8788
| OntoWiki | `ontowiki-extension`<br>`ontowiki-theme`<br>`ontowiki-translation`
8889
| OXID | `oxid-module`<br>`oxid-theme`<br>`oxid-out`

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"MODX",
4747
"MODX Evo",
4848
"MediaWiki",
49+
"Miaoxing",
4950
"OXID",
5051
"osclass",
5152
"MODULEWork",

src/Composer/Installers/Installer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class Installer extends LibraryInstaller
7070
'maya' => 'MayaInstaller',
7171
'mautic' => 'MauticInstaller',
7272
'mediawiki' => 'MediaWikiInstaller',
73+
'miaoxing' => 'MiaoxingInstaller',
7374
'microweber' => 'MicroweberInstaller',
7475
'modulework' => 'MODULEWorkInstaller',
7576
'modx' => 'ModxInstaller',
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Composer\Installers;
4+
5+
class MiaoxingInstaller extends BaseInstaller
6+
{
7+
protected $locations = array(
8+
'plugin' => 'plugins/{$name}/',
9+
);
10+
}

tests/Composer/Installers/Test/InstallerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public function dataForTestSupport()
172172
array('majima-plugin', true),
173173
array('mako-package', true),
174174
array('mantisbt-plugin', true),
175+
array('miaoxing-plugin', true),
175176
array('modx-extra', true),
176177
array('modxevo-snippet', true),
177178
array('modxevo-plugin', true),
@@ -385,6 +386,10 @@ public function dataForTestInstallPath()
385386
array('mediawiki-extension', 'extensions/SyntaxHighlight_GeSHi/', 'author/syntax-highlight_GeSHi'),
386387
array('mediawiki-skin', 'skins/someskin/', 'author/someskin-skin'),
387388
array('mediawiki-skin', 'skins/someskin/', 'author/someskin'),
389+
array('miaoxing-plugin', 'plugins/plugin/', 'shama/plugin'),
390+
array('miaoxing-plugin', 'plugins/my-plugin/', 'shama/my-plugin'),
391+
array('miaoxing-plugin', 'plugins/MyPlugin/', 'shama/MyPlugin'),
392+
array('miaoxing-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
388393
array('microweber-module', 'userfiles/modules/my-thing/', 'author/my-thing-module'),
389394
array('modulework-module', 'modules/my_package/', 'shama/my_package'),
390395
array('moodle-mod', 'mod/my_package/', 'shama/my_package'),

0 commit comments

Comments
 (0)