From 147327c4d7b14ba9ee98182cee7d377dc2194d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Marohni=C4=87?= Date: Wed, 7 Oct 2020 23:20:03 +0200 Subject: [PATCH] Docs: Remove recipe for specifying a CWD The `cwd` option is described in the docs for `gulp.src`, and `--cwd` can be found when running `gulp --help`. Having this as a recipe seems unnecessary. --- docs/recipes/README.md | 1 - docs/recipes/specifying-a-cwd.md | 23 ----------------------- 2 files changed, 24 deletions(-) delete mode 100644 docs/recipes/specifying-a-cwd.md diff --git a/docs/recipes/README.md b/docs/recipes/README.md index a022bc452..9234b603e 100644 --- a/docs/recipes/README.md +++ b/docs/recipes/README.md @@ -11,7 +11,6 @@ * [Generating a file per folder](running-task-steps-per-folder.md) * [Server with live-reloading and CSS injection](server-with-livereload-and-css-injection.md) * [Sharing streams with stream factories](sharing-streams-with-stream-factories.md) -* [Specifying a new cwd (current working directory)](specifying-a-cwd.md) * [Split tasks across multiple files](split-tasks-across-multiple-files.md) * [Using external config file](using-external-config-file.md) * [Using multiple sources in one task](using-multiple-sources-in-one-task.md) diff --git a/docs/recipes/specifying-a-cwd.md b/docs/recipes/specifying-a-cwd.md deleted file mode 100644 index eba0ceca9..000000000 --- a/docs/recipes/specifying-a-cwd.md +++ /dev/null @@ -1,23 +0,0 @@ -# Specifying a new cwd (current working directory) - -This is helpful for projects using a nested directory structure, such as: - -``` -/project - /layer1 - /layer2 -``` - -You can use the gulp CLI option `--cwd`. - -From the `project/` directory: - -```sh -gulp --cwd layer1 -``` - -If you only need to specify a cwd for a certain glob, you can use the `cwd` option on a [glob-stream](https://github.com/gulpjs/glob-stream): - -```js -gulp.src('./some/dir/**/*.js', { cwd: 'public' }); -```