@leverege/build-tools 2.21.0-beta.1 → 2.21.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -74,15 +74,16 @@ class Gitter {
|
|
|
74
74
|
name: 'git.host',
|
|
75
75
|
message: 'Where will the repository be hosted?',
|
|
76
76
|
choices: ['bitbucket', 'github', 'local']
|
|
77
|
-
}, {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
77
|
+
}, // {
|
|
78
|
+
// type : 'input',
|
|
79
|
+
// name : 'git.owner',
|
|
80
|
+
// message : 'Who is the owner of the git repository?',
|
|
81
|
+
// default : 'leverege',
|
|
82
|
+
// when : ( answer ) => {
|
|
83
|
+
// return answer.git.host !== 'local'
|
|
84
|
+
// },
|
|
85
|
+
// },
|
|
86
|
+
{
|
|
86
87
|
type: 'list',
|
|
87
88
|
name: 'git.createRemote',
|
|
88
89
|
message: 'Let repo-init create the remote git repository?',
|
|
@@ -53,7 +53,11 @@ class Templates {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
needsAnIngestionPort(template) {
|
|
56
|
-
return template.type === 'ingestor' && template.subType !== 'PubSub' && template.subType !== 'HTTP';
|
|
56
|
+
return template.type === 'ingestor' && template.subType !== 'PubSub' && template.subType !== 'HTTP' && template.subType !== 'MQTT';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
isMqtt(template) {
|
|
60
|
+
return template.type === 'ingestor' && template.subType === 'MQTT';
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
async runInquiry(spec) {
|
|
@@ -87,6 +91,22 @@ class Templates {
|
|
|
87
91
|
when: answers => {
|
|
88
92
|
return this.needsAnIngestionPort(answers.template);
|
|
89
93
|
}
|
|
94
|
+
}, {
|
|
95
|
+
type: 'string',
|
|
96
|
+
name: 'template.mqttHost',
|
|
97
|
+
message: 'Enter the MQTT Broker address to use',
|
|
98
|
+
default: 'mqtt://broker.emqx.io',
|
|
99
|
+
when: answers => {
|
|
100
|
+
return this.isMqtt(answers.template);
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
type: 'number',
|
|
104
|
+
name: 'template.mqttPort',
|
|
105
|
+
message: 'Enter the MQTT Broker port to use',
|
|
106
|
+
default: 1883,
|
|
107
|
+
when: answers => {
|
|
108
|
+
return this.isMqtt(answers.template);
|
|
109
|
+
}
|
|
90
110
|
}, {
|
|
91
111
|
type: 'number',
|
|
92
112
|
name: 'template.expressPort',
|