Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/node_modules/izitoast/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/node_modules/izitoast/gulpfile.js
var gulp        = require( 'gulp' );
var concat      = require( 'gulp-concat' );
var stylus      = require('gulp-stylus');
var size        = require( 'gulp-size' );
var jshint      = require( 'gulp-jshint' );
var notify      = require( 'gulp-notify' );
var uglify      = require( 'gulp-uglify' );
var csso        = require( 'gulp-csso' );

var catchError = function(err) {
    console.log(err.toString())
    this.emit('end')
}

/**
* Styl task
**/
gulp.task('styl', function () {
    return gulp.src('./src/css/style.styl')
        .pipe(stylus())
        .on('error', catchError)
        .pipe( concat( 'iziToast.css' ) )
        .pipe( gulp.dest( './dist/css' ) )
        .pipe( concat( 'iziToast.min.css' ) )
        .pipe( csso({discardComments: false}) )
        .pipe( gulp.dest( './dist/css' ) )
        .pipe( notify( 'Stylus build done successfully!' ) )
        .pipe( size({ showFiles: true }) );
});

/**
* Scripts task
**/
gulp.task( 'scripts', function() {
    return gulp.src( './src/js/iziToast.js' )
        .pipe( jshint() )
        .pipe( jshint.reporter('default') )
        .pipe( concat( 'iziToast.min.js' ) )
        .pipe( uglify( { mangle: true } ) )
        .pipe( gulp.dest( './dist/js' ) )
        .pipe( notify( 'Scripts build done successfully!' ) )
        .pipe( size({ showFiles: true }) );
});

/**
* Watch task
**/
gulp.task('watch', ['styl','scripts'], function() {
    gulp.watch('./src/css/**/*.styl', [ 'styl' ])    // watch for changes and run the css task
    gulp.watch('./src/js/**/*.js', [ 'scripts' ])    // watch for changes and run the js task
})

/**
* Default task
**/
gulp.task( 'default', [ 'styl', 'scripts' ] );

Spamworldpro Mini