mirror of
https://github.com/Mibew/emoji-plugin.git
synced 2024-11-15 00:44:12 +03:00
Create required folders structure during build process
This commit is contained in:
parent
4ab099864a
commit
14392ac494
@ -7,9 +7,8 @@ It replaces emojis codes with images in chat messages. The full list of supporte
|
||||
|
||||
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.
|
||||
3. Create folder "`<Mibew root>`/plugins/Mibew/Mibew/Plugin/Emoji" (case does matter).
|
||||
4. Put files of the plugins to the just created folder.
|
||||
5. Add plugins definition to "plugins" structure in "`<Mibew root>`/configs/config.yml".
|
||||
3. Put files of the plugins to the `<Mibew root>/plugins` folder.
|
||||
4. Add plugins definition to "plugins" structure in "`<Mibew root>`/configs/config.yml".
|
||||
If the "plugins" stucture looks like `plugins: []` it will become:
|
||||
```yaml
|
||||
plugins:
|
||||
|
@ -4,7 +4,8 @@ var bower = require('bower'),
|
||||
chmod = require('gulp-chmod'),
|
||||
zip = require('gulp-zip'),
|
||||
tar = require('gulp-tar'),
|
||||
gzip = require('gulp-gzip');
|
||||
gzip = require('gulp-gzip'),
|
||||
rename = require('gulp-rename');
|
||||
|
||||
// Installs bower dependencies
|
||||
gulp.task('bower', function(callback) {
|
||||
@ -53,5 +54,9 @@ var getSources = function() {
|
||||
'components/emoji-images/pngs/*'
|
||||
],
|
||||
{base: './'}
|
||||
);
|
||||
)
|
||||
.pipe(rename(function(path) {
|
||||
console.log(path.dirname);
|
||||
path.dirname = 'Mibew/Mibew/Plugin/Emoji/' + path.dirname;
|
||||
}));
|
||||
}
|
||||
|
@ -13,6 +13,7 @@
|
||||
"gulp-zip": "~2.0.1",
|
||||
"gulp-tar": "~1.1.0",
|
||||
"gulp-gzip": "~0.0.8",
|
||||
"gulp-chmod": "~1.1.1"
|
||||
"gulp-chmod": "~1.1.1",
|
||||
"gulp-rename": "~1.2.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user