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ceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/servingjs@3.1.2/gulpfile.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const exec = require(\"child_process\").exec;\nconst gulp = require(\"gulp\");\nconst {\n    bundles, modules\n} = require(\"./gulpfile.json\");\nfor (const bundle in bundles) {\n    const tasks = bundles[bundle];\n    for (const task_name in tasks) {\n        try {\n            const task = tasks[task_name];\n            gulp.task(task_name, () => {\n                const gulp_watch = require(\"gulp-watch\");\n                let pipe_part;\n                if (task.watch) {\n                    pipe_part = gulp_watch(task.src, modules[\"gulp-watch\"]);\n                } else {\n                    pipe_part = gulp.src(task.src);\n                }\n                for (const part of task.chain) {\n                    const module_name = typeof part == \"string\" ? part : part.module;\n                    let pipe_function = require(module_name);\n                    if (typeof pipe_function != \"function\") {\n                        pipe_function = pipe_function.default;\n                    }\n                    const settings = Object.assign({}, part.settings, modules[module_name]);\n                    pipe_part = pipe_part.pipe(pipe_function(settings));\n                    pipe_part.on(\"error\", error => console.error(error.toString()));\n                }\n                if (task.dest !== undefined) {\n                    pipe_part = pipe_part.pipe(gulp.dest(task.dest));\n                }\n                return pipe_part;\n            });\n        } catch (e) {\n            console.error(e);\n        }\n    }\n    gulp.task(bundle, gulp.parallel(Object.getOwnPropertyNames(tasks)));\n    gulp.task(\"init-\" + bundle, () => new Promise((resolve, reject) => {\n        exec(\"npm install --save-dev gulp-watch \" + Object.getOwnPropertyNames(modules).join(\" \"), error => {\n            (error ? reject : resolve)();\n        });\n    }));\n}\n{\n    const bundle_array = Object.getOwnPropertyNames(bundles);\n    gulp.task(\"default\", gulp.parallel(bundle_array));\n    gulp.task(\"init\", gulp.series(bundle_array.map(bundle => \"init-\" + bundle)));\n}"]}