free-framework 4.5.0 ā 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/bin/free.js +0 -7
- package/cli/commands/new.js +10 -4
- package/package.json +1 -1
package/bin/free.js
CHANGED
|
@@ -161,11 +161,4 @@ program
|
|
|
161
161
|
require("../cli/commands/bench")(options);
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
program
|
|
165
|
-
.command("update")
|
|
166
|
-
.description("Update Free Framework to the latest version")
|
|
167
|
-
.action(() => {
|
|
168
|
-
require("../cli/commands/update")();
|
|
169
|
-
});
|
|
170
|
-
|
|
171
164
|
program.parse(process.argv);
|
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
|
+
}
|