You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
# 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'
|
|
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
echo $(Build.Repository.LocalPath)
|
|
$(Build.Repository.LocalPath)
|
|
|
|
|
|
# - script: |
|
|
# npm install -g @ionic/cli
|
|
# npm install
|
|
# ionic build --prod
|
|
# displayName: 'npm install and build'
|
|
|
|
# # # Archive files
|
|
# - task: ArchiveFiles@2
|
|
# inputs:
|
|
# rootFolderOrFile: '$(Build.BinariesDirectory)'
|
|
# includeRootFolder: true
|
|
# archiveType: 'tar'
|
|
# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
|
# replaceExistingArchive: true
|
|
# verbose: true
|
|
|
|
# - task: PublishBuildArtifacts@1
|
|
# inputs:
|
|
# PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
# ArtifactName: 'Front'
|
|
# publishLocation: 'Container' |