diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-01 10:56:02 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-01 10:56:02 -0500 |
commit | 1a82a909c5c4d0262d69a8a543e902ff6533a4b2 (patch) | |
tree | 7a0a296ae09209f5214e42917a46ad90f22c38d9 /lib/vnlib.browser/Taskfile.yaml | |
parent | 35a5763d675a68ec5e36e05584481b49e1c41ce0 (diff) |
swallow vnlib.browser
Diffstat (limited to 'lib/vnlib.browser/Taskfile.yaml')
-rw-r--r-- | lib/vnlib.browser/Taskfile.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/vnlib.browser/Taskfile.yaml b/lib/vnlib.browser/Taskfile.yaml new file mode 100644 index 0000000..bdac379 --- /dev/null +++ b/lib/vnlib.browser/Taskfile.yaml @@ -0,0 +1,36 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software + + +#this file must be in the same directory as the solution file + +version: '3' + +tasks: + +#called by build pipeline to build module + build: + cmds: + - echo "building module {{.MODULE_NAME}}" + + #install dependencies and build + - npm install + - npm run build + + postbuild_success: + cmds: + - powershell -Command "mkdir bin -Force" + #tgz the dist folder + - tar --exclude="./node_modules" --exclude="./src" --exclude="./.git" --exclude="./bin" --exclude=".gitignore" --exclude="*.yaml" --exclude="*.yml" -czf bin/release.tgz . + + +#called by build pipeline to clean module + clean: + ignore_error: true + cmds: + #delete dist folder + - cmd: powershell -Command "Remove-Item -Recurse node_modules" + - cmd: powershell -Command "Remove-Item -Recurse dist" + - cmd: powershell -Command "Remove-Item -Recurse -Force bin"
\ No newline at end of file |