@uniformdev/cli 20.43.1 → 20.45.1-alpha.0
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 +27 -10
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1124,7 +1124,7 @@ import { PostHog } from "posthog-node";
|
|
|
1124
1124
|
// package.json
|
|
1125
1125
|
var package_default = {
|
|
1126
1126
|
name: "@uniformdev/cli",
|
|
1127
|
-
version: "20.
|
|
1127
|
+
version: "20.45.0",
|
|
1128
1128
|
description: "Uniform command line interface tool",
|
|
1129
1129
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1130
1130
|
main: "./cli.js",
|
|
@@ -10459,7 +10459,7 @@ var runNpm = async (workDir, args, { inherit, env } = {}) => {
|
|
|
10459
10459
|
result = await execa("npm", args, {
|
|
10460
10460
|
cwd: workDir,
|
|
10461
10461
|
env: env ?? {},
|
|
10462
|
-
...inherit ? { stdout: "inherit", stderr: "inherit" } : {}
|
|
10462
|
+
...inherit ? { stdin: "inherit", stdout: "inherit", stderr: "inherit" } : {}
|
|
10463
10463
|
});
|
|
10464
10464
|
} catch (err) {
|
|
10465
10465
|
throw new Error(`Failed to execute npm ${args.join(" ")}
|
|
@@ -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.
|
|
3
|
+
"version": "20.45.1-alpha.0+3f08beecad",
|
|
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.
|
|
32
|
-
"@uniformdev/canvas": "20.
|
|
33
|
-
"@uniformdev/context": "20.
|
|
34
|
-
"@uniformdev/files": "20.
|
|
35
|
-
"@uniformdev/project-map": "20.
|
|
36
|
-
"@uniformdev/redirect": "20.
|
|
37
|
-
"@uniformdev/richtext": "20.
|
|
31
|
+
"@uniformdev/assets": "20.45.1-alpha.0+3f08beecad",
|
|
32
|
+
"@uniformdev/canvas": "20.45.1-alpha.0+3f08beecad",
|
|
33
|
+
"@uniformdev/context": "20.45.1-alpha.0+3f08beecad",
|
|
34
|
+
"@uniformdev/files": "20.45.1-alpha.0+3f08beecad",
|
|
35
|
+
"@uniformdev/project-map": "20.45.1-alpha.0+3f08beecad",
|
|
36
|
+
"@uniformdev/redirect": "20.45.1-alpha.0+3f08beecad",
|
|
37
|
+
"@uniformdev/richtext": "20.45.1-alpha.0+3f08beecad",
|
|
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": "3f08beecadddc06c128a11442f67b434ad219160"
|
|
85
85
|
}
|