| Server IP : 5.83.47.51 / Your IP : 216.73.217.19 Web Server : Apache System : Linux hosting.nxthost.com 5.14.0-687.44.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 9 11:11:28 EDT 2026 x86_64 User : esteemro ( 1261) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/esteemro/public_html/wp-content/plugins/jet-tricks/ |
Upload File : |
'use strict';
let gulp = require('gulp'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
autoprefixer = require('gulp-autoprefixer'),
sass = require('gulp-sass'),
plumber = require('gulp-plumber'),
checktextdomain = require('gulp-checktextdomain');
//frontend
gulp.task('jet-tricks-frontend', () => {
return gulp.src('./assets/scss/jet-tricks-frontend.scss')
.pipe(
plumber( {
errorHandler: function ( error ) {
console.log('=================ERROR=================');
console.log(error.message);
this.emit( 'end' );
}
})
)
.pipe(sass( { outputStyle: 'compressed' } ))
.pipe(autoprefixer({
browsers: ['last 10 versions'],
cascade: false
}))
.pipe(rename('jet-tricks-frontend.css'))
.pipe(gulp.dest('./assets/css/'))
.pipe(notify('Compile Sass Done!'));
});
gulp.task('jet-tricks-editor', () => {
return gulp.src('./assets/scss/jet-tricks-editor.scss')
.pipe(
plumber( {
errorHandler: function ( error ) {
console.log('=================ERROR=================');
console.log(error.message);
this.emit( 'end' );
}
})
)
.pipe(sass( { outputStyle: 'compressed' } ))
.pipe(autoprefixer({
browsers: ['last 10 versions'],
cascade: false
}))
.pipe(rename('jet-tricks-editor.css'))
.pipe(gulp.dest('./assets/css/'))
.pipe(notify('Compile Sass Done!'));
});
//watch
gulp.task('watch', () => {
gulp.watch('./assets/scss/**', ['jet-tricks-frontend']);
gulp.watch('./assets/scss/**', ['jet-tricks-editor']);
});
gulp.task( 'checktextdomain', () => {
return gulp.src( ['**/*.php', '!cherry-framework/**/*.php'] )
.pipe( checktextdomain( {
text_domain: 'jet-tricks',
keywords: [
'__:1,2d',
'_e:1,2d',
'_x:1,2c,3d',
'esc_html__:1,2d',
'esc_html_e:1,2d',
'esc_html_x:1,2c,3d',
'esc_attr__:1,2d',
'esc_attr_e:1,2d',
'esc_attr_x:1,2c,3d',
'_ex:1,2c,3d',
'_n:1,2,4d',
'_nx:1,2,4c,5d',
'_n_noop:1,2,3d',
'_nx_noop:1,2,3c,4d',
'translate_nooped_plural:1,2c,3d'
]
} ) );
} );