# 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 trigger: - master pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '12.x' 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: | pwd ls -la echo $(Build.BinariesDirectory) # Archive files # Compress files into .7z, .tar.gz, or .zip - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.BinariesDirectory)/www' # includeRootFolder: true archiveType: 'tar' # Options: zip, 7z, tar, wim tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' #replaceExistingArchive: true verbose: true # Optional #quiet: # Optional