Commit 3158ea54906013da826033f2f2a3df3f50fd689c

Authored by Arthur Bikmullin
1 parent 1c257998

Improved build script

Showing 1 changed file with 4 additions and 2 deletions
... ... @@ -323,15 +323,17 @@ gulp.task('dist', environment.options.build === 'clean' ? ['default'] : [], func
323 323 {
324 324 forceDelete: false,
325 325 whitelist: true,
326   - filter: function(file) {
  326 + filter: function(file, path) {
327 327 var found;
328 328
329 329 if (file === 'gulpfile.js' || file === 'package.json' || file === 'bower.json' || file === 'settings.ini') {
330 330 return false;
331 331 } else if (file === 'node_modules' || file === 'bower_components' || file === 'closure') {
332 332 return false;
333   - } else if (file.indexOf('.') === 0 || file.indexOf('.build') > 0) {
  333 + } else if (file.indexOf('.') === 0) {
334 334 return false;
  335 + } else if (file.indexOf('.build') > 0) {
  336 + return path.indexOf('html') >= 0;
335 337 } else if (file.indexOf('buildconfig') === 0 || file.indexOf('config.develop') === 0) {
336 338 return false;
337 339 } else if ((file.indexOf('mserver') === 0 || file.indexOf('jentos') === 0) && file.match(/.+\.(pro\.user|user)/)) {
... ...