Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 478 Bytes

specifying-a-cwd.md

File metadata and controls

23 lines (16 loc) · 478 Bytes

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:

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:

gulp.src('./some/dir/**/*.js', { cwd: 'public' });