diff options
author | vnugent <public@vaughnnugent.com> | 2024-06-06 15:56:36 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-06-06 15:56:36 -0400 |
commit | 35920ad6c8596fc14bcfed66303511e8c249be8d (patch) | |
tree | 5394c287ab9f9d36c43d0f58368256fd9f1bb420 /front-end/Taskfile.yaml | |
parent | 3c228b3cc5172fae398af8de72b64bd780ace20c (diff) |
ci: Local vite config, force set lib versions
Diffstat (limited to 'front-end/Taskfile.yaml')
-rw-r--r-- | front-end/Taskfile.yaml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/front-end/Taskfile.yaml b/front-end/Taskfile.yaml index 3645800..c64dc22 100644 --- a/front-end/Taskfile.yaml +++ b/front-end/Taskfile.yaml @@ -7,23 +7,25 @@ tasks: build: cmds: + - cmd: npm version {{ .BUILD_VERSION }} + ignore_error: true #error if run when version is not updated + #build admin first - cd ../lib/admin && npm install && npm run build - #install deps and run build - - npm install && npm run build + #install deps and run main build + - npm install + - npm run build #copy artifacts to temp directory postbuild_success: cmds: - - powershell -Command "mkdir bin -Force" + - powershell mkdir bin -Force #tar the dist output and put it in the output dir - - cd dist && tar -czf '../bin/release.tgz' . + - 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 + - for: [ node_modules/, dist/, bin/ ] + cmd: powershell -Command "Remove-Item -Recurse -Force {{.ITEM}}"
\ No newline at end of file |