@bagisto-headless/create 1.0.5 → 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 +5 -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,12 +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 Bagisto
|
|
110
|
-
{ key: "NEXT_PUBLIC_APP_URL", message: "Enter Your app URL:" },
|
|
111
|
-
{ key: "NEXT_PUBLIC_NEXT_AUTH_URL", message: "Enter Your auth URL:" },
|
|
112
|
-
{ key: "NEXT_PUBLIC_NEXT_AUTH_SECRET", message: "Enter Your auth secret:" },
|
|
107
|
+
constquestions = [
|
|
108
|
+
{ key: "NEXT_PUBLIC_BAGISTO_ENDPOINT", message: "Enter Your Bagisto Shop URL:" },
|
|
113
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:" },
|
|
114
112
|
{ key: "COMPANY_NAME", message: "Enter Your company name:", default: "Webkul Software (Registered in India)" },
|
|
115
113
|
];
|
|
116
114
|
|
|
@@ -186,4 +184,4 @@ async function main() {
|
|
|
186
184
|
main().catch((err) => {
|
|
187
185
|
spinner.fail(chalk.red(`Error: ${err.message}`));
|
|
188
186
|
process.exit(1);
|
|
189
|
-
});
|
|
187
|
+
});
|