-
Notifications
You must be signed in to change notification settings - Fork 0
/
.fwatch.exs
28 lines (25 loc) · 890 Bytes
/
.fwatch.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Config
config :file_watch,
# dirs to be watched
dirs: ["."],
# commands to be executed when detected, multiple commands can be specified
commands: ["make tailwind"],
# if true, commands are executed in parallel
parallel_exec: false,
# path detecting patterns, should be written in regex
# refs. https://hexdocs.pm/elixir/Regex.html
patterns: [
~r"_includes/.*(html)$",
~r"_layouts/.*(html)$",
~r"\.\/index.html$"
],
# if your editor touches multiple files in a short period,
# it can be avoided by increasing the debounce(msec)
debounce: 100
config :logger,
# use :debug to show matched path and ran command
# :none to suppress logs
level: :debug
# On Windows :file_system needs inotifywait.exe,
# uncomment the following line and configure path to it
# config :file_system, :fs_windows, executable_file: "path/to/inotifywait.exe"