create-fullstack-boilerplate 2.1.7 ā 2.1.8
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 +11 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -51,11 +51,20 @@
|
|
|
51
51
|
try {
|
|
52
52
|
console.log("\nšļø Setting Up Full Stack Project...\n");
|
|
53
53
|
|
|
54
|
-
const answers = await mainPrompts();
|
|
54
|
+
const answers = await mainPrompts();
|
|
55
55
|
// const templateDir = path.join(__dirname, "template");
|
|
56
56
|
const targetDir = path.join(process.cwd(), answers.projectName);
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
(async () => {
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
await copyProject(templateDir, targetDir);
|
|
62
|
+
console.log("ā
Project copied successfully");
|
|
63
|
+
} catch (err) {
|
|
64
|
+
console.error("ā Failed to copy project files:", err.message);
|
|
65
|
+
}
|
|
66
|
+
})();
|
|
67
|
+
|
|
59
68
|
await setupMainDB(targetDir, answers.dbDialect);
|
|
60
69
|
console.log("ā”ļø Installing backend dependencies...");
|
|
61
70
|
await runInstall(path.join(targetDir, "Backend"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fullstack-boilerplate",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "A Full Stack Application Comprised of React for Frontend, Express & Sequelize with Node js for Backend to help developers get started on real implementation instead of spending time setting up projects.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|