aboutsummaryrefslogtreecommitdiff
path: root/lib/Taskfile.yaml
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-08-10 22:08:54 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-08-10 22:08:54 -0400
commit277dd634e169e7341272e304f715a542047396d7 (patch)
tree66c07a3605e8c8762007ac34233cd73655162a38 /lib/Taskfile.yaml
parent7cb2e971e43df248d8eed585e4a96d79492e4e79 (diff)
Introduce builds using vnbuild for the websitev0.1.1
Diffstat (limited to 'lib/Taskfile.yaml')
-rw-r--r--lib/Taskfile.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Taskfile.yaml b/lib/Taskfile.yaml
new file mode 100644
index 0000000..e2989c2
--- /dev/null
+++ b/lib/Taskfile.yaml
@@ -0,0 +1,31 @@
+
+#taskfile for building the libraries for admin and clients and creating their packages
+
+version: '3'
+
+tasks:
+
+ build:
+ dir: '{{.USER_WORKING_DIR}}'
+ cmds:
+ #install deps and run build
+ - npm install
+ - npm run build
+
+ #copy artifacts to temp directory
+ postbuild_success:
+ dir: '{{.USER_WORKING_DIR}}'
+ cmds:
+ - powershell -Command "mkdir bin -Force"
+ #tar the package and put it in the output dir
+ - tar --exclude="./node_modules" --exclude="./src" --exclude="./.git" --exclude="./bin" --exclude=".gitignore" --exclude="*.yaml" -czf bin/release.tgz .
+
+ #clean hook
+ clean:
+ dir: '{{.USER_WORKING_DIR}}'
+ ignore_error: true
+ cmds:
+ - cmd: powershell -Command "Remove-Item -Recurse node_modules"
+ - cmd: powershell -Command "Remove-Item -Recurse dist"
+ - cmd: powershell -Command "Remove-Item -Recurse -Force bin"
+ - cmd: powershell -Command "Remove-Item release.tgz" \ No newline at end of file