-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDefaultTasksJson.ts
More file actions
153 lines (142 loc) · 5.62 KB
/
DefaultTasksJson.ts
File metadata and controls
153 lines (142 loc) · 5.62 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*!
* Copyright 2018-2021 VMware, Inc.
* SPDX-License-Identifier: MIT
*/
/* eslint-disable no-template-curly-in-string */
import { ProjectArchetypes } from "../../constants"
export interface VrealizeTaskConfiguration {
label: string
command: string
windows?: { command: string }
linux?: { command: string }
osx?: { command: string }
}
export const TASKS_BY_TOOLCHAIN_PARENT: Record<ProjectArchetypes, VrealizeTaskConfiguration[]> = {
[ProjectArchetypes.TypeScript]: [
{
label: "Push",
windows: {
command:
'mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -D"vro.packageImportConfigurationAttributeValues=false"'
},
command:
"mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -Dvro.packageImportConfigurationAttributeValues=false"
},
{
label: "Build",
command: "mvn clean package"
}
],
[ProjectArchetypes.TypeScriptAll]: [
{
label: "Push",
windows: {
command:
'mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -D"vro.packageImportConfigurationAttributeValues=false"'
},
command:
"mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -Dvro.packageImportConfigurationAttributeValues=false"
},
{
label: "Build",
command: "mvn clean package"
}
],
[ProjectArchetypes.Base]: [
{
label: "Push",
windows: {
command:
'mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -D"vro.packageImportConfigurationAttributeValues=false"'
},
command:
"mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -Dvro.packageImportConfigurationAttributeValues=false"
},
{
label: "Pull",
windows: {
command:
'mvn vro:pull -P${config:vrdev.maven.profile} -D"vro.packageExportConfigurationAttributeValues=false"'
},
command:
"mvn vro:pull -P${config:vrdev.maven.profile} -Dvro.packageExportConfigurationAttributeValues=false"
},
{
label: "Push Changes",
windows: {
command:
"mvn clean package vrealize:push -P${config:vrdev.maven.profile} -DincludeDependencies=false -DskipTests -DpackageSuffix=patch -Dactions=\"$($(git diff --name-only origin/master) -join ',')\""
},
command:
"mvn clean package vrealize:push -P${config:vrdev.maven.profile} -DincludeDependencies=false -DskipTests -DpackageSuffix=patch -Dactions=\"$(git diff --name-only origin/master | tr '\\n' ',' | sed 's/,$ //')\""
}
],
[ProjectArchetypes.Actions]: [
{
label: "Push",
command:
"mvn clean package vrealize:push -DincludeDependencies=false -DskipTests -P${config:vrdev.maven.profile}"
},
{
label: "Pull",
command: "mvn vro:pull -P${config:vrdev.maven.profile}"
}
],
[ProjectArchetypes.Xml]: [
{
label: "Push",
windows: {
command:
'mvn clean package vrealize:push -DincludeDependencies=false -DskipTests -P${config:vrdev.maven.profile} -D"vro.packageImportConfigurationAttributeValues=false"'
},
command:
"mvn clean package vrealize:push -DincludeDependencies=false -DskipTests -P${config:vrdev.maven.profile} -Dvro.packageImportConfigurationAttributeValues=false"
},
{
label: "Pull",
windows: {
command:
'mvn vro:pull -P${config:vrdev.maven.profile} -D"vro.packageExportConfigurationAttributeValues=false"'
},
command:
"mvn vro:pull -P${config:vrdev.maven.profile} -Dvro.packageExportConfigurationAttributeValues=false"
}
],
[ProjectArchetypes.Vra]: [
{
label: "Push",
command:
"mvn clean package vrealize:push -DincludeDependencies=false -DskipTests -P${config:vrdev.maven.profile}"
},
{
label: "Pull",
command: "mvn vra:pull -P${config:vrdev.maven.profile}"
}
],
[ProjectArchetypes.VraNg]: [
{
label: "Push",
command:
"mvn clean package vrealize:push -DincludeDependencies=false -DskipTests -P${config:vrdev.maven.profile}"
},
{
label: "Pull",
command: "mvn vra-ng:pull -P${config:vrdev.maven.profile}"
}
],
[ProjectArchetypes.Polyglot]: [
{
label: "Push",
windows: {
command:
'mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -D"vro.packageImportConfigurationAttributeValues=false"'
},
command:
"mvn clean package vrealize:push -DincludeDependencies=true -DskipTests -P${config:vrdev.maven.profile} -Dvro.packageImportConfigurationAttributeValues=false"
},
{
label: "Build",
command: "mvn clean package"
}
]
}