@uniformdev/cli 18.27.0 → 18.27.1-alpha.23
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 +71 -21
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -3217,15 +3217,15 @@ var package_default = {
|
|
|
3217
3217
|
graphql: "16.6.0",
|
|
3218
3218
|
"graphql-request": "5.1.0",
|
|
3219
3219
|
"https-proxy-agent": "^5.0.1",
|
|
3220
|
-
inquirer: "9.1.
|
|
3220
|
+
inquirer: "9.1.5",
|
|
3221
3221
|
"isomorphic-git": "1.21.0",
|
|
3222
3222
|
"isomorphic-unfetch": "^3.1.0",
|
|
3223
3223
|
"js-yaml": "^4.1.0",
|
|
3224
3224
|
jsonwebtoken: "9.0.0",
|
|
3225
3225
|
"lodash.isequalwith": "^4.4.0",
|
|
3226
3226
|
open: "8.4.0",
|
|
3227
|
-
ora: "6.
|
|
3228
|
-
"posthog-node": "2.
|
|
3227
|
+
ora: "6.2.0",
|
|
3228
|
+
"posthog-node": "2.6.0",
|
|
3229
3229
|
slugify: "1.6.5",
|
|
3230
3230
|
yargs: "^17.6.2",
|
|
3231
3231
|
zod: "3.21.4"
|
|
@@ -3864,35 +3864,85 @@ async function newHandler({
|
|
|
3864
3864
|
`Hey ${user.name}! Choose a Uniform team for your new project`,
|
|
3865
3865
|
telemetry
|
|
3866
3866
|
);
|
|
3867
|
-
const {
|
|
3868
|
-
starter: { githubUri, serverUrl, previewPath, installEnv }
|
|
3869
|
-
} = await inquirer4.prompt([
|
|
3867
|
+
const { frontendFramework } = await inquirer4.prompt([
|
|
3870
3868
|
{
|
|
3871
3869
|
type: "list",
|
|
3872
|
-
name: "
|
|
3870
|
+
name: "frontendFramework",
|
|
3873
3871
|
message: "Choose your preferred framework",
|
|
3874
3872
|
choices: [
|
|
3875
3873
|
{
|
|
3876
|
-
name: "Next.
|
|
3877
|
-
value:
|
|
3878
|
-
githubUri: "uniformdev/examples/examples/nextjs-starter",
|
|
3879
|
-
serverUrl: "http://localhost:3000",
|
|
3880
|
-
previewPath: "/api/preview?secret=hello-world",
|
|
3881
|
-
installEnv: []
|
|
3882
|
-
}
|
|
3874
|
+
name: "Next.JS",
|
|
3875
|
+
value: "next"
|
|
3883
3876
|
},
|
|
3884
3877
|
{
|
|
3885
|
-
name: "Nuxt.
|
|
3886
|
-
value:
|
|
3887
|
-
githubUri: "uniformdev/examples/examples/nuxtjs-starter",
|
|
3888
|
-
serverUrl: "http://localhost:3000",
|
|
3889
|
-
previewPath: "/?preview=true",
|
|
3890
|
-
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]]
|
|
3891
|
-
}
|
|
3878
|
+
name: "Nuxt.JS",
|
|
3879
|
+
value: "nuxt"
|
|
3892
3880
|
}
|
|
3893
3881
|
]
|
|
3894
3882
|
}
|
|
3895
3883
|
]);
|
|
3884
|
+
telemetry.send("framework picked", { frontendFramework });
|
|
3885
|
+
const starters = {
|
|
3886
|
+
next: {
|
|
3887
|
+
helloWorld: {
|
|
3888
|
+
name: "Hello World (Recommended)",
|
|
3889
|
+
value: {
|
|
3890
|
+
githubUri: "uniformdev/examples/examples/nextjs-starter",
|
|
3891
|
+
serverUrl: "http://localhost:3000",
|
|
3892
|
+
previewPath: "/api/preview?secret=hello-world",
|
|
3893
|
+
installEnv: []
|
|
3894
|
+
}
|
|
3895
|
+
},
|
|
3896
|
+
uniformconf: {
|
|
3897
|
+
name: "Marketing Site Starter",
|
|
3898
|
+
value: {
|
|
3899
|
+
githubUri: "uniformdev/uniformconf",
|
|
3900
|
+
serverUrl: "http://localhost:3000",
|
|
3901
|
+
previewPath: "/api/preview?secret=uniformconf",
|
|
3902
|
+
installEnv: []
|
|
3903
|
+
}
|
|
3904
|
+
},
|
|
3905
|
+
javadrip: {
|
|
3906
|
+
name: "Commerce Starter",
|
|
3907
|
+
value: {
|
|
3908
|
+
githubUri: "uniformdev/commerce-starter",
|
|
3909
|
+
serverUrl: "http://localhost:3000",
|
|
3910
|
+
previewPath: "/api/preview?secret=javadrip",
|
|
3911
|
+
installEnv: []
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
},
|
|
3915
|
+
nuxt: {
|
|
3916
|
+
helloWorld: {
|
|
3917
|
+
name: "Hello World (Recommended)",
|
|
3918
|
+
value: {
|
|
3919
|
+
githubUri: "uniformdev/examples/examples/nuxtjs-starter",
|
|
3920
|
+
serverUrl: "http://localhost:3000",
|
|
3921
|
+
previewPath: "/?preview=true",
|
|
3922
|
+
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]]
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
uniformconf: {
|
|
3926
|
+
name: "Marketing Site Starter",
|
|
3927
|
+
value: {
|
|
3928
|
+
githubUri: "uniformdev/uniformconf-nuxt",
|
|
3929
|
+
serverUrl: "http://localhost:3000",
|
|
3930
|
+
previewPath: "/?preview=true",
|
|
3931
|
+
installEnv: [["NUXT_TELEMETRY_DISABLED", "1"]]
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
};
|
|
3936
|
+
const {
|
|
3937
|
+
starter: { githubUri, serverUrl, previewPath, installEnv }
|
|
3938
|
+
} = await inquirer4.prompt([
|
|
3939
|
+
{
|
|
3940
|
+
type: "list",
|
|
3941
|
+
name: "starter",
|
|
3942
|
+
message: `Choose one of the Uniform starters (for ${frontendFramework === "next" ? "Next.JS" : "Nuxt.JS"})`,
|
|
3943
|
+
choices: Object.values(starters[frontendFramework])
|
|
3944
|
+
}
|
|
3945
|
+
]);
|
|
3896
3946
|
telemetry.send("starter picked", { githubUri });
|
|
3897
3947
|
const { projectId, targetDir } = await getOrCreateProject({
|
|
3898
3948
|
client: uniformClient,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "18.27.
|
|
3
|
+
"version": "18.27.1-alpha.23+ed7d9bfa0",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@uniformdev/canvas": "18.27.
|
|
20
|
-
"@uniformdev/context": "18.27.
|
|
21
|
-
"@uniformdev/project-map": "18.27.
|
|
19
|
+
"@uniformdev/canvas": "18.27.1-alpha.23+ed7d9bfa0",
|
|
20
|
+
"@uniformdev/context": "18.27.1-alpha.23+ed7d9bfa0",
|
|
21
|
+
"@uniformdev/project-map": "18.27.1-alpha.23+ed7d9bfa0",
|
|
22
22
|
"chalk": "^5.2.0",
|
|
23
23
|
"diff": "^5.0.0",
|
|
24
24
|
"dotenv": "^16.0.3",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"graphql": "16.6.0",
|
|
28
28
|
"graphql-request": "5.1.0",
|
|
29
29
|
"https-proxy-agent": "^5.0.1",
|
|
30
|
-
"inquirer": "9.1.
|
|
30
|
+
"inquirer": "9.1.5",
|
|
31
31
|
"isomorphic-git": "1.21.0",
|
|
32
32
|
"isomorphic-unfetch": "^3.1.0",
|
|
33
33
|
"js-yaml": "^4.1.0",
|
|
34
34
|
"jsonwebtoken": "9.0.0",
|
|
35
35
|
"lodash.isequalwith": "^4.4.0",
|
|
36
36
|
"open": "8.4.0",
|
|
37
|
-
"ora": "6.
|
|
38
|
-
"posthog-node": "2.
|
|
37
|
+
"ora": "6.2.0",
|
|
38
|
+
"posthog-node": "2.6.0",
|
|
39
39
|
"slugify": "1.6.5",
|
|
40
40
|
"yargs": "^17.6.2",
|
|
41
41
|
"zod": "3.21.4"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ed7d9bfa014db103691c2d2030b1549770a48d6b"
|
|
63
63
|
}
|