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