mirror of
https://github.com/go-task/task.git
synced 2025-04-17 12:06:30 +02:00
Documentation for running task in another dir
This commit is contained in:
parent
847f206043
commit
adc433f02a
13
README.md
13
README.md
@ -39,6 +39,19 @@ task assets build
|
|||||||
If Bash is available (Linux and Windows while on Git Bash), the commands will
|
If Bash is available (Linux and Windows while on Git Bash), the commands will
|
||||||
run in Bash, otherwise will fallback to `cmd` (on Windows).
|
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
|
### Task dependencies
|
||||||
|
|
||||||
You may have tasks that depends on others. Just pointing them on `deps` will
|
You may have tasks that depends on others. Just pointing them on `deps` will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user