node badges are missing descriptions #4871 (#4872)

* fix: node badges are missing descriptions #4871

* fix: node badges are missing descriptions #4871

* fix: node badges are missing descriptions #4871

* Update services/node/node-lts.service.js

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Update services/node/node-current.service.js

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Update services/node/node-base.js

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
This commit is contained in:
Regev Brody
2020-04-06 01:41:06 +03:00
committed by GitHub
parent e57c1625d5
commit 4ee26bfcdb
3 changed files with 19 additions and 0 deletions

View File

@@ -15,6 +15,12 @@ module.exports = class NodeVersionBase extends NPMBase {
static get examples() {
const type = this.type
const documentation = `
<p>
${this.documentation}
The node version support is retrieved from the <code>engines.node</code> section in package.json.
</p>
`
const prefix = `node-${type}`
return [
{
@@ -25,6 +31,7 @@ module.exports = class NodeVersionBase extends NPMBase {
nodeVersionRange: '>= 6.0.0',
}),
keywords,
documentation,
},
{
title: `${prefix} (scoped)`,
@@ -34,6 +41,7 @@ module.exports = class NodeVersionBase extends NPMBase {
nodeVersionRange: '>= 6.0.0',
}),
keywords,
documentation,
},
{
title: `${prefix} (tag)`,
@@ -44,6 +52,7 @@ module.exports = class NodeVersionBase extends NPMBase {
tag: 'latest',
}),
keywords,
documentation,
},
{
title: `${prefix} (scoped with tag)`,
@@ -54,6 +63,7 @@ module.exports = class NodeVersionBase extends NPMBase {
tag: 'latest',
}),
keywords,
documentation,
},
{
title: `${prefix} (scoped with tag, custom registry)`,
@@ -65,6 +75,7 @@ module.exports = class NodeVersionBase extends NPMBase {
tag: 'latest',
}),
keywords,
documentation,
},
]
}