Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Taskfile support #28

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
modify watch.sh to be compatible with Task
it accepts an optional `task` argument which makes it run task commands instead of make commands (the default if no argument is supplied).

since I'm on Windows I had to add a parameter to .gitattributes so I could save watch.sh with LF line endings, otherwise it would fail to be executed in Linux.
  • Loading branch information
HeCorr committed May 7, 2023
commit ad986572264259b0fbfcc48907551a399eebfc37
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
templates/**/* linguist-vendored
public/**/*.css linguist-vendored
*.sh text eol=lf
9 changes: 7 additions & 2 deletions watch.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash
set -euo pipefail

make watch_frontend &
make watch_backend &
if [ "$1" == "task" ]; then
task watch_frontend &
task watch_backend &
else
make watch_frontend &
make watch_backend &
fi

trap 'kill $(jobs -p)' EXIT
wait