You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO 1 (after CLI upgrade): Configure cleanup to run using node-mongo command i.e. "node-mongo cleanup" not "npm run cleanup"
8
-
// TODO 2 (if possible): (I don't think you will need this TODO when this is done using the "node-mongo cleanup" command - or it might need slight modification)
9
-
// update package.json cleanup script dynamically with the cleanup file path.
10
-
// This means you will have to get the cleanup file name/path dynamically too...
11
-
// Or... (instead) should cleanup script be handled a pre-commit hook or pre-push hook or something? - We'll see...
@@ -45,12 +37,6 @@ if (filterContentToGetTheOnesGeneratedByCLI.length) {
45
37
error(err);
46
38
}
47
39
}else{
48
-
warning('ℹ There are no folders to delete yet. Generate folder(s) using the "node-mongo" command, then run the cleanup script after you are done developing, and are ready to add and push your changes/fixes.\n');
40
+
warning('ℹ There are no project folders to delete yet. Generate project folder(s) using the "collabo-be" command, then run the cleanup script after you are done developing, and are ready to add and push your changes/fixes to GitHub.\n');
49
41
}
50
42
51
-
// ------------------------------------
52
-
// TODO: Write another script at the end of this file
53
-
// that updates this repoContent list back when done.
54
-
// Is this TODO even needed? - We'll see. For now the
Copy file name to clipboardExpand all lines: src/help.ts
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,26 @@ export const help = () => {
4
4
consoleLog(
5
5
`
6
6
Usage:
7
-
node-mongo <folder_name> <template>
7
+
collabo-be <folder_name> <template>
8
8
9
9
Usage (for shorter command alternative):
10
-
nmgo <folder_name> <template>
10
+
c-be <folder_name> <template>
11
11
12
12
Command:
13
-
node-mongo
13
+
collabo-be
14
14
15
15
Command (shorter command alternative):
16
-
nmgo
16
+
c-be
17
17
18
18
Arguments:
19
19
<folder_name> Replace this with your folder name
20
20
<template> Available templates: ts, esm and cjs
21
21
22
22
Usage example:
23
-
node-mongo test-folder ts
23
+
collabo-be test-folder ts
24
24
25
25
Usage example (for shorter command alternative):
26
-
nmgo test-folder ts
26
+
c-be test-folder ts
27
27
28
28
The above example bootstraps the ts template i.e.
29
29
the typescript template into a folder named test-folder.
@@ -60,20 +60,20 @@ consoleLog(
60
60
Flag(s) not recognised. Use any of the help command below for more info:
61
61
62
62
Help command:
63
-
node-mongo --help
63
+
collabo-be --help
64
64
65
65
Help command (for shorter command alternative):
66
-
nmgo --help`
66
+
c-be --help`
67
67
);
68
68
}
69
69
70
70
exportconstuserSupport=()=>{
71
71
warning(
72
72
`
73
-
It looks like the node-mongo-cli does not work yet for your computer's operating system. Let us know the issue with the CLI on your computer's operating system by reporting it here:
It looks like the create-collabo-app does not work yet for your computer's operating system. Let us know the issue with the CLI on your computer's operating system by reporting it here:
if(notAmongTemplateCollection&&options.template!==undefined&&!options.skipPrompts)consoleLog(`${redBrightNoConsole(`${options.template}`)} is not in the node-mongo template collection`);
53
+
if(notAmongTemplateCollection&&options.template!==undefined&&!options.skipPrompts)consoleLog(`${redBrightNoConsole(`${options.template}`)} is not in the create-collabo-app backend API template collection`);
0 commit comments