@gregoriusrippenstein/node-red-contrib-nodedev 0.1.4 → 0.1.5

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.
@@ -56,6 +56,8 @@
56
56
  noderedinstall: { value: false },
57
57
  randompackagename: { value: false },
58
58
 
59
+ ignore_package_check: { value: false },
60
+
59
61
  gitcommit: { value: false },
60
62
  gitcheckforchange: { value: false },
61
63
  githubowner: { value: ""},
@@ -183,37 +185,44 @@
183
185
 
184
186
  <script type="text/html" data-template-name="NodeDevOps">
185
187
  <div class="form-row">
186
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
188
+ <label for="node-input-name" style="min-width: 170px;"><i class="fa fa-tag"></i> Name</label>
187
189
  <input type="text" id="node-input-name" placeholder="Name"/>
188
190
  </div>
189
191
 
190
192
  <hr/>
191
193
 
192
194
  <div class="form-row">
193
- <label for="node-input-pname" style="min-width: 150px;"><i class="fa fa-tag"></i> Package Name</label>
195
+ <label for="node-input-pname" style="min-width: 170px;"><i class="fa fa-tag"></i> Package Name</label>
194
196
  <input type="text" id="node-input-pname" placeholder="@username/node-red-contrib-somename"/>
195
197
  </div>
196
198
 
197
199
  <div class="form-row">
198
- <label for="node-input-pversion" style="min-width: 150px;"><i class="fa fa-tag"></i> Package Version</label>
200
+ <label for="node-input-pversion" style="min-width: 170px;"><i class="fa fa-tag"></i> Package Version</label>
199
201
  <input type="text" id="node-input-pversion" placeholder="0.0.1"/>
200
202
  </div>
201
203
 
202
204
  <div class="form-row">
203
- <label for="node-input-pauthorname" style="min-width: 250px;"><i class="fa fa-address-book-o"></i> Package Author Name</label>
205
+ <label for="node-input-pauthorname" style="min-width: 170px;"><i class="fa fa-address-book-o"></i> Package Author Name</label>
204
206
  <input type="text" id="node-input-pauthorname" placeholder="Alfred E. Neumann"/>
205
207
  </div>
206
208
 
207
209
  <div class="form-row">
208
- <label for="node-input-pauthoremail" style="min-width: 250px;"><i class="fa fa-envelope-o"></i> Package Author Email</label>
210
+ <label for="node-input-pauthoremail" style="min-width: 170px;"><i class="fa fa-envelope-o"></i> Package Author Email</label>
209
211
  <input type="text" id="node-input-pauthoremail" placeholder="joe.blog@example.com"/>
210
212
  </div>
211
213
 
212
214
  <div class="form-row">
213
- <label for="node-input-pdescription" style="min-width: 150px;"><i class="fa fa-book"></i> Package Description</label>
215
+ <label for="node-input-pdescription" style="min-width: 170px;"><i class="fa fa-book"></i> Package Description</label>
214
216
  <input type="text" id="node-input-pdescription" placeholder="Package description"/>
215
217
  </div>
216
218
 
219
+ <div class="form-row">
220
+ <label for="node-input-ignore_package_check" style="min-width: 170px;"">
221
+ <span>Ignore package check?</span>
222
+ </label>
223
+ <input type="checkbox" id="node-input-ignore_package_check" style="display:inline-block; width:15px; vertical-align:baseline;">
224
+ </div>
225
+
217
226
  <hr/>
218
227
 
219
228
  <div class="form-row">
@@ -280,8 +280,9 @@ module.exports = function (RED) {
280
280
 
281
281
  function createManifestFiles(msg, node, nodeDefinitions) {
282
282
  var packageJsonPath = path.join(__dirname, 'templates', 'tmplpackage.json');
283
- var readmePath = path.join(__dirname, 'templates', 'tmplreadme.md');
284
- var licensePath = path.join(__dirname, 'templates', 'tmpllicense');
283
+ var readmePath = path.join(__dirname, 'templates', 'tmplreadme.md');
284
+ var licensePath = path.join(__dirname, 'templates', 'tmpllicense');
285
+ var changelogPath = path.join(__dirname, 'templates', 'tmplchangelog.md');
285
286
 
286
287
  /* ASSUMPTION: assume the .js file is defined first and
287
288
  then the .html file in the node definitions */
@@ -294,13 +295,15 @@ module.exports = function (RED) {
294
295
 
295
296
  var promises = [
296
297
  handleTemplate(msg, node, fs.readFileSync(packageJsonPath, 'utf8')).then((c) => { content["pkjs"] = c }),
297
- handleTemplate(msg, node, fs.readFileSync(readmePath, 'utf8')).then((c) => { content["rdme"] = c }),
298
- handleTemplate(msg, node, fs.readFileSync(licensePath, 'utf8')).then((c) => { content["lcns"] = c }),
298
+ handleTemplate(msg, node, fs.readFileSync(readmePath, 'utf8')).then((c) => { content["rdme"] = c }),
299
+ handleTemplate(msg, node, fs.readFileSync(licensePath, 'utf8')).then((c) => { content["lcns"] = c }),
300
+ handleTemplate(msg, node, fs.readFileSync(changelogPath, 'utf8')).then((c) => { content["chlg"] = c }),
299
301
  ];
300
302
 
301
303
  return Promise.all(promises).then( () => {
302
304
  var secondId = RED.util.generateId();
303
305
  var thirdId = RED.util.generateId();
306
+ var fourthId = RED.util.generateId();
304
307
 
305
308
  nodeDefinitions.push({
306
309
  id: RED.util.generateId(),
@@ -312,7 +315,7 @@ module.exports = function (RED) {
312
315
  format: "text",
313
316
  output: "str",
314
317
  x: 100,
315
- y: -100,
318
+ y: -150,
316
319
  wires: [[ secondId ]]
317
320
  })
318
321
 
@@ -326,13 +329,27 @@ module.exports = function (RED) {
326
329
  format: "markdown",
327
330
  output: "str",
328
331
  x: 100,
329
- y: -50,
332
+ y: -100,
330
333
  wires: [[thirdId]]
331
334
  })
332
335
 
333
336
  nodeDefinitions.push({
334
337
  id: thirdId,
335
338
  type: "PkgFile",
339
+ name: "CHANGELOG.md",
340
+ filename: "CHANGELOG.md",
341
+ template: content["chlg"],
342
+ syntax: "mustache",
343
+ format: "markdown",
344
+ output: "str",
345
+ x: 100,
346
+ y: -50,
347
+ wires: [[fourthId]]
348
+ })
349
+
350
+ nodeDefinitions.push({
351
+ id: fourthId,
352
+ type: "PkgFile",
336
353
  name: "package.json",
337
354
  filename: "package.json",
338
355
  template: content["pkjs"],
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+
5
+ ## [0.0.1]
6
+ ### Initial version
7
+
8
+ **Note:** The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "dependencies": {
5
5
  "pako": "latest",
6
6
  "tar-stream": "latest",