@upskale/create-flux 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/index.js +10 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -41,7 +41,10 @@ async function main() {
41
41
  }
42
42
 
43
43
  const cli = require.resolve("@upskale/flux/bin/flux.js");
44
- const made = spawnSync(process.execPath, [cli, "new", name, "--template", template], { stdio: "inherit" });
44
+ const made = spawnSync(process.execPath, [cli, "new", name, "--template", template], {
45
+ stdio: "inherit",
46
+ env: { ...process.env, FLUX_CREATE: "1" },
47
+ });
45
48
  if (made.status !== 0) process.exit(made.status ?? 1);
46
49
 
47
50
  // The project pins the CLI it was made with.
@@ -60,7 +63,12 @@ async function main() {
60
63
  pkg.devDependencies = { ...pkg.devDependencies, "@upskale/flux": "^" + own };
61
64
  writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
62
65
  }
63
- console.log(`\nThen: npm install, and npm run dev.`);
66
+ const steps = [`cd ${name}`, "npm install", template === "app" ? "npx flux build --target flutter" : "npm run dev"];
67
+ console.log(`\nNext:\n\n${steps.map((step) => " " + step).join("\n")}\n`);
68
+ if (template === "app") console.log("Then run the app from dist/flutter: flutter run.\n");
69
+ else console.log("On the page, press E to edit it in place.\n");
70
+ if (template === "store")
71
+ console.log("It runs on sample data until flux.json has your business's API address (providers.upskale.api).\n");
64
72
  }
65
73
 
66
74
  main().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upskale/create-flux",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Start a Flux project: npm create @upskale/flux@latest",
5
5
  "license": "MIT",
6
6
  "homepage": "https://flux.upskalelabs.dev",
@@ -19,6 +19,6 @@
19
19
  "node": ">=18"
20
20
  },
21
21
  "dependencies": {
22
- "@upskale/flux": "0.1.0"
22
+ "@upskale/flux": "0.1.1"
23
23
  }
24
24
  }