From f7b8f502bd09dd1823cfa4e497703907783e9480 Mon Sep 17 00:00:00 2001 From: Jeremiah Date: Mon, 31 Jul 2023 19:31:55 -0400 Subject: [PATCH 1/2] add taskfile.dev & update readme --- README.md | 14 ++++++++++++++ taskfile.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 taskfile.yaml diff --git a/README.md b/README.md index 053c802..ff923be 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,8 @@ This is the milestone where I throw tickets that I may pull into current release ### [Longshots](https://github.com/jmillerv/go-dj/milestone/3) This is board is where neat ideas get thrown, but realistically won't be implemented anytime soon. + + ## Config Setup go-dj consumes a file called `config.yml` the daemon searches for this file in the root of the directory @@ -146,3 +148,15 @@ streams don't work. ## Feature Requests I've built this out for my specific use case and released it to the public when I considered it feature complete. Suggestions are welcome for adding additional features. + +## Development Setup +1. Install [golang](https://go.dev/doc/install) +2. Install [taskfile.dev](https://taskfile.dev/installation/) on your machine. + +3. Run `task install_deps` in the root of this repo. + +4. Run `task run` in the root of this repo. + +If all passes without errors, you should be set to use this binary. Checkout the `taskfile.dev` for additional features +commands you can run. + diff --git a/taskfile.yaml b/taskfile.yaml new file mode 100644 index 0000000..99f43f4 --- /dev/null +++ b/taskfile.yaml @@ -0,0 +1,24 @@ +version: '3' + +tasks: + # Builds the go-dj binary + build: + cmds: + - go build -v -o go-dj . + - chmod +x go-dj + + # Installs dependencies necessary for go-dj to output audio + install_deps: + cmds: + - sudo apt install libasound2-dev libudev-dev pkg-config + + # Runs go-dj + run: + cmds: + - task: build + - ./go-dj --help + + # Run the tests + test: + cmds: + - go test -v ./content -run Test \ No newline at end of file From 065b70afd61820a9c4e1180025d20b0cb25ca29c Mon Sep 17 00:00:00 2001 From: Jeremiah Date: Mon, 31 Jul 2023 19:32:54 -0400 Subject: [PATCH 2/2] remove unncessary line breaks --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index ff923be..5d32aa7 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,6 @@ This is the milestone where I throw tickets that I may pull into current release ### [Longshots](https://github.com/jmillerv/go-dj/milestone/3) This is board is where neat ideas get thrown, but realistically won't be implemented anytime soon. - - ## Config Setup go-dj consumes a file called `config.yml` the daemon searches for this file in the root of the directory