diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-20 23:49:29 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-20 23:49:29 -0500 |
commit | 6cb7da37824d02a1898d08d0f9495c77fde4dd1d (patch) | |
tree | 95e37ea3c20f416d6a205ee4ab050c307b18eafe /front-end/Taskfile.yaml |
inital commit
Diffstat (limited to 'front-end/Taskfile.yaml')
-rw-r--r-- | front-end/Taskfile.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/front-end/Taskfile.yaml b/front-end/Taskfile.yaml new file mode 100644 index 0000000..9e2e28f --- /dev/null +++ b/front-end/Taskfile.yaml @@ -0,0 +1,27 @@ + +#taskfile for building the libraries for admin and clients and creating their packages + +version: '3' + +tasks: + + build: + cmds: + #install deps and run build + - npm install && npm run build + + #copy artifacts to temp directory + postbuild_success: + cmds: + - powershell -Command "mkdir bin -Force" + #tar the dist output and put it in the output dir + - cd dist && tar -czf '../bin/release.tgz' . + + #clean hook + clean: + ignore_error: true + cmds: + - cmd: powershell -Command "Remove-Item -Recurse -Force node_modules" + - cmd: powershell -Command "Remove-Item -Recurse -Force dist" + - cmd: powershell -Command "Remove-Item -Recurse -Force bin" + - cmd: powershell -Command "Remove-Item release.tgz"
\ No newline at end of file |