![]() 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/ |
'use strict'; module.exports = function(gulp, plugins, config, name, file) { // eslint-disable-line func-names const theme = config.themes[name], srcBase = config.projectPath + 'var/view_preprocessed/frontools' + theme.dest.replace('pub/static', ''), sassLintConfig = require('../helper/config-loader')('sass-lint.yml', plugins, config); return gulp.src(file || plugins.globby.sync(srcBase + '/**/*.scss')) .pipe(plugins.if( !plugins.util.env.ci, plugins.plumber({ errorHandler: plugins.notify.onError('Error: <%= error.message %>') }) )) .pipe(plugins.sassLint(sassLintConfig)) .pipe(plugins.sassLint.format()) .pipe(plugins.if(plugins.util.env.ci, plugins.sassLint.failOnError())) .pipe(plugins.logger({ display : 'name', beforeEach: 'Theme: ' + name + ' ' + 'File: ', afterEach : ' - SASS Lint finished.' })); };