[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/projectile 41c60b3947 2/3: Add support go-task/task
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/projectile 41c60b3947 2/3: Add support go-task/task |
Date: |
Tue, 25 Oct 2022 04:59:17 -0400 (EDT) |
branch: elpa/projectile
commit 41c60b3947543af2b610809511496bdae55f3247
Author: Hiraku Sugiura <hiraku.sugiura@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Add support go-task/task
Task is a task runner.
go-task/task support multile file name (Taskfile.yml, Taskfile.yaml,
Taskfile.dist.yml, Taskfile.dist.yaml),
but this patch just support Taskfile.yml for now.
Reference: https://taskfile.dev/
---
CHANGELOG.md | 1 +
projectile.el | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e580c6cf3..933967f5f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
* [#1747](https://github.com/bbatsov/projectile/pull/1747): Add support for
preset-based install-commands for CMake projects.
* [#1768](https://github.com/bbatsov/projectile/pull/1768) Add support for
disabling command caching on a per-project basis.
* [#1797](https://github.com/bbatsov/projectile/pull/1797) Make all project
type attributes locally overridable
+* [#1803](https://github.com/bbatsov/projectile/pull/1803): Add support
go-task/task
### Bugs fixed
diff --git a/projectile.el b/projectile.el
index 0bde72c4e2..922a5509f8 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3157,6 +3157,12 @@ a manual COMMAND-TYPE command is created with
:test #'projectile--cmake-test-command
:install #'projectile--cmake-install-command
:package "cmake --build build --target
package")
+;; go-task/task
+(projectile-register-project-type 'go-task '("Taskfile.yml")
+ :project-file "Taskfile.yml"
+ :compile "task build"
+ :test "task test"
+ :install "task install")
;; Go should take higher precedence than Make because Go projects often have a
Makefile.
(projectile-register-project-type 'go projectile-go-project-test-function
:compile "go build"