From e1190ea05e2eb36080bc513512190c895e0cc4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Marohni=C4=87?= Date: Wed, 7 Oct 2020 23:13:00 +0200 Subject: [PATCH] Docs: Remove recipe for exporting tasks This is a core feature, it's not necessary to explain it in a recipe. --- docs/recipes/README.md | 1 - docs/recipes/exports-as-tasks.md | 22 ---------------------- 2 files changed, 23 deletions(-) delete mode 100644 docs/recipes/exports-as-tasks.md diff --git a/docs/recipes/README.md b/docs/recipes/README.md index 10ca6a120..55dc0f382 100644 --- a/docs/recipes/README.md +++ b/docs/recipes/README.md @@ -21,7 +21,6 @@ * [Output both a minified and non-minified version](minified-and-non-minified.md) * [Templating with Swig and YAML front-matter](templating-with-swig-and-yaml-front-matter.md) * [Run Grunt Tasks from Gulp](run-grunt-tasks-from-gulp.md) -* [Exports as tasks](exports-as-tasks.md) * [Rollup with rollup-stream](rollup-with-rollup-stream.md) * [Run gulp task via cron job](cron-task.md) * [Running shell commands](running-shell-commands.md) diff --git a/docs/recipes/exports-as-tasks.md b/docs/recipes/exports-as-tasks.md deleted file mode 100644 index 2eaea4905..000000000 --- a/docs/recipes/exports-as-tasks.md +++ /dev/null @@ -1,22 +0,0 @@ -# Exports as Tasks - -Using the ES2015 module syntax you can use your exports as tasks. - -```js -import gulp from 'gulp'; -import babel from 'gulp-babel'; - -// named task -export function build() { - return gulp.src('src/*.js') - .pipe(babel()) - .pipe(gulp.dest('lib')); -} - -// default task -export default function dev() { - gulp.watch('src/*.js', ['build']); -} -``` - -This will **not** work with the gulp-cli version bundled with gulp 3.x. You must use the latest published version.