-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmodel.ts
54 lines (49 loc) · 1.36 KB
/
model.ts
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
export class SepackConfig {
public templates: [Template]
constructor(templates: [Template]) {
this.templates = templates
}
}
export class VersionApi {
public name: string
public version: string
public templates: [Template]
constructor(name: string, version: string, templates: [Template]) {
this.name = name
this.version = version
this.templates = templates
}
}
export class Template {
public name: string
public url: string
public branch: string
constructor(name: string, url: string, branch: string) {
this.name = name
this.url = url
this.branch = branch
}
}
export class Dependencies {
public group: string
public artifact: string
public description: string
public version: string
constructor(group: string, artifact: string, description: string, version: string) {
this.group = group
this.artifact = artifact
this.description = description
this.version = version
}
}
export class PackageSetup {
public projectName: string
public packageName: string
public template: Template
public dependencies: string[]
constructor(projectName: string, packageName: string, template: Template) {
this.projectName = projectName
this.packageName = packageName
this.template = template
}
}