Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

5 changed files with 16 additions and 16 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
# Do not index node.js modules that are used for building # Do not index node.js modules that are used for building
node_modules node_modules
package-lock.json
# Do not index bower components # Do not index bower components
vendor vendor

View File

@ -86,7 +86,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
public function attachJSFiles(&$args) public function attachJSFiles(&$args)
{ {
if ($this->isAppropriatePage($args['request'])) { if ($this->isAppropriatePage($args['request'])) {
$base_path = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()); $base_path = $this->getFilesPath();
$args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js'; $args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js';
$args['js'][] = $base_path . '/vendor/emojify.js/emojify.js'; $args['js'][] = $base_path . '/vendor/emojify.js/emojify.js';
$args['js'][] = $base_path . '/js/plugin.js'; $args['js'][] = $base_path . '/js/plugin.js';
@ -101,7 +101,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
public function attachCssFiles(&$args) public function attachCssFiles(&$args)
{ {
if ($this->isAppropriatePage($args['request'])) { if ($this->isAppropriatePage($args['request'])) {
$args['css'][] = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/css/styles.css'; $args['css'][] = $this->getFilesPath() . '/css/styles.css';
} }
} }
@ -116,8 +116,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
if ($this->isAppropriatePage($request)) { if ($this->isAppropriatePage($request)) {
$args['plugins']['MibewEmoji'] = array( $args['plugins']['MibewEmoji'] = array(
'imagesDir' => ($request->getBasePath() . '/' 'imagesDir' => ($request->getBasePath() . '/' . $this->getFilesPath()
. str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath())
. '/vendor/emojify.js/images/emoji'), . '/vendor/emojify.js/images/emoji'),
'ignoreEmoticons' => $this->config['ignore_emoticons'], 'ignoreEmoticons' => $this->config['ignore_emoticons'],
); );
@ -131,7 +130,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
*/ */
public static function getVersion() public static function getVersion()
{ {
return '1.0.1'; return '1.0.0';
} }
/** /**

View File

@ -7,7 +7,7 @@ Emoticons like :-) and ;D are also supported.
## Installation ## Installation
1. Get the archive with the plugin sources. You can download it from the [official site](https://mibew.org/plugins#mibew-emoji) or build the plugin from sources. 1. Get the archive with the plugin sources. At the moment the only option is to build the plugin from sources.
2. Untar/unzip the plugin's archive. 2. Untar/unzip the plugin's archive.

View File

@ -18,7 +18,7 @@ gulp.task('bower', function(callback) {
}); });
}); });
gulp.task('prepare-release', gulp.series('bower', function() { gulp.task('prepare-release', ['bower'], function() {
var version = require('./package.json').version; var version = require('./package.json').version;
return eventStream.merge( return eventStream.merge(
@ -30,10 +30,12 @@ gulp.task('prepare-release', gulp.series('bower', function() {
) )
.pipe(chmod(0644)) .pipe(chmod(0644))
.pipe(gulp.dest('release')); .pipe(gulp.dest('release'));
})); });
// Builds and packs plugins sources // Builds and packs plugins sources
gulp.task('default', gulp.series('prepare-release')); gulp.task('default', ['prepare-release'], function() {
// The "default" task is just an alias for "prepare-release" task.
});
/** /**
* Returns files stream with the plugin sources. * Returns files stream with the plugin sources.

View File

@ -1,13 +1,13 @@
{ {
"version": "1.0.1", "version": "1.0.0",
"devDependencies": { "devDependencies": {
"bower": "~1.8.8", "bower": "~1.3.12",
"gulp": "~4.0.0", "gulp": "~3.8.10",
"event-stream": "~3.1.7", "event-stream": "~3.1.7",
"gulp-zip": "~2.0.2", "gulp-zip": "~2.0.2",
"gulp-tar": "~3.1.0", "gulp-tar": "~1.3.1",
"gulp-gzip": "~0.0.8", "gulp-gzip": "~0.0.8",
"gulp-chmod": "~3.0.0", "gulp-chmod": "~1.2.0",
"gulp-rename": "~1.2.0" "gulp-rename": "~1.2.0"
} }
} }