mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Moved CKEditor to be plugin
This commit is contained in:
parent
240b0381f9
commit
af3c79ce80
217 changed files with 467 additions and 8683 deletions
|
|
@ -16,37 +16,4 @@ const fontasticFontsCopy = () =>
|
|||
|
||||
const fontastic = gulp.series(fontasticFontsClear, fontasticFontsCopy);
|
||||
|
||||
// squire
|
||||
const squireClear = () => del('snappymail/v/' + config.devVersion + '/static/squire');
|
||||
|
||||
const squire = gulp.series(squireClear);
|
||||
|
||||
// ckeditor
|
||||
const ckeditorClear = () => del('snappymail/v/' + config.devVersion + '/static/ckeditor');
|
||||
|
||||
const ckeditorCopy = () =>
|
||||
gulp
|
||||
.src([
|
||||
'vendors/ckeditor/**/*',
|
||||
'!vendors/ckeditor/samples{,/**}',
|
||||
'!vendors/ckeditor/adapters{,/**}',
|
||||
'!vendors/ckeditor/*.md'
|
||||
])
|
||||
.pipe(gulp.dest('snappymail/v/' + config.devVersion + '/static/ckeditor'));
|
||||
|
||||
const ckeditorCopyPlugins = () =>
|
||||
gulp
|
||||
.src('vendors/ckeditor-plugins/**/*')
|
||||
.pipe(gulp.dest('snappymail/v/' + config.devVersion + '/static/ckeditor/plugins'));
|
||||
|
||||
const ckeditorSetup = () =>
|
||||
gulp
|
||||
.src('snappymail/v/' + config.devVersion + '/static/ckeditor/*.js')
|
||||
.pipe(stripbom())
|
||||
// eslint-disable-next-line quotes
|
||||
.pipe(header('\uFEFF')) // BOM
|
||||
.pipe(gulp.dest('snappymail/v/' + config.devVersion + '/static/ckeditor'));
|
||||
|
||||
const ckeditor = gulp.series(ckeditorClear, ckeditorCopy, ckeditorCopyPlugins, ckeditorSetup);
|
||||
|
||||
exports.vendors = gulp.parallel(squire, ckeditor, fontastic);
|
||||
exports.vendors = gulp.parallel(fontastic);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue