From d956ea5d3c1cbde47a6ae7b1f7cfc3827000b63c Mon Sep 17 00:00:00 2001 From: Daniel <50356015+danny007in@users.noreply.github.com> Date: Mon, 6 Feb 2023 21:19:09 +0530 Subject: [PATCH] Update gulpfile.js --- gulpfile.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 62b89fc17..82b7b6219 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -87,6 +87,13 @@ const scss = () => src(paths.src.scss + '/adminlte.scss', { sourcemaps: true }) .pipe(dest(paths.temp.css, { sourcemaps: '.' })) .pipe(browserSync.stream()) +// Compile SCSS RTL +const scssRtl = () => src(paths.temp.css + '/adminlte.css', { sourcemaps: true }) + .pipe(postcss(postcssRtlOptions)) + .pipe(rename({ suffix: '.rtl' })) + .pipe(dest(paths.temp.css, { sourcemaps: '.' })) + .pipe(browserSync.stream()) + // Lint TS function isFixed(file) { // Has ESLint fixed the file contents? @@ -153,9 +160,7 @@ const serve = () => { notify: true }) - watch([paths.src.scss], series(lintScss)) - watch([paths.src.scss + '/**/*.scss', '!' + paths.src.scss + '/bootstrap-dark/**/*.scss', '!' + paths.src.scss + '/dark/**/*.scss'], series(scss)) - watch([paths.src.scss + '/bootstrap-dark/', paths.src.scss + '/dark/']) + watch([paths.src.scss + '/**/*.scss'], series(lintScss, scss, scssRtl)) watch([paths.src.ts], series(lintTs, tsCompile)) watch([paths.src.html, paths.src.base + '*.html', paths.src.partials], series(html, index, lintHtml)) watch([paths.src.assets], series(assets))