HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptuneprotect/wp-content/plugins/insert-php/admin/assets/gulpfile.js
let gulp = require('gulp'),
	less = require('gulp-less'),
	concat = require('gulp-concat'),
	minify = require('gulp-minify-css'),
	merge = require('merge-stream'),
	uglify = require('gulp-uglify');

// Less files to be concat and minified together
let LESS_PATHS = ['css/general.less', 'css/sync.less'];

// Css files to be concat and minified together with Less (paths above)
let CSS_PATHS = ['css/code-editor.min.css'];

// JS files to be concat and minified together
let JS_PATHS = ['js/code-editor.min.js', 'js/sync.js'];

/**
 * Prepares minification of specified Less and CSS files for CodeMirror specifically.
 *
 * Execution: gulp cm-build-css
 */
gulp.task('cm-build-css', function () {

	// Less
	let lessStream = gulp.src(LESS_PATHS)
	.pipe(less())
	.pipe(concat('less-files.less'));

	// CSS
	let cssStream = gulp.src(CSS_PATHS)
	.pipe(concat('css/code-editor.min.css'));

	return merge(lessStream, cssStream)
	// c - custom, c - code, m - mirror
		.pipe(concat('ccm.min.css'))
		.pipe(minify())
		.pipe(gulp.dest('dist/css'));
});

/**
 * Prepares minification of specified JS files for CodeMirror specifically.
 *
 * Execution: gulp cm-build-js
 */
gulp.task('cm-build-js', function () {
	// Js
	return gulp.src(JS_PATHS)
	.pipe(uglify())
	.pipe(concat('ccm.min.js'))
	.pipe(gulp.dest('dist/js'));
});