File tree Expand file tree Collapse file tree 3 files changed +59
-45
lines changed
Expand file tree Collapse file tree 3 files changed +59
-45
lines changed Original file line number Diff line number Diff line change 55 "main" : " src/cli.js" ,
66 "bin" : {
77 "@code-collabo/node-mongo-cli" : " bin/create-node-mongo-project" ,
8- "node-mongo" : " bin/create-node-mongo-project"
8+ "node-mongo" : " bin/create-node-mongo-project" ,
9+ "nmgo" : " bin/create-node-mongo-project"
910 },
1011 "scripts" : {
1112 "prestart" : " node -r esm src/customize/startMessage.js" ,
Original file line number Diff line number Diff line change @@ -6,16 +6,25 @@ console.log(
66Usage:
77node-mongo <folder_name> <template>
88
9+ Usage (for shorter command alternative):
10+ nmgo <folder_name> <template>
11+
912Command:
1013node-mongo
1114
15+ Command (shorter command alternative):
16+ nmgo
17+
1218Arguments:
1319<folder_name> Replace this with your folder name
1420<template> Available templates: ts, esm and cjs
1521
1622Usage example:
1723node-mongo test-folder ts
1824
25+ Usage example (for shorter command alternative):
26+ nmgo test-folder ts
27+
1928The above example bootstraps the ts template i.e.
2029the typescript template into a folder named test-folder.
2130
@@ -48,9 +57,13 @@ folder name used already exists.
4857export const notRecognised = ( ) => {
4958console . log (
5059`
51- Flag(s) not recognised. Use the help command below for more info:
60+ Flag(s) not recognised. Use any of the help command below for more info:
61+
62+ Help command:
63+ node-mongo --help
5264
53- node-mongo --help`
65+ Help command (for shorter command alternative):
66+ nmgo --help`
5467) ;
5568}
5669
You can’t perform that action at this time.
0 commit comments