create-nyoworks 3.2.0 → 3.2.2

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.
@@ -1,9 +1,7 @@
1
1
  export interface AppDefinition {
2
2
  id: string;
3
3
  name: string;
4
- name_tr: string;
5
4
  description: string;
6
- description_tr: string;
7
5
  platforms: ("web" | "mobile" | "desktop")[];
8
6
  features: string[];
9
7
  integrations: string[];
@@ -27,7 +25,7 @@ export interface AppsConfig {
27
25
  platforms: Record<string, PlatformDefinition>;
28
26
  }
29
27
  export declare function loadAppsConfig(repoDir: string): Promise<AppsConfig>;
30
- export declare function appToPromptChoice(app: AppDefinition, lang?: string): {
28
+ export declare function appToPromptChoice(app: AppDefinition): {
31
29
  title: string;
32
30
  value: string;
33
31
  description: string;
@@ -15,13 +15,11 @@ export async function loadAppsConfig(repoDir) {
15
15
  const content = await fs.readFile(configPath, "utf8");
16
16
  return parse(content);
17
17
  }
18
- export function appToPromptChoice(app, lang = "en") {
19
- const name = lang === "tr" ? app.name_tr : app.name;
20
- const desc = lang === "tr" ? app.description_tr : app.description;
18
+ export function appToPromptChoice(app) {
21
19
  return {
22
- title: name,
20
+ title: app.name,
23
21
  value: app.id,
24
- description: desc,
22
+ description: app.description,
25
23
  };
26
24
  }
27
25
  export function integrationToPromptChoices(integration, integrationId) {
@@ -43,8 +41,8 @@ function formatProviderName(provider) {
43
41
  mollie: "Mollie (iDEAL, Bancontact)",
44
42
  adyen: "Adyen",
45
43
  stripe: "Stripe",
46
- resend: "Resend (3000/ay free)",
47
- brevo: "Brevo (300/gün free)",
44
+ resend: "Resend (3k/mo free)",
45
+ brevo: "Brevo (300/day free)",
48
46
  twilio: "Twilio",
49
47
  plivo: "Plivo",
50
48
  postnl: "PostNL",
package/dist/init.js CHANGED
@@ -24,9 +24,9 @@ const AVAILABLE_PLATFORMS = [
24
24
  { title: "Desktop", value: "desktop", description: "Tauri 2.0" },
25
25
  ];
26
26
  const AVAILABLE_LANGUAGES = [
27
- { title: "Turkish", value: "tr", description: "Türkçe yanıtlar" },
28
- { title: "English", value: "en", description: "English responses" },
29
- { title: "Dutch", value: "nl", description: "Nederlandse antwoorden" },
27
+ { title: "English", value: "en", description: "Default" },
28
+ { title: "Dutch", value: "nl", description: "For NL market" },
29
+ { title: "Turkish", value: "tr", description: "For TR market" },
30
30
  ];
31
31
  const LANGUAGE_RESPONSES = {
32
32
  tr: "Turkish",
@@ -164,16 +164,16 @@ export async function createProject(projectName) {
164
164
  // Multi-Product Selection
165
165
  // ─────────────────────────────────────────────────────────────────────────────
166
166
  const appChoices = config.apps.map((app) => ({
167
- ...appToPromptChoice(app, "tr"),
167
+ ...appToPromptChoice(app),
168
168
  selected: false,
169
169
  }));
170
170
  const productsResponse = await prompts({
171
171
  type: "multiselect",
172
172
  name: "appIds",
173
- message: "Products (birden fazla seçebilirsiniz):",
173
+ message: "Select products:",
174
174
  choices: appChoices,
175
175
  min: 1,
176
- hint: "- Space to select. Return to submit",
176
+ hint: "Space to select, Enter to confirm",
177
177
  instructions: false,
178
178
  });
179
179
  if (!productsResponse.appIds || productsResponse.appIds.length === 0) {
@@ -188,7 +188,7 @@ export async function createProject(projectName) {
188
188
  const productSelections = [];
189
189
  for (const app of selectedApps) {
190
190
  console.log();
191
- console.log(pc.cyan(` ${app.name_tr || app.name} platformları:`));
191
+ console.log(pc.cyan(` ${app.name} platforms:`));
192
192
  const appPlatforms = getAppPlatforms(app);
193
193
  const platformChoices = AVAILABLE_PLATFORMS
194
194
  .filter((p) => appPlatforms.includes(p.value))
@@ -196,10 +196,10 @@ export async function createProject(projectName) {
196
196
  const platformResponse = await prompts({
197
197
  type: "multiselect",
198
198
  name: "platforms",
199
- message: `${app.id} platforms:`,
199
+ message: `${app.name}:`,
200
200
  choices: platformChoices,
201
201
  min: 1,
202
- hint: "- Space to select. Return to submit",
202
+ hint: "Space to select, Enter to confirm",
203
203
  instructions: false,
204
204
  });
205
205
  const platforms = (platformResponse.platforms || ["web"]);
@@ -250,9 +250,9 @@ export async function createProject(projectName) {
250
250
  const additionalResponse = await prompts({
251
251
  type: "multiselect",
252
252
  name: "features",
253
- message: "Ek feature'lar (isteğe bağlı):",
253
+ message: "Additional features (optional):",
254
254
  choices: additionalFeaturesNotInApps,
255
- hint: "- Space to select. Return to submit",
255
+ hint: "Space to select, Enter to confirm",
256
256
  instructions: false,
257
257
  });
258
258
  additionalFeatures = additionalResponse.features || [];
@@ -407,6 +407,7 @@ export async function createProject(projectName) {
407
407
  "${APP_NAME}": primaryApp.name,
408
408
  "${PRODUCT_TYPE}": primaryApp.id,
409
409
  "${RESPONSE_LANGUAGE}": LANGUAGE_RESPONSES[language] || "Turkish",
410
+ "@nyoworks/": `@${slug}/`,
410
411
  };
411
412
  process.stdout.write(pc.dim(" Replacing placeholders..."));
412
413
  await replacePlaceholders(targetDir, placeholders);
@@ -558,7 +559,6 @@ See \`docs/bible/data/schema.md\`
558
559
  function generateAppsConfigYaml(config) {
559
560
  const productsYaml = config.products.map((p) => ` ${p.app.id}:
560
561
  name: "${p.app.name}"
561
- name_tr: "${p.app.name_tr || p.app.name}"
562
562
  platforms:
563
563
  ${p.platforms.map((pl) => ` - ${pl}`).join("\n")}
564
564
  features:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nyoworks",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Create a new NYOWORKS project",
5
5
  "type": "module",
6
6
  "bin": {