create-prod-backend 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +6 -3
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { execSync } from "child_process";
|
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
|
|
8
|
+
console.log("Welcome to the Express Backend Generator !!");
|
|
8
9
|
|
|
9
10
|
// answer object will have projectName, useMongo, ENV, dependencies, npmi
|
|
10
11
|
// to access these values we can use answer.projectName, answer.useMongo, answer.ENV, answer.dependencies, answer.npmi
|
|
@@ -289,6 +290,7 @@ coverage/
|
|
|
289
290
|
}
|
|
290
291
|
|
|
291
292
|
console.log(`\n${answer.projectName} project created successfully!\n`);
|
|
293
|
+
console.log("Happy coding! :)");
|
|
292
294
|
} catch (error) {
|
|
293
295
|
console.error("Error:", error.message);
|
|
294
296
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-prod-backend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A cli tool to generate a production-ready backend boilerplate with Express.js, MongoDB, and essential features.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-prod-backend": "./index.js"
|
|
8
|
+
},
|
|
6
9
|
"scripts": {
|
|
7
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
11
|
"build": "tsc"
|
|
@@ -13,10 +16,10 @@
|
|
|
13
16
|
"production",
|
|
14
17
|
"generator"
|
|
15
18
|
],
|
|
16
|
-
"author": "
|
|
19
|
+
"author": "codeurge316(@bansalyash)",
|
|
17
20
|
"license": "ISC",
|
|
18
21
|
"type": "module",
|
|
19
22
|
"dependencies": {
|
|
20
23
|
"inquirer": "^13.3.2"
|
|
21
24
|
}
|
|
22
|
-
}
|
|
25
|
+
}
|