<commit_before>fs      = require 'fs'
gulp    = require 'gulp'
shell   = require 'gulp-shell'

module.exports = (version) ->

  folders  = (folder for folder in fs.readdirSync('./') when fs.statSync(folder).isDirectory())
  sites    = folders.filter (folder) -> folder.search(/^site\./) is 0 and folder isnt 'site.boilerplate'
  commands = ("gulp --gulpfile ./#{siteDir}/gulpfile.coffee build --uglify" for siteDir in sites)

  gulp.src ''
    .pipe shell commands<commit_msg>Check existence of gulpfile in landing site directory<commit_after>fs      = require 'fs'
gulp    = require 'gulp'
shell   = require 'gulp-shell'

module.exports = (version) ->

  folders  = (folder for folder in fs.readdirSync('./') when fs.statSync(folder).isDirectory())
  sites    = folders.filter (folder) ->
    siteDir = folder.search(/^site\./) is 0 and folder isnt 'site.boilerplate'
    return no  unless siteDir
    try
      fs.statSync "#{folder}/gulpfile.coffee"
      return yes
    return no
  commands = ("gulp --gulpfile ./#{siteDir}/gulpfile.coffee build --uglify" for siteDir in sites)

  gulp.src ''
    .pipe shell commands
{'fraction_non_alphanumeric': 0.13648528099910795, 'fraction_numerical': 0.001784121320249777, 'mean_word_length': 3.202247191011236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2358932', 'n_tokens_mistral': 376, 'n_tokens_neox': 364, 'n_words': 104}