@uniformdev/cli 20.43.1-alpha.11 → 20.43.1-alpha.13
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.mjs +19 -29
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -10565,12 +10565,8 @@ async function newHandler({
|
|
|
10565
10565
|
serverUrl: "http://localhost:3000",
|
|
10566
10566
|
previewPath: "/api/preview?secret=hello-world",
|
|
10567
10567
|
installEnv: [["UNIFORM_PREVIEW_SECRET", "hello-world"]],
|
|
10568
|
-
installCommands: [
|
|
10569
|
-
|
|
10570
|
-
command: ["run", "init"],
|
|
10571
|
-
inheritInput: true
|
|
10572
|
-
}
|
|
10573
|
-
]
|
|
10568
|
+
installCommands: [["run", "init"]],
|
|
10569
|
+
installRequiresInput: true
|
|
10574
10570
|
}
|
|
10575
10571
|
},
|
|
10576
10572
|
helloWorld: {
|
|
@@ -10581,15 +10577,10 @@ async function newHandler({
|
|
|
10581
10577
|
previewPath: "/api/preview?secret=hello-world",
|
|
10582
10578
|
installEnv: [],
|
|
10583
10579
|
installCommands: [
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
{
|
|
10589
|
-
command: ["run", "uniform:publish"],
|
|
10590
|
-
inheritInput: false
|
|
10591
|
-
}
|
|
10592
|
-
]
|
|
10580
|
+
["run", "uniform:push"],
|
|
10581
|
+
["run", "uniform:publish"]
|
|
10582
|
+
],
|
|
10583
|
+
installRequiresInput: false
|
|
10593
10584
|
}
|
|
10594
10585
|
}
|
|
10595
10586
|
},
|
|
@@ -10602,15 +10593,10 @@ async function newHandler({
|
|
|
10602
10593
|
previewPath: "/?preview=true",
|
|
10603
10594
|
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]],
|
|
10604
10595
|
installCommands: [
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
{
|
|
10610
|
-
command: ["run", "uniform:publish"],
|
|
10611
|
-
inheritInput: false
|
|
10612
|
-
}
|
|
10613
|
-
]
|
|
10596
|
+
["run", "uniform:push"],
|
|
10597
|
+
["run", "uniform:publish"]
|
|
10598
|
+
],
|
|
10599
|
+
installRequiresInput: false
|
|
10614
10600
|
}
|
|
10615
10601
|
}
|
|
10616
10602
|
}
|
|
@@ -10620,7 +10606,7 @@ async function newHandler({
|
|
|
10620
10606
|
message: `Choose one of the Uniform starters (for ${frontendFramework === "next" ? "Next.JS" : "Nuxt.JS"})`,
|
|
10621
10607
|
choices: Object.values(starters[frontendFramework])
|
|
10622
10608
|
});
|
|
10623
|
-
const { githubUri, serverUrl, previewPath, installEnv, installCommands } = starter;
|
|
10609
|
+
const { githubUri, serverUrl, previewPath, installEnv, installCommands, installRequiresInput } = starter;
|
|
10624
10610
|
if (process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH) {
|
|
10625
10611
|
console.log(
|
|
10626
10612
|
`Using alternative starter branch for repo ${githubUri}: "${process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH}"`
|
|
@@ -10670,11 +10656,15 @@ async function newHandler({
|
|
|
10670
10656
|
const installStartTimestamp = Date.now();
|
|
10671
10657
|
await runNpmInstall();
|
|
10672
10658
|
telemetry.send("deps installed", { duration: Date.now() - installStartTimestamp });
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10659
|
+
if (!installRequiresInput) {
|
|
10660
|
+
done = await spin("Creating components and compositions");
|
|
10661
|
+
}
|
|
10662
|
+
for (const command of installCommands) {
|
|
10663
|
+
await runNpm(targetDir, command, { inherit: installRequiresInput });
|
|
10664
|
+
}
|
|
10665
|
+
if (!installRequiresInput) {
|
|
10666
|
+
await done();
|
|
10676
10667
|
}
|
|
10677
|
-
await done();
|
|
10678
10668
|
telemetry.send("flow finished");
|
|
10679
10669
|
console.log(`
|
|
10680
10670
|
See your Uniform project and edit compositions by visiting:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.43.1-alpha.
|
|
3
|
+
"version": "20.43.1-alpha.13+b334447bbc",
|
|
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.1-alpha.
|
|
32
|
-
"@uniformdev/canvas": "20.43.1-alpha.
|
|
33
|
-
"@uniformdev/context": "20.43.1-alpha.
|
|
34
|
-
"@uniformdev/files": "20.43.1-alpha.
|
|
35
|
-
"@uniformdev/project-map": "20.43.1-alpha.
|
|
36
|
-
"@uniformdev/redirect": "20.43.1-alpha.
|
|
37
|
-
"@uniformdev/richtext": "20.43.1-alpha.
|
|
31
|
+
"@uniformdev/assets": "20.43.1-alpha.13+b334447bbc",
|
|
32
|
+
"@uniformdev/canvas": "20.43.1-alpha.13+b334447bbc",
|
|
33
|
+
"@uniformdev/context": "20.43.1-alpha.13+b334447bbc",
|
|
34
|
+
"@uniformdev/files": "20.43.1-alpha.13+b334447bbc",
|
|
35
|
+
"@uniformdev/project-map": "20.43.1-alpha.13+b334447bbc",
|
|
36
|
+
"@uniformdev/redirect": "20.43.1-alpha.13+b334447bbc",
|
|
37
|
+
"@uniformdev/richtext": "20.43.1-alpha.13+b334447bbc",
|
|
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": "
|
|
84
|
+
"gitHead": "b334447bbc8603d9f66a3a99011a8a34175be600"
|
|
85
85
|
}
|