Code refactoring

Fixed owncloud password encoder/decoder (#291)
Fixed ckeditor in ownCloud iframe (Closes #302)
Release commit
This commit is contained in:
RainLoop Team 2014-09-06 01:44:29 +04:00
parent 7a374ebe03
commit 06274c6a7c
112 changed files with 2667 additions and 1862 deletions

View file

@ -68,6 +68,7 @@ function renameFileWothMd5Hash(sFile)
}
cfg.paths.globjs = 'dev/**/*.js';
cfg.paths.static = 'rainloop/v/' + cfg.devVersion + '/static/';
cfg.paths.staticJS = 'rainloop/v/' + cfg.devVersion + '/static/js/';
cfg.paths.staticMinJS = 'rainloop/v/' + cfg.devVersion + '/static/js/min/';
cfg.paths.staticCSS = 'rainloop/v/' + cfg.devVersion + '/static/css/';
@ -238,6 +239,16 @@ gulp.task('js:libs', ['js:encrypt'], function() {
.pipe(gulp.dest(cfg.paths.staticMinJS));
});
gulp.task('js:ckeditor:beautify', function() {
var beautify = require('gulp-beautify');
return gulp.src(cfg.paths.static + 'ckeditor/ckeditor.js')
.pipe(beautify({
'indentSize': 2
}))
.pipe(rename('ckeditor.beautify.js'))
.pipe(gulp.dest(cfg.paths.static + 'ckeditor/'));
});
gulp.task('js:webpack:clear', function() {
return gulp.src([cfg.paths.staticJS + '*.chunk.js', cfg.paths.staticMinJS + '*.chunk.js'], {read: false})
.pipe(require('gulp-rimraf')());