Skip to content

Commit eaf8b9a

Browse files
committed
Fix node-mongo words in project
1 parent b49cb65 commit eaf8b9a

File tree

11 files changed

+25
-84
lines changed

11 files changed

+25
-84
lines changed

.all-contributorsrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
]
130130
}
131131
],
132-
"projectName": "node-mongo-cli",
133-
"projectOwner": "code-collabo",
132+
"projectName": "create-collabo-app",
133+
"projectOwner": "collabo-community",
134134
"repoType": "github",
135135
"repoHost": "https://github.com",
136136
"skipCi": true,

.github/ISSUE_TEMPLATE/api-user-error-report.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/cli-user-error-report.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**This pull request makes the following changes:**
2-
* Fixes code-collabo/put-repo-name-where-the-issue-is-located-here#putTheIssueNumberHere
2+
* Fixes collabo-community/put-repo-name-where-the-issue-is-located-here#putTheIssueNumberHere
33

44
**General checklist**
55
- [ ] File or folder now contains changes as specified in the issue i worked on
@@ -9,4 +9,3 @@
99

1010
Replace this text with the testing checklist from the issue this pull request fixes.
1111

12-
Ping @code-collabo/node-mongo-cli

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ main, develop ]
8+
branches: [ develop, main/**, release/** ]
99
pull_request:
10-
branches: [ main, develop ]
10+
branches: [ develop, main/**, release/** ]
1111

1212
jobs:
1313
build:

dev/cleanup.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,13 @@ import { repo } from './developer';
33
const { cwd, chdir } = process;
44
import { success, warning, error, consoleLog } from '../lib/helpers';
55

6-
// -------------------------------------------------------------------------------------------------
7-
// 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...
12-
// -------------------------------------------------------------------------------------------------
13-
146
// cd into repo root
157
chdir('../');
168

179
// use repo root
1810
const rootDir = cwd();
1911

20-
// return all files and folders in repo root i.e. original + node-mongo generated
12+
// return all files and folders in repo root i.e. original + create-collabo-app generated
2113
const repoContent = readdirSync(rootDir, (err, filesAndFolders) => {
2214
if (err) {
2315
throw err;
@@ -45,12 +37,6 @@ if (filterContentToGetTheOnesGeneratedByCLI.length) {
4537
error(err);
4638
}
4739
} 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');
4941
}
5042

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
55-
// solution ending here works fine.
56-
// ------------------------------------

dev/customize/testMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { cyanBrightLog } from '../../lib/helpers';
22

3-
cyanBrightLog('\nnode-mongo-cli: running jasmine tests...\n');
3+
cyanBrightLog('\ncreate-collabo-app: running jasmine tests...\n');

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"repository": {
2323
"type": "git",
24-
"url": "https://github.com/code-collabo/node-mongo-cli.git"
24+
"url": "https://github.com/collabo-community/create-collabo-app.git"
2525
},
2626
"keywords": [
2727
"create",
@@ -49,9 +49,9 @@
4949
"author": "Obiagba Mary",
5050
"license": "AGPL-3.0",
5151
"bugs": {
52-
"url": "https://github.com/code-collabo/node-mongo/issues"
52+
"url": "https://github.com/collabo-community/user-issue-report/issues"
5353
},
54-
"homepage": "https://github.com/code-collabo/node-mongo-cli#readme",
54+
"homepage": "https://github.com/collabo-community/create-collabo-app#readme",
5555
"dependencies": {
5656
"arg": "^5.0.2",
5757
"chalk": "^4.1.0",

src/help.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ export const help = () => {
44
consoleLog(
55
`
66
Usage:
7-
node-mongo <folder_name> <template>
7+
collabo-be <folder_name> <template>
88
99
Usage (for shorter command alternative):
10-
nmgo <folder_name> <template>
10+
c-be <folder_name> <template>
1111
1212
Command:
13-
node-mongo
13+
collabo-be
1414
1515
Command (shorter command alternative):
16-
nmgo
16+
c-be
1717
1818
Arguments:
1919
<folder_name> Replace this with your folder name
2020
<template> Available templates: ts, esm and cjs
2121
2222
Usage example:
23-
node-mongo test-folder ts
23+
collabo-be test-folder ts
2424
2525
Usage example (for shorter command alternative):
26-
nmgo test-folder ts
26+
c-be test-folder ts
2727
2828
The above example bootstraps the ts template i.e.
2929
the typescript template into a folder named test-folder.
@@ -60,20 +60,20 @@ consoleLog(
6060
Flag(s) not recognised. Use any of the help command below for more info:
6161
6262
Help command:
63-
node-mongo --help
63+
collabo-be --help
6464
6565
Help command (for shorter command alternative):
66-
nmgo --help`
66+
c-be --help`
6767
);
6868
}
6969

7070
export const userSupport = () => {
7171
warning(
7272
`
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:
74-
https://github.com/code-collabo/node-mongo-cli/issues/new?assignees=&labels=bug&template=cli-user-error-report.md
73+
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:
74+
https://github.com/collabo-community/user-issue-report/issues
7575
7676
Alternatively, you can download and access the API boilerplate templates from the template's github repo:
77-
https://github.com/code-collabo/node-mongo-api-boilerplate-templates
77+
https://github.com/collabo-community/backend-api-boilerplates
7878
`);
7979
}

src/prompts/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export const templateMissingOptionPrompt = async (options: Ioptions, folderNameA
5050

5151
const notAmongTemplateCollection = equalToAtLeastOneTemplate === false;
5252

53-
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`);
5454

5555
if (!options.template || notAmongTemplateCollection) {
5656
templateQuestions.push({
5757
type: 'list',
5858
name: 'template',
59-
message: 'Please choose which node-mongo API boilerplate template to use',
59+
message: 'Please choose which create-collabo-app API boilerplate template to use',
6060
choices: templateCollection, //uses full names of templates in prompt for better user experience
6161
default: defaultTemplate
6262
});

0 commit comments

Comments
 (0)