代码拉取完成,页面将自动刷新
同步操作将从 52abp社区培训-梁桐铭/Cloud.BookList 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Node.js with Angular
# Build a Node.js project that uses Angular.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
pool:
vmImage: 'ubuntu-16.04'
variables:
angularPath: 'src/booklist-angular' # 前端UI目录
migrationToolBuildPath: 'src/booklist-aspnet-core/src/Cloud.BookList.Migrator' # 迁移工具.csproj所在目录
hostBuildPath: 'src/booklist-aspnet-core/src/Cloud.BookList.Web.Host' # Host.csproj所在目录
dotnetConfig: ' -c Release -f netcoreapp2.1 -o publish' # dotnet发布的命令携带的参数
steps:
# # ============================== Migrator Start Build
# - task: PowerShell@2
# displayName: 'Migrator tool build'
# inputs:
# targetType: 'inline'
# script: |
# cd $(System.DefaultWorkingDirectory)/$(migrationToolBuildPath)
# dotnet publish $(dotnetConfig)
# # 将dotnet发布的结果目录打包并复制到 $(Build.ArtifactStagingDirectory) 目录
# - task: ArchiveFiles@2
# displayName: 'Archive Migrator'
# inputs:
# rootFolderOrFile: '$(System.DefaultWorkingDirectory)/$(migrationToolBuildPath)/publish'
# includeRootFolder: false
# archiveFile: '$(Build.ArtifactStagingDirectory)/migrator.zip'
# # ============================== Host Start Build
# - task: PowerShell@2
# displayName: 'Host build'
# inputs:
# targetType: 'inline'
# script: |
# cd $(System.DefaultWorkingDirectory)/$(hostBuildPath)
# dotnet publish $(dotnetConfig)
# # 将dotnet发布的结果目录打包并复制到 $(Build.ArtifactStagingDirectory) 目录
# - task: ArchiveFiles@2
# displayName: 'Archive Host'
# inputs:
# rootFolderOrFile: '$(System.DefaultWorkingDirectory)/$(hostBuildPath)/publish'
# includeRootFolder: false
# archiveFile: '$(Build.ArtifactStagingDirectory)/host.zip'
# ============================== Angular Start
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- task: PowerShell@2
displayName: 'Angular ui restone and build'
inputs:
targetType: 'inline'
script: |
cd $(System.DefaultWorkingDirectory)/$(angularPath)
npm install -g @angular/cli@6.2.1
npm install
ng build --prod --build-optimizer
cp $(System.DefaultWorkingDirectory)/$(angularPath)/web.config $(System.DefaultWorkingDirectory)/$(angularPath)/dist
# 将Angular发布的目录打包并复制到 $(Build.ArtifactStagingDirectory) 目录
- task: ArchiveFiles@2
displayName: 'Archive AngularUI'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/$(angularPath)/dist'
includeRootFolder: false
archiveFile: '$(Build.ArtifactStagingDirectory)/ui.zip'
# # ============================== 查看
# - task: PowerShell@2
# displayName: 'show all publish dir and publish file'
# inputs:
# targetType: 'inline'
# script: |
# "AngularUI out put:"
# ls $(System.DefaultWorkingDirectory)/$(angularPath)
# ls $(System.DefaultWorkingDirectory)/$(angularPath)/dist
# "MigrationTool out put:"
# ls $(System.DefaultWorkingDirectory)/$(migrationToolBuildPath)
# ls $(System.DefaultWorkingDirectory)/$(migrationToolBuildPath)/publish
# "Host out put:"
# ls $(System.DefaultWorkingDirectory)/$(hostBuildPath)
# ls $(System.DefaultWorkingDirectory)/$(hostBuildPath)/publish
# "all zip out put:"
# ls $(Build.ArtifactStagingDirectory)
# ============================== 发布到目录
- task: PublishBuildArtifacts@1 # 预定义的task
displayName: 'publish artifact: drop'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。