MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/public_html/imenso.co/dev/samples-gh-pages/gulpfile.babel.js
'use strict';

import gulp from 'gulp';
import eslint from 'gulp-eslint';
import zip from 'gulp-zip';
import gulpStylelint from 'gulp-stylelint';
import nightwatch from 'gulp-nightwatch';

gulp.task('zip', function() {
  return gulp.src('src/content/extensions/desktopcapture/extension/**')
    .pipe(zip('desktopCaptureExtension.zip'))
    .pipe(gulp.dest('release'));
});

gulp.task('eslint', function() {
  return gulp.src(['src/content/**/*.js', 'test/*.js', '!**/third_party/*.js'])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});


gulp.task('stylelint', function() {
  return gulp.src('src/**/*.css')
    .pipe(gulpStylelint({
      reporters: [
        {formatter: 'string', console: true}
      ]
    }));
});

gulp.task('nightwatch', function() {
  const browser = process.env.BROWSER || 'chrome';
  return gulp.src('gulpfile.babel.js')
    .pipe(nightwatch({
      configFile: 'nightwatch.conf.js',
      cliArgs: [`--env ${browser}`]
    }));
});


gulp.task('default', gulp.series('eslint', 'stylelint', 'nightwatch'));;