#This allows the Task build system to run commands to build components of the project #You must install Task before executing this file, https://taskfile.dev version: '3' tasks: #update project source code update: cmds: - git reset --hard - git remote update - git pull origin {{.BRANCH_NAME}} --verify-signatures #re-write semver for back-end after hard reset - dotnet-gitversion.exe /updateprojectfiles build: cmds: #overwrite front-end version, this must be run on build hook because update can cause the version to change - cmd: cd front-end/ && npm version {{ .BUILD_VERSION }} ignore_error: true #error if run when version is not updated #copy artifacts to temp directory postbuild_success: cmds: #git archive in the module directory - git archive --format {{.ARCHIVE_FILE_FORMAT}} --output {{.ARCHIVE_FILE_NAME}} HEAD #clean hook clean: cmds: dev-update: cmds: - cd front-end/ && npm update