Rename "componets" directory to "vendor"

This commit is contained in:
Dmitriy Simushev 2014-10-16 09:47:31 +00:00
parent 068ce8740c
commit a87968c90a
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
{
"analytics": false,
"directory": "components"
"directory": "vendor"
}

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
node_modules
# Do not index bower components
components
vendor
# Do not index releases
release

View File

@ -85,8 +85,8 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
{
if ($this->isAppropriatePage($args['request'])) {
$base_path = $this->getFilesPath();
$args['js'][] = $base_path . '/components/es5-shim/es5-shim.js';
$args['js'][] = $base_path . '/components/emojify.js/emojify.js';
$args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js';
$args['js'][] = $base_path . '/vendor/emojify.js/emojify.js';
$args['js'][] = $base_path . '/js/plugin.js';
}
}
@ -115,7 +115,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
if ($this->isAppropriatePage($request)) {
$args['plugins']['MibewEmoji'] = array(
'imagesDir' => ($request->getBasePath() . '/' . $this->getFilesPath()
. '/components/emojify.js/images/emoji'),
. '/vendor/emojify.js/images/emoji'),
'ignoreEmoticons' => $this->config['ignore_emoticons'],
);
}

View File

@ -49,12 +49,12 @@ var getSources = function() {
'LICENSE',
'js/*',
'css/*',
'components/es5-shim/es5-shim.js',
'components/es5-shim/LICENSE',
'components/es5-shim/README.md',
'components/emojify.js/emojify.js',
'components/emojify.js/README.md',
'components/emojify.js/images/emoji/*'
'vendor/es5-shim/es5-shim.js',
'vendor/es5-shim/LICENSE',
'vendor/es5-shim/README.md',
'vendor/emojify.js/emojify.js',
'vendor/emojify.js/README.md',
'vendor/emojify.js/images/emoji/*'
],
{base: './'}
)