This commit is contained in:
maddalax 2024-09-13 15:48:25 -05:00
parent 75959ebe2f
commit 27a4948b96
3 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1 @@
module github.com/maddalax/mhtml/framework/tooling/astgen

View file

@ -0,0 +1 @@
module github.com/maddalax/mhtml/framework/tooling/copyassets

View file

@ -8,7 +8,8 @@ tasks:
dir: '{{.USER_WORKING_DIR}}' dir: '{{.USER_WORKING_DIR}}'
desc: Generate template from source code desc: Generate template from source code
cmds: 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: setup:
deps: [copy-framework-assets, ast] deps: [copy-framework-assets, ast]
@ -41,7 +42,8 @@ tasks:
dir: '{{.USER_WORKING_DIR}}' dir: '{{.USER_WORKING_DIR}}'
desc: Copy framework assets desc: Copy framework assets
cmds: 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: ast:
dir: '{{.USER_WORKING_DIR}}' dir: '{{.USER_WORKING_DIR}}'
@ -49,7 +51,8 @@ tasks:
generates: generates:
- '**/generated.go' - '**/generated.go'
cmds: 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: ast-watch:
dir: '{{.USER_WORKING_DIR}}' dir: '{{.USER_WORKING_DIR}}'
@ -60,4 +63,5 @@ tasks:
sources: sources:
- '**/*.go' - '**/*.go'
cmds: cmds:
- go run github.com/maddalax/mhtml/framework/tooling/astgen - task: ast
dir: '{{.USER_WORKING_DIR}}'