Create required folders structure during build process

This commit is contained in:
Dmitriy Simushev 2014-09-17 14:19:34 +00:00
parent 4ab099864a
commit 14392ac494
3 changed files with 11 additions and 6 deletions

View File

@ -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:

View File

@ -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;
}));
}

View File

@ -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"
}
}