free-framework 4.5.1 ā 4.5.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/cli/commands/new.js +10 -4
- package/package.json +1 -1
package/cli/commands/new.js
CHANGED
|
@@ -48,7 +48,13 @@ module.exports = function (name) {
|
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
// Wrap up
|
|
51
|
-
console.log("\n
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
console.log("\nš¦ Installing dependencies... (This may take a minute)");
|
|
52
|
+
try {
|
|
53
|
+
execSync("npm install", { cwd: targetDir, stdio: "inherit" });
|
|
54
|
+
console.log("\nā
Enterprise Project Scaffolded Successfully!");
|
|
55
|
+
console.log(`\nTo get started, run:\n cd ${name}\n free serve\n`);
|
|
56
|
+
} catch (err) {
|
|
57
|
+
console.log("\nā ļø Scaffolding complete, but npm install failed. Please run 'npm install' manually.");
|
|
58
|
+
console.log(`\nTo get started, run:\n cd ${name}\n npm install\n free serve\n`);
|
|
59
|
+
}
|
|
60
|
+
}
|