4bnode 4.0.6 → 4.0.7
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 +8 -0
- package/package.json +1 -1
- package/skeleton/_gitignore +19 -0
package/index.js
CHANGED
|
@@ -97,6 +97,14 @@ async function createSkeletonApp(projectName) {
|
|
|
97
97
|
}
|
|
98
98
|
copyRecursiveSync(skeletonPath, targetPath);
|
|
99
99
|
updatePackageName(targetPath, projectName);
|
|
100
|
+
|
|
101
|
+
// npm strips .gitignore from published packages — stored as _gitignore and renamed here.
|
|
102
|
+
const gitignoreSrc = path.join(targetPath, "_gitignore");
|
|
103
|
+
const gitignoreDest = path.join(targetPath, ".gitignore");
|
|
104
|
+
if (fs.existsSync(gitignoreSrc)) {
|
|
105
|
+
fs.renameSync(gitignoreSrc, gitignoreDest);
|
|
106
|
+
}
|
|
107
|
+
|
|
100
108
|
scaffoldSpinner.succeed(chalk.hex("#00f260").bold("Project scaffolded"));
|
|
101
109
|
|
|
102
110
|
// Ask for dashboard passkey
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "4bnode",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "4bnode is a CLI-powered backend development platform with a built-in visual dashboard to generate, manage, and test Node.js/Express APIs faster.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|