mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
delete auto js/css files
This commit is contained in:
parent
27d4bd74ad
commit
e39f0caf2c
17 changed files with 9 additions and 37277 deletions
51
gulpfile.js
51
gulpfile.js
|
|
@ -161,9 +161,6 @@ cfg.paths.js = {
|
|||
'vendors/bootstrap/js/bootstrap.min.js'
|
||||
]
|
||||
},
|
||||
common: {
|
||||
name: 'common.js'
|
||||
},
|
||||
app: {
|
||||
name: 'app.js'
|
||||
},
|
||||
|
|
@ -244,6 +241,7 @@ 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')());
|
||||
});
|
||||
|
||||
gulp.task('js:webpack', ['js:webpack:clear'], function(callback) {
|
||||
var
|
||||
webpack = require('webpack'),
|
||||
|
|
@ -278,13 +276,6 @@ gulp.task('js:admin', ['js:webpack'], function() {
|
|||
.on('error', gutil.log);
|
||||
});
|
||||
|
||||
gulp.task('js:common', ['js:webpack'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + cfg.paths.js.common.name)
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
.pipe(gulp.dest(cfg.paths.staticJS))
|
||||
.on('error', gutil.log);
|
||||
});
|
||||
|
||||
gulp.task('js:chunks', ['js:webpack'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + '*.chunk.js')
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
|
|
@ -293,38 +284,10 @@ gulp.task('js:chunks', ['js:webpack'], function() {
|
|||
});
|
||||
|
||||
// - min
|
||||
gulp.task('js:app:min', ['js:app'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + cfg.paths.js.app.name)
|
||||
gulp.task('js:min', ['js:app', 'js:admin', 'js:chunks'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + '*.js')
|
||||
.pipe(replace(/"rainloop\/v\/([^\/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
|
||||
.pipe(uglify(cfg.uglify))
|
||||
// .pipe(rename({suffix: '.min'}))
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
.pipe(gulp.dest(cfg.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
});
|
||||
|
||||
gulp.task('js:admin:min', ['js:admin'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + cfg.paths.js.admin.name)
|
||||
.pipe(uglify(cfg.uglify))
|
||||
// .pipe(rename({suffix: '.min'}))
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
.pipe(gulp.dest(cfg.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
});
|
||||
|
||||
gulp.task('js:common:min', ['js:common'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + cfg.paths.js.common.name)
|
||||
.pipe(uglify(cfg.uglify))
|
||||
// .pipe(rename({suffix: '.min'}))
|
||||
.pipe(replace(/rainloop\/v\/([^\/]+)\/static\/js\//g, 'rainloop/v/$1/static/js/min/'))
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
.pipe(gulp.dest(cfg.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
});
|
||||
|
||||
gulp.task('js:chunks:min', ['js:chunks'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + '*.chunk.js')
|
||||
.pipe(uglify(cfg.uglify))
|
||||
// .pipe(rename({suffix: '.min'}))
|
||||
.pipe(header('/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */\n'))
|
||||
.pipe(gulp.dest(cfg.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
|
|
@ -489,10 +452,10 @@ gulp.task('rainloop:owncloud:clean', ['rainloop:owncloud:copy', 'rainloop:ownclo
|
|||
});
|
||||
|
||||
// MAIN
|
||||
gulp.task('default', [ 'js:libs', 'js:boot', 'js:encrypt', 'js:openpgp', 'js:lint', 'js:app:min', 'js:admin:min', 'js:common:min', 'js:chunks:min', 'css:main:min']);
|
||||
gulp.task('fast', ['js:app', 'js:admin', 'js:common', 'js:chunks', 'css:main']);
|
||||
gulp.task('default', ['js:libs', 'js:boot', 'js:encrypt', 'js:openpgp', 'js:min', 'css:main:min']);
|
||||
gulp.task('fast', ['js:app', 'js:admin', 'js:chunks', 'css:main']);
|
||||
|
||||
gulp.task('rainloop', ['rainloop:copy', 'rainloop:setup', 'rainloop:zip', 'rainloop:md5', 'rainloop:clean']);
|
||||
gulp.task('rainloop', ['js:lint', 'rainloop:copy', 'rainloop:setup', 'rainloop:zip', 'rainloop:md5', 'rainloop:clean']);
|
||||
gulp.task('rainloop+', ['rainloop', 'package-inc-release']);
|
||||
|
||||
gulp.task('owncloud', ['rainloop:owncloud:copy', 'rainloop:owncloud:setup', 'rainloop:owncloud:zip', 'rainloop:owncloud:md5', 'rainloop:owncloud:clean']);
|
||||
|
|
|
|||
|
|
@ -204,7 +204,6 @@ class Service
|
|||
'LibJsLink' => $sStaticPrefix.'js/min/libs.js',
|
||||
'EditorJsLink' => $sStaticPrefix.'ckeditor/ckeditor.js',
|
||||
'OpenPgpJsLink' => $sStaticPrefix.'js/min/openpgp.min.js',
|
||||
'CommonJsLink' => $sStaticPrefix.'js/'.($bAppJsDebug ? '' : 'min/').'common.js',
|
||||
'AppJsLink' => $sStaticPrefix.'js/'.($bAppJsDebug ? '' : 'min/').($bAdmin ? 'admin' : 'app').'.js'
|
||||
);
|
||||
|
||||
|
|
@ -218,7 +217,6 @@ class Service
|
|||
'{{BaseAppLibsScriptLink}}' => $aData['LibJsLink'],
|
||||
'{{BaseAppEditorScriptLink}}' => $aData['EditorJsLink'],
|
||||
'{{BaseAppOpenPgpScriptLink}}' => $aData['OpenPgpJsLink'],
|
||||
'{{BaseCommonMainScriptLink}}' => $aData['CommonJsLink'],
|
||||
'{{BaseAppMainScriptLink}}' => $aData['AppJsLink'],
|
||||
'{{BaseAppLoadingDescription}}' => \htmlspecialchars($aData['LoadingDescription'], ENT_QUOTES|ENT_IGNORE, 'UTF-8'),
|
||||
'{{BaseDir}}' => \in_array($aData['Language'], array('ar', 'he', 'ur')) ? 'rtl' : 'ltr'
|
||||
|
|
|
|||
|
|
@ -82,13 +82,9 @@
|
|||
.wait(function () {
|
||||
__simplePace(30);
|
||||
})
|
||||
.script('{{BaseCommonMainScriptLink}}')
|
||||
.wait(function () {
|
||||
__simplePace(5);
|
||||
})
|
||||
.script('{{BaseAppMainScriptLink}}')
|
||||
.wait(function () {
|
||||
__simplePace(15);
|
||||
__simplePace(20);
|
||||
})
|
||||
.script(function () {
|
||||
return window.rainloopAppData['PluginsLink'] || null;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
1
rainloop/v/0.0.0/static/css/app.min.css
vendored
1
rainloop/v/0.0.0/static/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -13,8 +13,7 @@ module.exports = {
|
|||
chunkFilename: '[chunkhash].chunk.js'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.OccurenceOrderPlugin(),
|
||||
new webpack.optimize.CommonsChunkPlugin('common.js')
|
||||
new webpack.optimize.OccurenceOrderPlugin()
|
||||
],
|
||||
resolve: {
|
||||
modulesDirectories: [__dirname + '/dev/'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue