| Server IP : 66.85.128.68 / Your IP : 216.73.217.122 Web Server : Apache System : Linux isis.cmaginet.com 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 22 07:12:43 EST 2026 x86_64 User : zonaacti ( 1105) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/zonaacti/public_html/wp-content/themes/zona-activa/ |
Upload File : |
const gulp = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync').create();
const vsftp = require('gulp-vsftp');
const project = 'zona-activa';
const url = 'zona-activa.com';
const user = 'zonaacti';
const password = 'SAv9T4op9]0e-O';
const pathTheme = 'public_html/wp-content/themes/' + project;
function ftp() {
return gulp.src(['*.css', '**/static/css/*.css'])
.pipe(vsftp({
host: 'ftp.' + url,
port: 22,
user: user,
pass: password,
cleanFiles: false,
remotePath: pathTheme,
ignoreCleanPath: 'static/font',
timeout: 60000 // /home/zip will not be cleared
}))
.pipe(browserSync.stream());
}
function ftpStatic() {
return gulp.src(['**/static/font/*.*', '**/woocommerce/**/*.php', '**/static/img/*.*'])
.pipe(vsftp({
host: 'ftp.' + url,
port: 22,
user: user,
pass: password,
cleanFiles: true,
remotePath: pathTheme,
ignoreCleanPath: 'static/font',
timeout: 60000 // /home/zip will not be cleared
}))
.pipe(browserSync.stream());
}
function style() {
return gulp.src('static/sass/theme.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('static/css'))
.pipe(browserSync.stream());
}
function watch() {
//browserSync.init({
// proxy: 'www.' + url,
// notify: false
//});
gulp.watch('static/sass/**/*.scss', gulp.series('style', 'ftp'));
gulp.watch('**/**/*.php', ftp);
gulp.watch('static/js/**/*.js', ftp);
}
exports.style = style;
exports.ftp = ftp;
exports.ftpStatic = ftpStatic;
exports.default = watch;