mirror of
https://github.com/Mibew/mibew.git
synced 2025-05-11 06:23:06 +03:00
parent
b6d472d62f
commit
952ebf8b9d
@ -26,8 +26,10 @@ var fs = require('fs'),
|
|||||||
// Set global configs.
|
// Set global configs.
|
||||||
var config = {
|
var config = {
|
||||||
mibewPath: 'mibew',
|
mibewPath: 'mibew',
|
||||||
|
configsPath: 'mibew/configs',
|
||||||
phpVendorPath: 'mibew/vendor',
|
phpVendorPath: 'mibew/vendor',
|
||||||
pluginsPath: 'mibew/plugins',
|
pluginsPath: 'mibew/plugins',
|
||||||
|
avatarsPath: 'mibew/files/avatar',
|
||||||
cachePath: 'mibew/cache',
|
cachePath: 'mibew/cache',
|
||||||
jsPath: 'mibew/js',
|
jsPath: 'mibew/js',
|
||||||
chatStylesPath: 'mibew/styles/dialogs',
|
chatStylesPath: 'mibew/styles/dialogs',
|
||||||
@ -224,8 +226,15 @@ gulp.task('generate-pot', function() {
|
|||||||
gulp.task('pack-sources', ['composer-install'], function() {
|
gulp.task('pack-sources', ['composer-install'], function() {
|
||||||
var sources = [
|
var sources = [
|
||||||
config.mibewPath + '/**/*',
|
config.mibewPath + '/**/*',
|
||||||
// Exclude cache files but include ".keep" file.
|
// Exclude user's config
|
||||||
|
'!' + config.configsPath + '/config.yml',
|
||||||
|
// Exclude cache files but not the ".keep" file.
|
||||||
'!' + config.cachePath + '/**/!(.keep)',
|
'!' + config.cachePath + '/**/!(.keep)',
|
||||||
|
// Exclude avatars but not the ".keep" file.
|
||||||
|
'!' + config.avatarsPath + '/!(.keep)',
|
||||||
|
// Exclude plugins but not the ".keep" file.
|
||||||
|
'!' + config.pluginsPath + '/!(.keep)',
|
||||||
|
'!' + config.pluginsPath + '/*/**/*',
|
||||||
// Exclude Git repositories that can be shipped with third-party libs
|
// Exclude Git repositories that can be shipped with third-party libs
|
||||||
'!' + config.phpVendorPath + '/**/.git',
|
'!' + config.phpVendorPath + '/**/.git',
|
||||||
'!' + config.phpVendorPath + '/**/.git/**/*'
|
'!' + config.phpVendorPath + '/**/.git/**/*'
|
||||||
|
Loading…
Reference in New Issue
Block a user