{"version":3,"sources":["jsdelivr-header.js","/npm/@wpdevops/elixir-coffeescript@1.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAII,OAJA,KAAO,QAAQ,QACf,OAAS,QAAQ,oBAEjB,OAAS,OAAO,OAchB,SAAW,SAAU,EAAO,GAG5B,OAFA,KAAK,WAAW,0BAGZ,KACC,IAAI,EAAM,IAAI,MACd,KAAK,KAAK,kBACV,KAAK,OAAO,GAAW,OAAO,GAAG,OAAO,UACxC,GAAG,QAAS,KAAK,WACjB,KAAK,KAAK,UACV,KAAK,KAAK,UACV,KAAK,KAAK,mBACV,KAAK,KAAK,OAAO,OACjB,KAAK,IAAI,OAAO,aAAa,0BAEtC,EAGA,OAAO,OAAO,UAAU,SAAS,EAAK,EAAQ,GAC1C,IAAI,EAEJ,OAAS,QAAQ,eAEjB,OAAO,GAAG,OAAS,CACf,OAAU,SAEV,QAAS,CAAC,GAGd,IAAI,OAAO,KAAK,UAAU,WACtB,OAAO,SAAS,KAAK,KAAM,EAAO,EACtC,GAAG,EAAQ,cAAc,EAAK,IAC7B,MAAM,EAAM,IAAI,MAChB,OAAO,EAAM,OAAO,KACzB,IAUA,IAAI,cAAgB,SAAS,EAAK,GAC9B,OAAO,IAAI,OAAO,WACb,IAAI,EAAK,OAAO,IAAI,4BACpB,OAAO,GAAU,OAAO,IAAI,wBAAyB,SAC9D","file":"/npm/@wpdevops/elixir-coffeescript@1.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wpdevops/elixir-coffeescript@1.1.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var gulp = require('gulp');\r\nvar Elixir = require('@wpdevops/elixir');\r\n\r\nvar config = Elixir.config;\r\nvar coffee;\r\n\r\n/*\r\n |----------------------------------------------------------------\r\n | CoffeeScript Compilation\r\n |----------------------------------------------------------------\r\n |\r\n | This task will compile your CoffeeScript, minify it, and then\r\n | optionally generate a \"manifest\" file that helps with your\r\n | browser cache-busting of previous versions of your code.\r\n |\r\n */\r\n\r\nvar gulpTask = function (paths, options) {\r\n    this.recordStep('Compiling CoffeeScript');\r\n\r\n    return (\r\n        gulp\r\n        .src(paths.src.path)\r\n        .pipe(this.initSourceMaps())\r\n        .pipe(coffee(options || config.js.coffee.options))\r\n        .on('error', this.onError())\r\n        .pipe(this.concat())\r\n        .pipe(this.minify())\r\n        .pipe(this.writeSourceMaps())\r\n        .pipe(this.saveAs(gulp))\r\n        .pipe(new Elixir.Notification('CoffeeScript Compiled!'))\r\n    );\r\n};\r\n\r\n\r\nElixir.extend('coffee', function(src, output, options) {\r\n    var paths;\r\n\r\n    coffee = require('gulp-coffee');\r\n\r\n    config.js.coffee = {\r\n        'folder': 'coffee',\r\n        // https://github.com/wearefractal/gulp-coffee#options\r\n        options: {}\r\n    };\r\n\r\n    new Elixir.Task('coffee', function() {\r\n        return gulpTask.call(this, paths, options);\r\n    }, paths = prepGulpPaths(src, output))\r\n    .watch(paths.src.path)\r\n    .ignore(paths.output.path);\r\n});\r\n\r\n\r\n/**\r\n * Prep the Gulp src and output paths.\r\n *\r\n * @param  {string|Array} src\r\n * @param  {string|null}  output\r\n * @return {Elixir.GulpPaths}\r\n */\r\nvar prepGulpPaths = function(src, output) {\r\n    return new Elixir.GulpPaths()\r\n        .src(src, config.get('assets.js.coffee.folder'))\r\n        .output(output || config.get('dist.js.outputFolder'), 'app.js');\r\n};\r\n"]}