Skip to content

Commit b9e60da

Browse files
committed
Add new Gatsby template
1 parent 2ce1871 commit b9e60da

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Diff for: catalog.json5

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
{
2-
"js-package-template": {
2+
"js-package": {
33
description: "JS package template",
44
url: "https://github.com/jlyonsmith/js-package-template.git",
55
},
6-
"node-cli-tool-template": {
6+
"node-cli": {
77
description: "Node CLI tool template",
88
url: "https://github.com/jlyonsmith/node-cli-tool-template.git",
99
},
10-
"phaser-template": {
10+
"node-ts-cli": {
11+
description: "Node/TypeScript CLI template",
12+
url: "https://github.com/jlyonsmith/node-ts-cli-template.git",
13+
},
14+
phaser: {
1115
description: "Phaser game template",
1216
url: "https://github.com/jlyonsmith/phaser-template.git",
1317
},
18+
"gatsby-mui": {
19+
description: "Gatsby with Material-UI template",
20+
url: "https://github.com/jlyonsmith/gatsby-mui-template.git",
21+
},
1422
}

Diff for: src/GitExtraTool.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export class GitExtraTool {
5252
this.debug = options.debug
5353
}
5454

55-
async ensureCommands(cmds) {
55+
async ensureCommands(cmds): Promise<void> {
5656
this.cmds = this.cmds || new Set()
5757

5858
const newCmds = cmds.filter((cmd) => !this.cmds.has(cmd))
5959
const exists = await Promise.all(newCmds.map((cmd) => commandExists(cmd)))
6060

6161
newCmds.forEach((cmd) => {
62-
if (!!exists[cmd]) {
62+
if (exists[cmd]) {
6363
throw new Error(`Command '${cmd}' does not exist. Please install it.`)
6464
} else {
6565
this.cmds.add(cmd)

0 commit comments

Comments
 (0)