403Webshell
Server IP : 185.143.233.238  /  Your IP : 185.215.232.195
Web Server : LiteSpeed
System : Linux saman.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : behrakir ( 1361)
PHP Version : 8.1.34
Disable Function : symlink,shell_exec,show_source,exec,popen,system,passthru,proc_open,proc_close,pcntl_exec,mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/behrakir/khanomam.com/wp-content/plugins/woocommerce-advanced-shipping/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/behrakir/khanomam.com/wp-content/plugins/woocommerce-advanced-shipping/gulpfiles.js
'use strict';

const files = {
	sass: {
		src: ['./assets/**/css/*.scss'],
		watch: ['./assets/**/css/*.scss'],
	},
	js: {
		src: ['assets/**/js/*.js', '!assets/**/js/*.min.js'],
		watch: ['assets/**/js/*.js', '!assets/**/js/*.min.js'],
	},
	php: {
		watch: ['./*.php', './**/*.php', './**/**/*.php'],
	}
}

const gulp = require('gulp');
const sass = require('gulp-sass');
const uglify = require('gulp-uglify');
const rename = require("gulp-rename");
const sourcemaps = require('gulp-sourcemaps');
const babel = require('gulp-babel');
const browserSync = require('browser-sync');
const reload = browserSync.reload;

// CSS
gulp.task('sass', function () {
	return gulp.src(files.sass.src)
		// .pipe(sourcemaps.init())
		.pipe(sass({errLogToConsole: true, outputStyle: 'compressed'}))
		.pipe(rename({suffix: '.min'}))
		// .pipe(sourcemaps.write('./'))
		.pipe(gulp.dest('./assets'))
		.pipe(browserSync.stream())
});

// JS
gulp.task('js', function () {
	return gulp.src(files.js.src)
		.pipe(babel({
			presets: ['@babel/env']
		}))
		.pipe(uglify())
		.pipe(rename({suffix: '.min'}))
		.pipe(gulp.dest('./assets/'))
		.pipe(browserSync.stream())
});

// BrowserSync
gulp.task('browserSync', function () {
	browserSync({
		open: 'external',
		host: 'wp.x',
		proxy: {
			target: 'https://wp.x/wp-core/wp-admin/admin.php?page=wc-settings&tab=shipping&section=legacy_advanced_shipping'
		},
		https: {
			key: '/Users/jeroensormani/.config/valet/Certificates/wp.x.key',
			cert: '/Users/jeroensormani/.config/valet/Certificates/wp.x.crt',
		},
		// reloadDelay: 10
	});
});


gulp.task('watch:sass', function () {
	gulp.watch(files.sass.watch, gulp.series('sass'));
});
gulp.task('watch:js', function () {
	gulp.watch(files.js.watch, gulp.series('js'));
});
gulp.task('watch:php', function () {
	gulp.watch(files.php.watch).on('change', reload);
});

gulp.task('watch', gulp.parallel('sass', 'js', 'browserSync', 'watch:sass', 'watch:js', 'watch:php'));

Youez - 2016 - github.com/yon3zu
LinuXploit