diff options
author | vnugent <public@vaughnnugent.com> | 2024-08-01 21:13:04 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-08-01 21:13:04 -0400 |
commit | 904560a7b5eafd7580fb0a03e778d1751e72a503 (patch) | |
tree | 9ffc07d9f9dd6a9106b8cd695a6caa591aac8e95 /third-party/DotNetCorePlugins/Taskfile.yaml | |
parent | 6af95e61212611908d39235222474d4038e10fcd (diff) |
build(app): swallow vnlib.webserver into core & build updates
Diffstat (limited to 'third-party/DotNetCorePlugins/Taskfile.yaml')
-rw-r--r-- | third-party/DotNetCorePlugins/Taskfile.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/third-party/DotNetCorePlugins/Taskfile.yaml b/third-party/DotNetCorePlugins/Taskfile.yaml new file mode 100644 index 0000000..99839dc --- /dev/null +++ b/third-party/DotNetCorePlugins/Taskfile.yaml @@ -0,0 +1,49 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software + +# Taskfile specific to DotNetCorePlugins project +# currently this taskfile only packs up the source code +# and test source code into a source code tgz file for +# distribution. The changes file and license file are also +# included + +version: '3' + +tasks: + + #when build succeeds, archive the output into a tgz + postbuild_success: + dir: '{{.USER_WORKING_DIR}}' + cmds: + - task: pack_source + + pack_source: + internal: true + dir: '{{ .USER_WORKING_DIR }}' + vars: + EXCLUDES: + --exclude='bin/*' + --exclude='obj/*' + #--exclude='.tarignore' + INCLUDES: + src/* + test/* + CHANGES.md + LICENSE + Taskfile.yaml + README.md + + cmds: + #pack up source code and put in output + - cmd: cd .. && tar {{ .EXCLUDES }} -czf '{{ .USER_WORKING_DIR }}/bin/src.tgz' {{ .INCLUDES }} + + +#Remove the output dirs on clean + clean: + dir: '{{.USER_WORKING_DIR}}' + ignore_error: true + cmds: + - for: [ bin/, obj/ ] + cmd: powershell -Command "rm -Recurse -Force '{{.ITEM}}'" |