From 27a4948b968d0fd7e3ac1b62d79211696a0be54b Mon Sep 17 00:00:00 2001 From: maddalax Date: Fri, 13 Sep 2024 15:48:25 -0500 Subject: [PATCH] test --- framework/tooling/astgen/go.mod | 1 + framework/tooling/copyassets/go.mod | 1 + framework/tooling/mhtml/Taskfile.yml | 12 ++++++++---- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 framework/tooling/astgen/go.mod create mode 100644 framework/tooling/copyassets/go.mod diff --git a/framework/tooling/astgen/go.mod b/framework/tooling/astgen/go.mod new file mode 100644 index 0000000..0216627 --- /dev/null +++ b/framework/tooling/astgen/go.mod @@ -0,0 +1 @@ +module github.com/maddalax/mhtml/framework/tooling/astgen \ No newline at end of file diff --git a/framework/tooling/copyassets/go.mod b/framework/tooling/copyassets/go.mod new file mode 100644 index 0000000..15a5ef7 --- /dev/null +++ b/framework/tooling/copyassets/go.mod @@ -0,0 +1 @@ +module github.com/maddalax/mhtml/framework/tooling/copyassets \ No newline at end of file diff --git a/framework/tooling/mhtml/Taskfile.yml b/framework/tooling/mhtml/Taskfile.yml index 91212d7..217e21f 100644 --- a/framework/tooling/mhtml/Taskfile.yml +++ b/framework/tooling/mhtml/Taskfile.yml @@ -8,7 +8,8 @@ tasks: dir: '{{.USER_WORKING_DIR}}' desc: Generate template from source code cmds: - - go run github.com/maddalax/mhtml/framework/tooling/downloadtemplate + - go install github.com/maddalax/mhtml/framework/tooling/downloadtemplate@latest + - go run github.com/maddalax/mhtml/framework/tooling/downloadtemplate@latest setup: deps: [copy-framework-assets, ast] @@ -41,7 +42,8 @@ tasks: dir: '{{.USER_WORKING_DIR}}' desc: Copy framework assets cmds: - - go run github.com/maddalax/mhtml/framework/tooling/copyassets + - go install github.com/maddalax/mhtml/framework/tooling/copyassets@latest + - go run github.com/maddalax/mhtml/framework/tooling/copyassets@latest ast: dir: '{{.USER_WORKING_DIR}}' @@ -49,7 +51,8 @@ tasks: generates: - '**/generated.go' cmds: - - go run github.com/maddalax/mhtml/framework/tooling/astgen + - go install github.com/maddalax/mhtml/framework/tooling/astgen@latest + - go run github.com/maddalax/mhtml/framework/tooling/astgen@latest ast-watch: dir: '{{.USER_WORKING_DIR}}' @@ -60,4 +63,5 @@ tasks: sources: - '**/*.go' cmds: - - go run github.com/maddalax/mhtml/framework/tooling/astgen \ No newline at end of file + - task: ast + dir: '{{.USER_WORKING_DIR}}' \ No newline at end of file