mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 12:48:08 +09:00
* add CKEditor5 and gulp-clean * add gulp task for ckeditor * add Wysiwyg build task * run build (replaces CKEditor4 with CKEditor5) * use CKEditor5 on DOMContentLoaded event * move `gulp-clean` to devDep * set gulp to build Wysiwyg (CKEditor for now) asset on artifact build * add missing translations dir content * remove @ckeditor/ckeditor5-build-classic and gulp-clean * add packages to build ckeditor * set CKEditor plugins and toolbar * use new custom export of CKEditor * add webpack config * add Wysiwyg specific config * build ckeditor using webpack * remove wysiwyg package-lock.json * add Wysiwyg workspace * update lock file * Multiple editor support and handling content properly * Safety checks * Set height to 300px * fix table MD output * add CKEditor image plugin * replace `imageupload` with `imageinsert` and add `autoimage` * set only image insert via URL * fix unavailable items * add image styling * fix cs * fix image widget-toolbar-no-items console warning * move insertimage button to imagestyle group * set min npm version * set height to min-height to allow auto-grow * set `reportValidity` for textarea with required attributes * fix `required` attribute content check before API request * Update fossbilling.js * Merge conflict --------- Co-authored-by: Yağızhan <hi@yagiz.dev> Co-authored-by: Yağızhan <yagizhan49@protonmail.com> Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
import gulp from 'gulp';
|
|
import chug from 'gulp-chug';
|
|
import yargs from 'yargs';
|
|
|
|
const { argv } = yargs
|
|
.options({
|
|
nodeModulesPath: {
|
|
'description': '<path> path to node_modules directory',
|
|
type: 'string',
|
|
requiresArgs: true,
|
|
required: false,
|
|
}
|
|
});
|
|
|
|
const config = [
|
|
'--node-modules-path',
|
|
argv.nodeModulesPath || '../../../node_modules',
|
|
];
|
|
|
|
export const buildThemeAdmin = function buildThemeAdmin() {
|
|
return gulp.src('src/themes/admin_default/gulpfile.babel.js', { read: false })
|
|
.pipe(chug({ args: config, tasks: 'build' }));
|
|
}
|
|
buildThemeAdmin.description = 'Build theme Admin assets.';
|
|
|
|
export const buildWysiwyg = function buildWysiwyg() {
|
|
return gulp.src('src/modules/Wysiwyg/gulpfile.babel.js', { read: false })
|
|
.pipe(chug({ args: config, tasks: 'build' }));
|
|
}
|
|
buildWysiwyg.description = 'Build Wysiwyg assets.';
|
|
|
|
export const build = gulp.parallel(buildThemeAdmin, buildWysiwyg);
|
|
build.description = 'Build assets.';
|
|
|
|
gulp.task('admin_default', buildThemeAdmin);
|
|
gulp.task('wysiwyg', buildWysiwyg);
|
|
|
|
export default build;
|