create-apexjs 0.1.3 → 0.1.5
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/dist/index.js +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,9 +72,10 @@ var main = defineCommand({
|
|
|
72
72
|
let installed = false;
|
|
73
73
|
if (args.install) {
|
|
74
74
|
console.log(`
|
|
75
|
-
Installing dependencies with ${c.cyan(pm)}\u2026
|
|
75
|
+
Installing dependencies with ${c.cyan(pm)}\u2026 ${c.dim("(first install can take a minute)")}
|
|
76
76
|
`);
|
|
77
|
-
|
|
77
|
+
const installArgs = pm === "npm" ? ["install", "--no-audit", "--no-fund"] : ["install"];
|
|
78
|
+
installed = run(pm, installArgs, target);
|
|
78
79
|
if (!installed) {
|
|
79
80
|
console.log(`
|
|
80
81
|
${c.yellow("\u26A0")} Dependency install failed \u2014 run it yourself after cd'ing in.
|
|
@@ -84,14 +85,16 @@ var main = defineCommand({
|
|
|
84
85
|
const runPrefix = pm === "npm" ? "npm run" : pm;
|
|
85
86
|
const steps = [`cd ${args.dir}`];
|
|
86
87
|
if (!installed) steps.push(pm === "yarn" ? "yarn" : `${pm} install`);
|
|
87
|
-
steps.push(`${runPrefix} dev ${c.dim("# http://localhost:3000")}`);
|
|
88
|
-
steps.push(`${runPrefix} dev:islands ${c.dim("# static-first islands mode")}`);
|
|
88
|
+
steps.push(`${runPrefix} dev ${c.dim("# start the dev server \u2192 http://localhost:3000")}`);
|
|
89
89
|
console.log(`
|
|
90
90
|
${installed ? c.green("Ready.") : "Next steps:"}
|
|
91
91
|
${steps.map((s) => ` ${s}`).join("\n")}
|
|
92
92
|
|
|
93
|
-
${
|
|
94
|
-
|
|
93
|
+
${c.yellow("Run the CLI with:")} ${c.cyan(runPrefix + " dev")} ${c.dim("(or npx apex dev)")}
|
|
94
|
+
A bare ${c.cyan("apex")} won't resolve \u2014 it's a local dependency, like ${c.cyan("next")} or ${c.cyan("vite")}.
|
|
95
|
+
${c.dim("Prefer a global command? ")}${c.cyan("npm i -g @apex-stack/core")}${c.dim(" \u2192 then `apex dev` works anywhere.")}
|
|
96
|
+
${c.dim("Islands mode:")} ${runPrefix} dev:islands
|
|
97
|
+
${gitOk ? c.dim("Git repository initialized. ") : ""}Your server/api/*.ts routes are also MCP tools at /mcp.
|
|
95
98
|
`);
|
|
96
99
|
}
|
|
97
100
|
});
|