-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.build.yml
executable file
·78 lines (67 loc) · 1.84 KB
/
template.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
jobs:
- job: 'Build'
displayName: 'Build'
pool:
vmImage: 'macOS-latest'
steps:
- task: UseNode@1
displayName: 'Use Node'
- task: Npm@1
displayName: 'common - npm install'
inputs:
workingDir: common
verbose: false
- task: Npm@1
displayName: 'common - updateCommonFiles'
inputs:
command: custom
customCommand: 'run updateCommonFiles'
workingDir: common
verbose: false
- task: Npm@1
displayName: 'admin - npm install'
inputs:
workingDir: admin
verbose: false
- task: touchify.vsts-bower.bower.Bower@0
displayName: 'admin - bower'
inputs:
command: update
bowerjson: admin/bower.json
- task: Npm@1
displayName: 'admin - build'
inputs:
command: custom
customCommand: 'run build'
workingDir: admin
verbose: false
- task: Npm@1
displayName: 'client - npm install'
inputs:
workingDir: client
verbose: false
- task: touchify.vsts-bower.bower.Bower@0
displayName: 'client - bower'
inputs:
command: update
bowerjson: client/bower.json
- task: Npm@1
displayName: 'client - build'
inputs:
command: custom
customCommand: 'run build'
workingDir: client
verbose: false
- task: CopyFiles@2
displayName: 'Copy admin files'
inputs:
SourceFolder: admin/dist
TargetFolder: '$(Build.ArtifactStagingDirectory)/admin'
- task: CopyFiles@2
displayName: 'Copy client files'
inputs:
SourceFolder: client/dist
TargetFolder: '$(Build.ArtifactStagingDirectory)/client'
- publish: $(Build.ArtifactStagingDirectory)
artifact: dist
condition: succeededOrFailed()