|
|
|
@ -16,8 +16,30 @@ steps:
|
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
# npm install -g @angular/cli
|
|
|
|
|
npm install -g @ionic/cli
|
|
|
|
|
npm install
|
|
|
|
|
ionic build --prod
|
|
|
|
|
displayName: 'npm install and build'
|
|
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
|
|
|
|
inputs:
|
|
|
|
|
script: |
|
|
|
|
|
echo $(Build.Repository.LocalPath)
|
|
|
|
|
ls -la $(Build.Repository.LocalPath)
|
|
|
|
|
|
|
|
|
|
# # Archive files
|
|
|
|
|
- task: ArchiveFiles@2
|
|
|
|
|
inputs:
|
|
|
|
|
rootFolderOrFile: '$(Build.Repository.LocalPath)/www'
|
|
|
|
|
includeRootFolder: true
|
|
|
|
|
archiveType: 'tar'
|
|
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
|
|
|
|
replaceExistingArchive: true
|
|
|
|
|
verbose: true
|
|
|
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
|
inputs:
|
|
|
|
|
# targetPath: '$(Pipeline.Workspace)'
|
|
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
|
|
|
|
artifact: 'FrontEnd'
|
|
|
|
|
publishLocation: 'pipeline'
|