@bagisto-headless/create 1.0.4 → 1.0.6
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/index.js +6 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import figlet from "figlet";
|
|
3
2
|
import gradient from "gradient-string";
|
|
4
3
|
import chalk from "chalk";
|
|
@@ -105,11 +104,11 @@ async function promptEnvVariables(projectName) {
|
|
|
105
104
|
output: process.stdout,
|
|
106
105
|
});
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
{ key: "NEXT_PUBLIC_BAGISTO_ENDPOINT", message: "Enter Your
|
|
110
|
-
{ key: "
|
|
111
|
-
{ key: "NEXT_PUBLIC_NEXT_AUTH_URL", message: "Enter Your
|
|
112
|
-
{ key: "NEXT_PUBLIC_NEXT_AUTH_SECRET", message: "Enter Your
|
|
107
|
+
constquestions = [
|
|
108
|
+
{ key: "NEXT_PUBLIC_BAGISTO_ENDPOINT", message: "Enter Your Bagisto Shop URL:" },
|
|
109
|
+
{ key: "NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY", message: "Enter Your Bagisto Storefront Key:" },
|
|
110
|
+
{ key: "NEXT_PUBLIC_NEXT_AUTH_URL", message: "Enter Your Headless Shop URL:" },
|
|
111
|
+
{ key: "NEXT_PUBLIC_NEXT_AUTH_SECRET", message: "Enter Your Headless Shop Secret:" },
|
|
113
112
|
{ key: "COMPANY_NAME", message: "Enter Your company name:", default: "Webkul Software (Registered in India)" },
|
|
114
113
|
];
|
|
115
114
|
|
|
@@ -185,4 +184,4 @@ async function main() {
|
|
|
185
184
|
main().catch((err) => {
|
|
186
185
|
spinner.fail(chalk.red(`Error: ${err.message}`));
|
|
187
186
|
process.exit(1);
|
|
188
|
-
});
|
|
187
|
+
});
|