@uniformdev/cli 20.43.1-alpha.1 → 20.43.1-alpha.12
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 +25 -8
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -10564,7 +10564,9 @@ 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: [["run", "init"]],
|
|
10569
|
+
installRequiresInput: true
|
|
10568
10570
|
}
|
|
10569
10571
|
},
|
|
10570
10572
|
helloWorld: {
|
|
@@ -10573,7 +10575,12 @@ async function newHandler({
|
|
|
10573
10575
|
githubUri: "uniformdev/examples/examples/nextjs-starter",
|
|
10574
10576
|
serverUrl: "http://localhost:3000",
|
|
10575
10577
|
previewPath: "/api/preview?secret=hello-world",
|
|
10576
|
-
installEnv: []
|
|
10578
|
+
installEnv: [],
|
|
10579
|
+
installCommands: [
|
|
10580
|
+
["run", "uniform:push"],
|
|
10581
|
+
["run", "uniform:publish"]
|
|
10582
|
+
],
|
|
10583
|
+
installRequiresInput: false
|
|
10577
10584
|
}
|
|
10578
10585
|
}
|
|
10579
10586
|
},
|
|
@@ -10584,7 +10591,12 @@ async function newHandler({
|
|
|
10584
10591
|
githubUri: "uniformdev/examples/examples/nuxtjs-starter",
|
|
10585
10592
|
serverUrl: "http://localhost:3000",
|
|
10586
10593
|
previewPath: "/?preview=true",
|
|
10587
|
-
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]]
|
|
10594
|
+
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]],
|
|
10595
|
+
installCommands: [
|
|
10596
|
+
["run", "uniform:push"],
|
|
10597
|
+
["run", "uniform:publish"]
|
|
10598
|
+
],
|
|
10599
|
+
installRequiresInput: false
|
|
10588
10600
|
}
|
|
10589
10601
|
}
|
|
10590
10602
|
}
|
|
@@ -10594,7 +10606,7 @@ async function newHandler({
|
|
|
10594
10606
|
message: `Choose one of the Uniform starters (for ${frontendFramework === "next" ? "Next.JS" : "Nuxt.JS"})`,
|
|
10595
10607
|
choices: Object.values(starters[frontendFramework])
|
|
10596
10608
|
});
|
|
10597
|
-
const { githubUri, serverUrl, previewPath, installEnv } = starter;
|
|
10609
|
+
const { githubUri, serverUrl, previewPath, installEnv, installCommands, installRequiresInput } = starter;
|
|
10598
10610
|
if (process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH) {
|
|
10599
10611
|
console.log(
|
|
10600
10612
|
`Using alternative starter branch for repo ${githubUri}: "${process.env.UNIFORM_ALTERNATIVE_STARTER_BRANCH}"`
|
|
@@ -10644,10 +10656,15 @@ async function newHandler({
|
|
|
10644
10656
|
const installStartTimestamp = Date.now();
|
|
10645
10657
|
await runNpmInstall();
|
|
10646
10658
|
telemetry.send("deps installed", { duration: Date.now() - installStartTimestamp });
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
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();
|
|
10667
|
+
}
|
|
10651
10668
|
telemetry.send("flow finished");
|
|
10652
10669
|
console.log(`
|
|
10653
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.12+4938890373",
|
|
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.12+4938890373",
|
|
32
|
+
"@uniformdev/canvas": "20.43.1-alpha.12+4938890373",
|
|
33
|
+
"@uniformdev/context": "20.43.1-alpha.12+4938890373",
|
|
34
|
+
"@uniformdev/files": "20.43.1-alpha.12+4938890373",
|
|
35
|
+
"@uniformdev/project-map": "20.43.1-alpha.12+4938890373",
|
|
36
|
+
"@uniformdev/redirect": "20.43.1-alpha.12+4938890373",
|
|
37
|
+
"@uniformdev/richtext": "20.43.1-alpha.12+4938890373",
|
|
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": "493889037370a0ac4dd3ef07ee900cad6e2a66e1"
|
|
85
85
|
}
|