<commit_before>import gulp from 'gulp'
import Preset from './src/preset'
import Clean from './src/clean'
import EsLint from './src/eslint'
import RollupEs from './src/rollupEs'
import RollupAmd from './src/rollupAmd'
import RollupCjs from './src/rollupCjs'
import RollupUmd from './src/rollupUmd'
//import RollupIife from './src/rollupIife'
import TaskSeries from './src/taskSeries'


// Let's eat our own dogfood and use our own recipes to generate our dist packages
let preset = Preset.nodeSrc()


// NOTE: it's overkill to generate all of these, but what the hell, it's a fair example.

// instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. rollup:es and rollup:es:watch)
let recipes = [
  new Clean(gulp, preset),
  new EsLint(gulp, preset),
  [
    new RollupEs(gulp, preset, {options: {dest: 'gulp-pipeline.es.js'}}),
    new RollupAmd(gulp, preset, {options: {dest: 'gulp-pipeline.amd.js'}}),
    new RollupCjs(gulp, preset, {options: {dest: 'gulp-pipeline.cjs.js'}}),
    new RollupUmd(gulp, preset, {options: {dest: 'gulp-pipeline.umd.js', moduleName: 'gulpPipeline'}})//,
    //new RollupIife(gulp, preset, {options: {dest: 'gulp-pipeline.iife.js', moduleName: 'gulpPipeline'}})
  ]
]


// Simple helper to create the `default` and `default:watch` tasks as a sequence of the recipes already defined
new TaskSeries(gulp, 'default', recipes)




// sample
//import Images from './src/images'
//import Sass from './src/sass'
//import ScssLint from './src/scssLint'
//import CleanDigest from './src/cleanDigest'
//import Rev from './src/rev'
//import MinifyCss from './src/minifyCss'
//
//
//// Utilize one of the common configs
//let preset = Preset.rails() // other pre-configured presets: nodeSrc, nodeLib - see preset.js and submit PRs with other common configs
//
//// Instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. sass and sass:watch)
////  Note: these are run by the run-sequence, allowing series and parallel execution
//let recipes = [<commit_msg>our dist files should not bundle dependencies<commit_after>import gulp from 'gulp'
import Preset from './src/preset'
import Clean from './src/clean'
import EsLint from './src/eslint'
import RollupEs from './src/rollupEs'
import RollupAmd from './src/rollupAmd'
import RollupCjs from './src/rollupCjs'
import RollupUmd from './src/rollupUmd'
import RollupIife from './src/rollupIife'
import TaskSeries from './src/taskSeries'
import extend from 'extend'



// Let's eat our own dogfood and use our own recipes to generate our dist packages
let preset = Preset.nodeSrc()

// don't bundle our dependencies
let jsOverrides = {debug: false, nodeResolve: {enabled: false}, commonjs: {enabled: false}}

// NOTE: it's overkill to generate all of these, but what the hell, it's a fair example.

// instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. rollup:es and rollup:es:watch)
let recipes = [
  new Clean(gulp, preset),
  new EsLint(gulp, preset),
  [
    new RollupEs(gulp, preset, extend(true, {options: {dest: 'gulp-pipeline.es.js'}}, jsOverrides)),
    new RollupAmd(gulp, preset, extend(true, {options: {dest: 'gulp-pipeline.amd.js'}}, jsOverrides)),
    new RollupCjs(gulp, preset, extend(true, {options: {dest: 'gulp-pipeline.cjs.js'}}, jsOverrides)),
    new RollupUmd(gulp, preset, extend(true, {options: {dest: 'gulp-pipeline.umd.js', moduleName: 'gulpPipeline'}}, jsOverrides)),
    new RollupIife(gulp, preset, extend(true, {options: {dest: 'gulp-pipeline.iife.js', moduleName: 'gulpPipeline'}}, jsOverrides)),
  ]
]


// Simple helper to create the `default` and `default:watch` tasks as a sequence of the recipes already defined
new TaskSeries(gulp, 'default', recipes)


// sample
//import Images from './src/images'
//import Sass from './src/sass'
//import ScssLint from './src/scssLint'
//import CleanDigest from './src/cleanDigest'
//import Rev from './src/rev'
//import MinifyCss from './src/minifyCss'
//
//
//// Utilize one of the common configs
//let preset = Preset.rails() // other pre-configured presets: nodeSrc, nodeLib - see preset.js and submit PRs with other common configs
//
//// Instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. sass and sass:watch)
////  Note: these are run by the run-sequence, allowing series and parallel execution
//let recipes = [
{'fraction_non_alphanumeric': 0.1346328195829556, 'fraction_numerical': 0.0, 'mean_word_length': 4.095842956120093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5128574', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1443, 'n_words': 500}