mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Add prettier
This commit is contained in:
parent
08da3030b0
commit
450528ff00
61 changed files with 516 additions and 1456 deletions
|
|
@ -1,17 +1,15 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
||||
const gulp = require('gulp'),
|
||||
header = require('gulp-header'),
|
||||
stripbom = require('gulp-stripbom');
|
||||
const gulp = require('gulp');
|
||||
const header = require('gulp-header');
|
||||
const stripbom = require('gulp-stripbom');
|
||||
|
||||
const {config} = require('./config');
|
||||
const {del} = require('./common');
|
||||
const { config } = require('./config');
|
||||
const { del } = require('./common');
|
||||
|
||||
// moment
|
||||
const momentLocalesClear = () => del('rainloop/v/' + config.devVersion + '/app/localization/moment/*.js');
|
||||
|
||||
const momentLocales = () =>
|
||||
gulp.src(config.paths.js.moment.locales)
|
||||
.pipe(gulp.dest(config.paths.momentLocales));
|
||||
const momentLocales = () => gulp.src(config.paths.js.moment.locales).pipe(gulp.dest(config.paths.momentLocales));
|
||||
|
||||
const moment = gulp.series(momentLocalesClear, momentLocales);
|
||||
|
||||
|
|
@ -19,7 +17,8 @@ const moment = gulp.series(momentLocalesClear, momentLocales);
|
|||
const lightgalleryFontsClear = () => del('rainloop/v/' + config.devVersion + '/static/css/fonts/lg.*');
|
||||
|
||||
const lightgalleryFontsCopy = () =>
|
||||
gulp.src('vendors/lightgallery/dist/fonts/lg.*')
|
||||
gulp
|
||||
.src('vendors/lightgallery/dist/fonts/lg.*')
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/css/fonts'));
|
||||
|
||||
const lightgallery = gulp.series(lightgalleryFontsClear, lightgalleryFontsCopy);
|
||||
|
|
@ -28,7 +27,8 @@ const lightgallery = gulp.series(lightgalleryFontsClear, lightgalleryFontsCopy);
|
|||
const fontasticFontsClear = () => del('rainloop/v/' + config.devVersion + '/static/css/fonts/rainloop.*');
|
||||
|
||||
const fontasticFontsCopy = () =>
|
||||
gulp.src('vendors/fontastic/fonts/rainloop.*')
|
||||
gulp
|
||||
.src('vendors/fontastic/fonts/rainloop.*')
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/css/fonts'));
|
||||
|
||||
const fontastic = gulp.series(fontasticFontsClear, fontasticFontsCopy);
|
||||
|
|
@ -37,18 +37,26 @@ const fontastic = gulp.series(fontasticFontsClear, fontasticFontsCopy);
|
|||
const ckeditorClear = () => del('rainloop/v/' + config.devVersion + '/static/ckeditor');
|
||||
|
||||
const ckeditorCopy = () =>
|
||||
gulp.src(['vendors/ckeditor/**/*', '!vendors/ckeditor/samples{,/**}', '!vendors/ckeditor/adapters{,/**}', '!vendors/ckeditor/*.md'])
|
||||
gulp
|
||||
.src([
|
||||
'vendors/ckeditor/**/*',
|
||||
'!vendors/ckeditor/samples{,/**}',
|
||||
'!vendors/ckeditor/adapters{,/**}',
|
||||
'!vendors/ckeditor/*.md'
|
||||
])
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/ckeditor'));
|
||||
|
||||
const ckeditorCopyPlugins = () =>
|
||||
gulp.src('vendors/ckeditor-plugins/**/*')
|
||||
gulp
|
||||
.src('vendors/ckeditor-plugins/**/*')
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/ckeditor/plugins'));
|
||||
|
||||
const ckeditorSetup = () =>
|
||||
gulp.src('rainloop/v/' + config.devVersion + '/static/ckeditor/*.js')
|
||||
gulp
|
||||
.src('rainloop/v/' + config.devVersion + '/static/ckeditor/*.js')
|
||||
.pipe(stripbom())
|
||||
// eslint-disable-next-line quotes
|
||||
.pipe(header("\uFEFF")) // BOM
|
||||
.pipe(header('\uFEFF')) // BOM
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/ckeditor'));
|
||||
|
||||
const ckeditor = gulp.series(ckeditorClear, ckeditorCopy, ckeditorCopyPlugins, ckeditorSetup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue