@uniformdev/cli 20.43.0 → 20.43.1-alpha.11

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/dist/index.mjs +33 -6
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -10564,7 +10564,13 @@ async function newHandler({
10564
10564
  githubUri: "uniformdev/component-starter-kit-next-approuter",
10565
10565
  serverUrl: "http://localhost:3000",
10566
10566
  previewPath: "/api/preview?secret=hello-world",
10567
- installEnv: [["UNIFORM_PREVIEW_SECRET", "hello-world"]]
10567
+ installEnv: [["UNIFORM_PREVIEW_SECRET", "hello-world"]],
10568
+ installCommands: [
10569
+ {
10570
+ command: ["run", "init"],
10571
+ inheritInput: true
10572
+ }
10573
+ ]
10568
10574
  }
10569
10575
  },
10570
10576
  helloWorld: {
@@ -10573,7 +10579,17 @@ async function newHandler({
10573
10579
  githubUri: "uniformdev/examples/examples/nextjs-starter",
10574
10580
  serverUrl: "http://localhost:3000",
10575
10581
  previewPath: "/api/preview?secret=hello-world",
10576
- installEnv: []
10582
+ installEnv: [],
10583
+ installCommands: [
10584
+ {
10585
+ command: ["run", "uniform:push"],
10586
+ inheritInput: false
10587
+ },
10588
+ {
10589
+ command: ["run", "uniform:publish"],
10590
+ inheritInput: false
10591
+ }
10592
+ ]
10577
10593
  }
10578
10594
  }
10579
10595
  },
@@ -10584,7 +10600,17 @@ async function newHandler({
10584
10600
  githubUri: "uniformdev/examples/examples/nuxtjs-starter",
10585
10601
  serverUrl: "http://localhost:3000",
10586
10602
  previewPath: "/?preview=true",
10587
- installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]]
10603
+ installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]],
10604
+ installCommands: [
10605
+ {
10606
+ command: ["run", "uniform:push"],
10607
+ inheritInput: false
10608
+ },
10609
+ {
10610
+ command: ["run", "uniform:publish"],
10611
+ inheritInput: false
10612
+ }
10613
+ ]
10588
10614
  }
10589
10615
  }
10590
10616
  }
@@ -10594,7 +10620,7 @@ async function newHandler({
10594
10620
  message: `Choose one of the Uniform starters (for ${frontendFramework === "next" ? "Next.JS" : "Nuxt.JS"})`,
10595
10621
  choices: Object.values(starters[frontendFramework])
10596
10622
  });
10597
- const { githubUri, serverUrl, previewPath, installEnv } = starter;
10623
+ const { githubUri, serverUrl, previewPath, installEnv, installCommands } = starter;
10598
10624
  if (process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH) {
10599
10625
  console.log(
10600
10626
  `Using alternative starter branch for repo ${githubUri}: "${process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH}"`
@@ -10645,8 +10671,9 @@ async function newHandler({
10645
10671
  await runNpmInstall();
10646
10672
  telemetry.send("deps installed", { duration: Date.now() - installStartTimestamp });
10647
10673
  done = await spin("Creating components and compositions");
10648
- await runNpm(targetDir, ["run", "uniform:push"]);
10649
- await runNpm(targetDir, ["run", "uniform:publish"]);
10674
+ for (const { command, inheritInput } of installCommands) {
10675
+ await runNpm(targetDir, command, { inherit: inheritInput });
10676
+ }
10650
10677
  await done();
10651
10678
  telemetry.send("flow finished");
10652
10679
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.43.0",
3
+ "version": "20.43.1-alpha.11+82aa2c4c68",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -28,13 +28,13 @@
28
28
  "dependencies": {
29
29
  "@inquirer/prompts": "^7.10.1",
30
30
  "@thi.ng/mime": "^2.2.23",
31
- "@uniformdev/assets": "20.43.0",
32
- "@uniformdev/canvas": "20.43.0",
33
- "@uniformdev/context": "20.43.0",
34
- "@uniformdev/files": "20.43.0",
35
- "@uniformdev/project-map": "20.43.0",
36
- "@uniformdev/redirect": "20.43.0",
37
- "@uniformdev/richtext": "20.43.0",
31
+ "@uniformdev/assets": "20.43.1-alpha.11+82aa2c4c68",
32
+ "@uniformdev/canvas": "20.43.1-alpha.11+82aa2c4c68",
33
+ "@uniformdev/context": "20.43.1-alpha.11+82aa2c4c68",
34
+ "@uniformdev/files": "20.43.1-alpha.11+82aa2c4c68",
35
+ "@uniformdev/project-map": "20.43.1-alpha.11+82aa2c4c68",
36
+ "@uniformdev/redirect": "20.43.1-alpha.11+82aa2c4c68",
37
+ "@uniformdev/richtext": "20.43.1-alpha.11+82aa2c4c68",
38
38
  "call-bind": "^1.0.2",
39
39
  "colorette": "2.0.20",
40
40
  "cosmiconfig": "9.0.0",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "9a8037f9cd28afa60861e7de0fb8f6153482194f"
84
+ "gitHead": "82aa2c4c6845b034e2bff9acf75d3fe590884ba2"
85
85
  }