Actually I have my angular application required to deploy into Azure. Honestly its my first time deployment with Angular app. So what I choose was Node with Grunt template.
Here are the steps
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: CrSPA/Clientapp
verbose: false
steps:
- task: Npm@1
displayName: 'Build Project'
inputs:
command: custom
workingDir: CrSPA/Clientapp
verbose: false
customCommand: 'run build-prod'
run build-prod means ng build --prod
My question is it it the correct approach. I asked this because when ever a small change in application, whole npm install procedure takes place and its taking long time to finish. So I'm not sure the way I'm following is the best way.
Also it it best to push after build locally? Also is it OK to push node_modules folder as well into repository, So I cant do an npm install always?