Skip to content

Commit 17e1b0d

Browse files
committed
Include info about the path variable extension
1 parent d2458ae commit 17e1b0d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Taskfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set -eo pipefail
66
# More info: https://go.futureportal.com/taskfile
77
# =========================================================
88

9+
PATH=./node_modules/.bin:$PATH
10+
911
# =========================================================
1012
## Documentation
1113
# =========================================================

taskfile-base.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ set -eo pipefail
1111
# More info: https://go.futureportal.com/taskfile
1212
# =========================================================
1313

14+
PATH=./node_modules/.bin:$PATH
15+
1416
# TODO:
1517
# This is where you add relevant tasks for your project.
1618

@@ -88,6 +90,14 @@ if a line contains `##` (double comment). When it finds a `##`, it will either u
8890
help overview, or when it's combined with a `function task:* { ## Descriptoin` then the comment will be used as the
8991
task description. Using this will give your user a clear overview of what tasks can be run.
9092

93+
## PATH
94+
95+
In the taskfile base, you see that the PATH variable is updated with an additional path
96+
(`PATH=./node_modules/.bin:$PATH`). In this example `./node_modules/.bin` is added to the bash PATH variable. For
97+
example, if you have a `eslint` binary in that folder, you can now call `eslint --fix .` directly from your tasks,
98+
instead of having to call `./node_modules/.bin/eslint --fix .`. If you don't need it, remove it. If you need to include
99+
a different binary path, update it.
100+
91101
## Shorthand
92102

93103
If you're a lazy developer (that's a good thing, trust me), you're probably already tired of having to type

0 commit comments

Comments
 (0)