<commit_before>import browserSync from 'browser-sync';
import del from 'del';
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import runSequence from 'run-sequence';
import scsslint from 'gulp-scss-lint';

const $ = gulpLoadPlugins();

gulp.task('lint', () => {
  return gulp.src([
      './ciku-forms.scss',
      './settings/**/*.scss',
      './mixins/**/*.scss',
      './functions/**/*.scss',
      './elements/**/*.scss',
      './test/**/*.scss'
    ])
    .pipe(scsslint({
      'bundleExec': true
    }));
});

gulp.task('clean', () => {
  del.sync([
      '.tmp'
    ]);
});

gulp.task('sass', () => {
  return gulp.src('./test/test.scss')
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.sass.sync({
      outputStyle: 'expanded',
      precision: 10,
      includePaths: ['.']
    }).on('error', $.sass.logError))
    .pipe($.autoprefixer({browsers: ['last 2 version']}))
    .pipe($.sourcemaps.write())
    .pipe(gulp.dest('.tmp/'))
    .pipe(browserSync.reload({stream: true}));
});

gulp.task('preBuild', (cb) => {
  return runSequence(
    'clean',
    ['sass', 'lint'],
    cb
  );
});

gulp.task('test', ['preBuild'], () => {
  browserSync({
    server: {
      baseDir: ['.tmp', 'test']
    }
  });

  gulp.watch([
      './ciku-forms.scss',
      './settings/**/*.scss',
      './mixins/**/*.scss',
      './functions/**/*.scss',
      './elements/**/*.scss',
      './test/**/*.scss'
    ], ['sass', 'lint']);

  gulp.watch([
    'test/**/*',
    '.tmp/**/*'
  ]).on('change', browserSync.reload);
});

gulp.task('default', () => {
  console.log('Run \`gulp test\` to test');
});<commit_msg>Fix: main scss file change is not watched gulp<commit_after>import browserSync from 'browser-sync';
import del from 'del';
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import runSequence from 'run-sequence';
import scsslint from 'gulp-scss-lint';

const $ = gulpLoadPlugins();

gulp.task('lint', () => {
  return gulp.src([
      './_ciku-forms.scss',
      './settings/**/*.scss',
      './mixins/**/*.scss',
      './functions/**/*.scss',
      './elements/**/*.scss',
      './test/**/*.scss'
    ])
    .pipe(scsslint({
      'bundleExec': true
    }));
});

gulp.task('clean', () => {
  del.sync([
      '.tmp'
    ]);
});

gulp.task('sass', () => {
  return gulp.src('./test/test.scss')
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.sass.sync({
      outputStyle: 'expanded',
      precision: 10,
      includePaths: ['.']
    }).on('error', $.sass.logError))
    .pipe($.autoprefixer({browsers: ['last 2 version']}))
    .pipe($.sourcemaps.write())
    .pipe(gulp.dest('.tmp/'))
    .pipe(browserSync.reload({stream: true}));
});

gulp.task('preBuild', (cb) => {
  return runSequence(
    'clean',
    ['sass', 'lint'],
    cb
  );
});

gulp.task('test', ['preBuild'], () => {
  browserSync({
    server: {
      baseDir: ['.tmp', 'test']
    }
  });

  gulp.watch([
      './_ciku-forms.scss',
      './settings/**/*.scss',
      './mixins/**/*.scss',
      './functions/**/*.scss',
      './elements/**/*.scss',
      './test/**/*.scss'
    ], ['sass', 'lint']);

  gulp.watch([
    'test/**/*',
    '.tmp/**/*'
  ]).on('change', browserSync.reload);
});

gulp.task('default', () => {
  console.log('Run \`gulp test\` to test');
});
{'fraction_non_alphanumeric': 0.26517189835575483, 'fraction_numerical': 0.0017937219730941704, 'mean_word_length': 2.5709711846318037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7415186', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1257, 'n_words': 202}