From adc433f02a0c9e0a9b49e5162dfd4bf4ddf8e99b Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 1 Mar 2017 19:54:21 -0300 Subject: [PATCH] Documentation for running task in another dir --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9f78723e..26074169 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,19 @@ task assets build If Bash is available (Linux and Windows while on Git Bash), the commands will run in Bash, otherwise will fallback to `cmd` (on Windows). +### Running task in another dir + +By default, tasks will be executed in the directory where the Taskfile is +located. But you can easily make the task run in another folder informing +`dir`: + +```yml +js: + dir: www/public/js + cmds: + - gulp +``` + ### Task dependencies You may have tasks that depends on others. Just pointing them on `deps` will