diff options
Diffstat (limited to 'front-end/Taskfile.yaml')
-rw-r--r-- | front-end/Taskfile.yaml | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/front-end/Taskfile.yaml b/front-end/Taskfile.yaml index 3645800..8c7327a 100644 --- a/front-end/Taskfile.yaml +++ b/front-end/Taskfile.yaml @@ -7,23 +7,30 @@ tasks: build: cmds: + - cmd: npm version {{ .BUILD_VERSION }} + ignore_error: true #error if run when version is not updated + - task: ci-build + + ci-build: + cmds: + - cmd: powershell rm dist/ -Recurse -Force + ignore_error: true #build admin first - - cd ../lib/admin && npm install && npm run build - #install deps and run build - - npm install && npm run build + - cd ../lib/admin && 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 |