Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 95dc950

Browse files
authored
Fix/gulpfile: Automatically generate the dark mode patched skin when running gulp build (#603)
* Fix: Tests dj4 compatible * Fix: Automatically patch moono_lisa skin for darkmode on gulp build and gulp bundle
1 parent 50944a8 commit 95dc950

File tree

11 files changed

+30
-13
lines changed

11 files changed

+30
-13
lines changed

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/dialog.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/dialog_ie.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/dialog_ie8.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/dialog_iequirks.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/editor.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/editor_gecko.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/editor_ie.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/editor_ie8.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_text_ckeditor/static/djangocms_text_ckeditor/ckeditor/skins/moono-lisa/editor_iequirks.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const del = require('del');
1616
const integrationTests = require('djangocms-casper-helpers/gulp');
1717
const path = require('path');
1818
const child_process = require('child_process');
19+
const execSync = child_process.execSync;
1920
const browserSync = require('browser-sync').create();
2021

2122

@@ -93,6 +94,7 @@ gulp.task('bundle', function (done) {
9394
runSequence('bundle:cleanup:before', 'bundle:js', 'bundle:template', 'bundle:cleanup', done);
9495
});
9596

97+
9698
// gulp.task('bundle:cleanup:before', function () {
9799
const bundleCleanUpBefore = () => {
98100
return (
@@ -149,6 +151,10 @@ const bundleTemplate = () => {
149151
);
150152
};
151153

154+
const patchForDarkmode = async function(){
155+
console.log( execSync('cd private && python3 ./patch_moono_lisa.py').toString());
156+
};
157+
152158

153159
const bundleCleanup = () => {
154160
return (
@@ -168,5 +174,6 @@ gulp.task('ci', lint);
168174

169175
gulp.task("lint", lint);
170176
gulp.task("watch", watchFiles);
171-
gulp.task("bundle", gulp.series(bundleCleanUpBefore, bundleJS, bundleTemplate, bundleCleanup))
172-
gulp.task("build", gulp.series(bundleCleanUpBefore, bundleJS, bundleTemplate, bundleCleanup))
177+
gulp.task("darkmode", patchForDarkmode);
178+
gulp.task("bundle", gulp.series(bundleCleanUpBefore, bundleJS, bundleTemplate, patchForDarkmode, bundleCleanup))
179+
gulp.task("build", gulp.series(bundleCleanUpBefore, bundleJS, bundleTemplate, patchForDarkmode, bundleCleanup))

0 commit comments

Comments
 (0)