@pantoken/scaffold 1.1.0 → 1.2.1
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/README.md +10 -3
- package/dist/cli.d.mts +28 -9
- package/dist/cli.mjs +237 -225
- package/dist/{index-CyolWk0E.d.mts → index-BloHpRKt.d.mts} +18 -17
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/src-BTDVd_Xe.mjs +984 -0
- package/package.json +20 -20
- package/dist/src-CdZxIoo2.mjs +0 -304
package/dist/cli.mjs
CHANGED
|
@@ -1,53 +1,11 @@
|
|
|
1
|
-
import { i as scaffoldProject, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS } from "./src-
|
|
1
|
+
import { c as SUPPORTED_LOCALES, d as validateLocaleTag, i as scaffoldProject, l as createLocaleLookup, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS, u as detectLocale } from "./src-BTDVd_Xe.mjs";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { basename, join } from "node:path";
|
|
4
|
-
import { CDN_PROVIDERS } from "@pantoken/canvas-theme-editor";
|
|
5
4
|
import { Argument, Command, CommanderError, InvalidArgumentError } from "commander";
|
|
6
5
|
import { cancel, isCancel, select, spinner, text } from "@clack/prompts";
|
|
7
6
|
import tab from "@bomb.sh/tab/commander";
|
|
8
7
|
import { homedir } from "node:os";
|
|
9
8
|
import { execFileSync } from "node:child_process";
|
|
10
|
-
//#region src/locale.ts
|
|
11
|
-
/**
|
|
12
|
-
* Resolves the active locale: --lang flag \> LC_ALL/LANG env \> Intl \> "en".
|
|
13
|
-
*
|
|
14
|
-
* @param options - Detection options. `langFlag` is an optional --lang flag value; `env` is
|
|
15
|
-
* environment variables (defaults to process.env); `intl` is an optional injected
|
|
16
|
-
* Intl.DateTimeFormat locale function (for testing).
|
|
17
|
-
* @returns The resolved locale tag
|
|
18
|
-
*/
|
|
19
|
-
function detectLocale(options) {
|
|
20
|
-
if (options.langFlag) return options.langFlag;
|
|
21
|
-
const env = options.env ?? process.env;
|
|
22
|
-
const locale = env.LC_ALL ?? env.LANG ?? "";
|
|
23
|
-
if (locale) return locale.split(".")[0].split("_")[0] || "en";
|
|
24
|
-
try {
|
|
25
|
-
const tag = (options.intl ?? (() => Intl.DateTimeFormat().resolvedOptions().locale))();
|
|
26
|
-
if (tag) return tag.split("-")[0] || "en";
|
|
27
|
-
} catch {}
|
|
28
|
-
return "en";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Builds a lookup over the given locale bundles, falling back to `bundles[fallback]`
|
|
32
|
-
* for any key missing in the resolved locale.
|
|
33
|
-
*
|
|
34
|
-
* @param bundles - Record mapping locale tags to string bundles
|
|
35
|
-
* @param resolvedLocale - The locale to use (typically from detectLocale)
|
|
36
|
-
* @param fallback - The fallback locale when a key is missing (default "en")
|
|
37
|
-
* @returns A LocaleLookup object with a `t` function
|
|
38
|
-
*/
|
|
39
|
-
function createLocaleLookup(bundles, resolvedLocale, fallback = "en") {
|
|
40
|
-
const resolved = bundles[resolvedLocale] ?? bundles[fallback] ?? {};
|
|
41
|
-
const fallbackBundle = bundles[fallback] ?? {};
|
|
42
|
-
return {
|
|
43
|
-
locale: resolvedLocale,
|
|
44
|
-
t: (key, params) => {
|
|
45
|
-
let value = resolved[key] ?? fallbackBundle[key] ?? key;
|
|
46
|
-
if (params) for (const [param, val] of Object.entries(params)) value = value.replace(new RegExp(`\\{\\{${param}\\}\\}`, "g"), val);
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
9
|
//#endregion
|
|
52
10
|
//#region generated/locales/index.ts
|
|
53
11
|
const MESSAGES = {
|
|
@@ -61,10 +19,10 @@ const MESSAGES = {
|
|
|
61
19
|
"nextStepsNav": "cd {{dir}}",
|
|
62
20
|
"nextStepsInstall": "تثبيت التبعيات: {{command}}",
|
|
63
21
|
"nextStepsDevServer": "شغّل خادم التطوير (إذا كان القالب يحتوي واحدًا)",
|
|
64
|
-
"getStartedHeading": "
|
|
65
|
-
"installSpinnerStart": "
|
|
66
|
-
"installSpinnerStop": "
|
|
67
|
-
"installSpinnerFailed": "
|
|
22
|
+
"getStartedHeading": "الخطوات التالية:",
|
|
23
|
+
"installSpinnerStart": "تثبيت التبعيات: {{command}}",
|
|
24
|
+
"installSpinnerStop": "تم تثبيت التبعيات.",
|
|
25
|
+
"installSpinnerFailed": "تثبيت التبعيات: {{command}}",
|
|
68
26
|
"notesHeading": "ملاحظة:",
|
|
69
27
|
"caveatsHeading": "تنبيه:",
|
|
70
28
|
"errorMissingPlatform": "الوسيط المطلوب \"platform\" مفقود. متوقع أحد القيم: {{platforms}}",
|
|
@@ -119,10 +77,10 @@ const MESSAGES = {
|
|
|
119
77
|
"nextStepsNav": "cd {{dir}}",
|
|
120
78
|
"nextStepsInstall": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
121
79
|
"nextStepsDevServer": "Ստարտ վարել dev սերվերը (եթե ձեր տեմպլեյթը ունի մեկը)",
|
|
122
|
-
"getStartedHeading": "
|
|
123
|
-
"installSpinnerStart": "
|
|
124
|
-
"installSpinnerStop": "
|
|
125
|
-
"installSpinnerFailed": "
|
|
80
|
+
"getStartedHeading": "Հաջորդ քայլերը:",
|
|
81
|
+
"installSpinnerStart": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
82
|
+
"installSpinnerStop": "Կախվածությունները տեղադրված են.",
|
|
83
|
+
"installSpinnerFailed": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
126
84
|
"notesHeading": "Նշում:",
|
|
127
85
|
"caveatsHeading": "Ուշադրություն:",
|
|
128
86
|
"errorMissingPlatform": "Բացակայում է պարտադիր արգումենտը \"platform\". Ապահովված լիներ այս մեկը՝ {{platforms}}",
|
|
@@ -177,10 +135,10 @@ const MESSAGES = {
|
|
|
177
135
|
"nextStepsNav": "cd {{dir}}",
|
|
178
136
|
"nextStepsInstall": "Instal·la les dependències: {{command}}",
|
|
179
137
|
"nextStepsDevServer": "Inicia el servidor de desenvolupament (si la plantilla en té un)",
|
|
180
|
-
"getStartedHeading": "
|
|
181
|
-
"installSpinnerStart": "
|
|
182
|
-
"installSpinnerStop": "
|
|
183
|
-
"installSpinnerFailed": "
|
|
138
|
+
"getStartedHeading": "Passos següents:",
|
|
139
|
+
"installSpinnerStart": "Instal·la les dependències: {{command}}",
|
|
140
|
+
"installSpinnerStop": "Dependències instal·lades.",
|
|
141
|
+
"installSpinnerFailed": "Instal·la les dependències: {{command}}",
|
|
184
142
|
"notesHeading": "Nota:",
|
|
185
143
|
"caveatsHeading": "Advertència:",
|
|
186
144
|
"errorMissingPlatform": "Falta l'argument obligatori \"platform\". S'esperava un de: {{platforms}}",
|
|
@@ -235,10 +193,10 @@ const MESSAGES = {
|
|
|
235
193
|
"nextStepsNav": "cd {{dir}}",
|
|
236
194
|
"nextStepsInstall": "Installer afhængigheder: {{command}}",
|
|
237
195
|
"nextStepsDevServer": "Start dev-serveren (hvis din skabelon har en)",
|
|
238
|
-
"getStartedHeading": "
|
|
239
|
-
"installSpinnerStart": "
|
|
240
|
-
"installSpinnerStop": "
|
|
241
|
-
"installSpinnerFailed": "
|
|
196
|
+
"getStartedHeading": "Næste skridt:",
|
|
197
|
+
"installSpinnerStart": "Installer afhængigheder: {{command}}",
|
|
198
|
+
"installSpinnerStop": "Afhængigheder installeret.",
|
|
199
|
+
"installSpinnerFailed": "Installer afhængigheder: {{command}}",
|
|
242
200
|
"notesHeading": "Bemærk:",
|
|
243
201
|
"caveatsHeading": "Forbehold:",
|
|
244
202
|
"errorMissingPlatform": "Mangler krævet argument \"platform\". Forventet en af: {{platforms}}",
|
|
@@ -293,10 +251,10 @@ const MESSAGES = {
|
|
|
293
251
|
"nextStepsNav": "cd {{dir}}",
|
|
294
252
|
"nextStepsInstall": "Installeer afhankelijkheden: {{command}}",
|
|
295
253
|
"nextStepsDevServer": "Start de dev-server (als je template er één heeft)",
|
|
296
|
-
"getStartedHeading": "
|
|
297
|
-
"installSpinnerStart": "
|
|
298
|
-
"installSpinnerStop": "
|
|
299
|
-
"installSpinnerFailed": "
|
|
254
|
+
"getStartedHeading": "Volgende stappen:",
|
|
255
|
+
"installSpinnerStart": "Installeer afhankelijkheden: {{command}}",
|
|
256
|
+
"installSpinnerStop": "Afhankelijkheden geïnstalleerd.",
|
|
257
|
+
"installSpinnerFailed": "Installeer afhankelijkheden: {{command}}",
|
|
300
258
|
"notesHeading": "Opmerking:",
|
|
301
259
|
"caveatsHeading": "Opmerking / waarschuwing:",
|
|
302
260
|
"errorMissingPlatform": "Ontbrekend verplicht argument \"platform\". Verwacht één van: {{platforms}}",
|
|
@@ -351,10 +309,10 @@ const MESSAGES = {
|
|
|
351
309
|
"nextStepsNav": "cd {{dir}}",
|
|
352
310
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
353
311
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
354
|
-
"getStartedHeading": "
|
|
355
|
-
"installSpinnerStart": "
|
|
312
|
+
"getStartedHeading": "Next steps:",
|
|
313
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
356
314
|
"installSpinnerStop": "Dependencies installed.",
|
|
357
|
-
"installSpinnerFailed": "
|
|
315
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
358
316
|
"notesHeading": "Note:",
|
|
359
317
|
"caveatsHeading": "Caveat:",
|
|
360
318
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -409,10 +367,10 @@ const MESSAGES = {
|
|
|
409
367
|
"nextStepsNav": "cd {{dir}}",
|
|
410
368
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
411
369
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
412
|
-
"getStartedHeading": "
|
|
413
|
-
"installSpinnerStart": "
|
|
370
|
+
"getStartedHeading": "Next steps:",
|
|
371
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
414
372
|
"installSpinnerStop": "Dependencies installed.",
|
|
415
|
-
"installSpinnerFailed": "
|
|
373
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
416
374
|
"notesHeading": "Note:",
|
|
417
375
|
"caveatsHeading": "Caveat:",
|
|
418
376
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -467,10 +425,10 @@ const MESSAGES = {
|
|
|
467
425
|
"nextStepsNav": "cd {{dir}}",
|
|
468
426
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
469
427
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
470
|
-
"getStartedHeading": "
|
|
471
|
-
"installSpinnerStart": "
|
|
428
|
+
"getStartedHeading": "Next steps:",
|
|
429
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
472
430
|
"installSpinnerStop": "Dependencies installed.",
|
|
473
|
-
"installSpinnerFailed": "
|
|
431
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
474
432
|
"notesHeading": "Note:",
|
|
475
433
|
"caveatsHeading": "Caveat:",
|
|
476
434
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -525,10 +483,10 @@ const MESSAGES = {
|
|
|
525
483
|
"nextStepsNav": "cd {{dir}}",
|
|
526
484
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
527
485
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
528
|
-
"getStartedHeading": "
|
|
529
|
-
"installSpinnerStart": "Installing dependencies
|
|
486
|
+
"getStartedHeading": "Next steps:",
|
|
487
|
+
"installSpinnerStart": "2. Installing dependencies",
|
|
530
488
|
"installSpinnerStop": "Dependencies installed.",
|
|
531
|
-
"installSpinnerFailed": "
|
|
489
|
+
"installSpinnerFailed": "2. Installing dependencies",
|
|
532
490
|
"notesHeading": "Note:",
|
|
533
491
|
"caveatsHeading": "Caveat:",
|
|
534
492
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -583,10 +541,10 @@ const MESSAGES = {
|
|
|
583
541
|
"nextStepsNav": "cd {{dir}}",
|
|
584
542
|
"nextStepsInstall": "Asenna riippuvuudet: {{command}}",
|
|
585
543
|
"nextStepsDevServer": "Käynnistä kehityspalvelin (jos mallissasi on)",
|
|
586
|
-
"getStartedHeading": "
|
|
587
|
-
"installSpinnerStart": "
|
|
588
|
-
"installSpinnerStop": "
|
|
589
|
-
"installSpinnerFailed": "
|
|
544
|
+
"getStartedHeading": "Seuraavat vaiheet:",
|
|
545
|
+
"installSpinnerStart": "Asenna riippuvuudet: {{command}}",
|
|
546
|
+
"installSpinnerStop": "Riippuvuudet asennettu.",
|
|
547
|
+
"installSpinnerFailed": "Asenna riippuvuudet: {{command}}",
|
|
590
548
|
"notesHeading": "Huom:",
|
|
591
549
|
"caveatsHeading": "Varoitus:",
|
|
592
550
|
"errorMissingPlatform": "Puuttuu vaadittu argumentti \"platform\". Odotettu yksi seuraavista: {{platforms}}",
|
|
@@ -641,10 +599,10 @@ const MESSAGES = {
|
|
|
641
599
|
"nextStepsNav": "cd {{dir}}",
|
|
642
600
|
"nextStepsInstall": "Installer les dépendances : {{command}}",
|
|
643
601
|
"nextStepsDevServer": "Démarrer le serveur de développement (si votre modèle en propose un)",
|
|
644
|
-
"getStartedHeading": "
|
|
645
|
-
"installSpinnerStart": "
|
|
646
|
-
"installSpinnerStop": "
|
|
647
|
-
"installSpinnerFailed": "
|
|
602
|
+
"getStartedHeading": "Étapes suivantes :",
|
|
603
|
+
"installSpinnerStart": "Installer les dépendances : {{command}}",
|
|
604
|
+
"installSpinnerStop": "Dépendances installées.",
|
|
605
|
+
"installSpinnerFailed": "Installer les dépendances : {{command}}",
|
|
648
606
|
"notesHeading": "Remarque :",
|
|
649
607
|
"caveatsHeading": "Précaution :",
|
|
650
608
|
"errorMissingPlatform": "Argument requis manquant \"platform\". Attendu : l'un des suivants : {{platforms}}",
|
|
@@ -699,10 +657,10 @@ const MESSAGES = {
|
|
|
699
657
|
"nextStepsNav": "cd {{dir}}",
|
|
700
658
|
"nextStepsInstall": "Installer les dépendances : {{command}}",
|
|
701
659
|
"nextStepsDevServer": "Démarrer le serveur de développement (si votre modèle en fournit un)",
|
|
702
|
-
"getStartedHeading": "
|
|
703
|
-
"installSpinnerStart": "
|
|
704
|
-
"installSpinnerStop": "
|
|
705
|
-
"installSpinnerFailed": "
|
|
660
|
+
"getStartedHeading": "Étapes suivantes :",
|
|
661
|
+
"installSpinnerStart": "Installer les dépendances : {{command}}",
|
|
662
|
+
"installSpinnerStop": "Dépendances installées.",
|
|
663
|
+
"installSpinnerFailed": "Installer les dépendances : {{command}}",
|
|
706
664
|
"notesHeading": "Remarque :",
|
|
707
665
|
"caveatsHeading": "Précaution :",
|
|
708
666
|
"errorMissingPlatform": "Argument requis manquant \"platform\". Attendu : l'un de : {{platforms}}",
|
|
@@ -757,10 +715,10 @@ const MESSAGES = {
|
|
|
757
715
|
"nextStepsNav": "cd {{dir}}",
|
|
758
716
|
"nextStepsInstall": "Suiteáil spleáchais: {{command}}",
|
|
759
717
|
"nextStepsDevServer": "Tosaigh an freastalaí forbartha (má tá ceann sa téama agat)",
|
|
760
|
-
"getStartedHeading": "
|
|
761
|
-
"installSpinnerStart": "
|
|
762
|
-
"installSpinnerStop": "
|
|
763
|
-
"installSpinnerFailed": "
|
|
718
|
+
"getStartedHeading": "Céimeanna eile:",
|
|
719
|
+
"installSpinnerStart": "Suiteáil spleáchais: {{command}}",
|
|
720
|
+
"installSpinnerStop": "Spleáchais suiteáilte.",
|
|
721
|
+
"installSpinnerFailed": "Suiteáil spleáchais: {{command}}",
|
|
764
722
|
"notesHeading": "Nóta:",
|
|
765
723
|
"caveatsHeading": "Rabhadh:",
|
|
766
724
|
"errorMissingPlatform": "Easpa argóint riachtanach \"platform\". Bhíothas ag súil le ceann de: {{platforms}}",
|
|
@@ -815,10 +773,10 @@ const MESSAGES = {
|
|
|
815
773
|
"nextStepsNav": "cd {{dir}}",
|
|
816
774
|
"nextStepsInstall": "Abhängigkeiten installieren: {{command}}",
|
|
817
775
|
"nextStepsDevServer": "Entwicklungsserver starten (falls die Vorlage einen enthält)",
|
|
818
|
-
"getStartedHeading": "
|
|
819
|
-
"installSpinnerStart": "
|
|
820
|
-
"installSpinnerStop": "
|
|
821
|
-
"installSpinnerFailed": "
|
|
776
|
+
"getStartedHeading": "Nächste Schritte:",
|
|
777
|
+
"installSpinnerStart": "Abhängigkeiten installieren: {{command}}",
|
|
778
|
+
"installSpinnerStop": "Abhängigkeiten installiert.",
|
|
779
|
+
"installSpinnerFailed": "Abhängigkeiten installieren: {{command}}",
|
|
822
780
|
"notesHeading": "Hinweis:",
|
|
823
781
|
"caveatsHeading": "Einschränkung:",
|
|
824
782
|
"errorMissingPlatform": "Fehlendes erforderliches Argument \"platform\". Erwartet eines von: {{platforms}}",
|
|
@@ -873,10 +831,10 @@ const MESSAGES = {
|
|
|
873
831
|
"nextStepsNav": "cd {{dir}}",
|
|
874
832
|
"nextStepsInstall": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
875
833
|
"nextStepsDevServer": "Εκκίνηση του dev server (αν το πρότυπό σας έχει έναν)",
|
|
876
|
-
"getStartedHeading": "
|
|
877
|
-
"installSpinnerStart": "
|
|
878
|
-
"installSpinnerStop": "
|
|
879
|
-
"installSpinnerFailed": "
|
|
834
|
+
"getStartedHeading": "Επόμενα βήματα:",
|
|
835
|
+
"installSpinnerStart": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
836
|
+
"installSpinnerStop": "Εγκαταστάθηκαν οι εξαρτήσεις.",
|
|
837
|
+
"installSpinnerFailed": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
880
838
|
"notesHeading": "Σημείωση:",
|
|
881
839
|
"caveatsHeading": "Προειδοποίηση:",
|
|
882
840
|
"errorMissingPlatform": "Λείπει η απαιτούμενη παράμετρος \"platform\". Αναμένονται μία από: {{platforms}}",
|
|
@@ -931,10 +889,10 @@ const MESSAGES = {
|
|
|
931
889
|
"nextStepsNav": "cd {{dir}}",
|
|
932
890
|
"nextStepsInstall": "Enstale depandans: {{command}}",
|
|
933
891
|
"nextStepsDevServer": "Kòmanse sèvè dev (si modèl ou a gen youn)",
|
|
934
|
-
"getStartedHeading": "
|
|
935
|
-
"installSpinnerStart": "
|
|
936
|
-
"installSpinnerStop": "
|
|
937
|
-
"installSpinnerFailed": "
|
|
892
|
+
"getStartedHeading": "Pwochèn etap:",
|
|
893
|
+
"installSpinnerStart": "Enstale depandans: {{command}}",
|
|
894
|
+
"installSpinnerStop": "Depandans enstale.",
|
|
895
|
+
"installSpinnerFailed": "Enstale depandans: {{command}}",
|
|
938
896
|
"notesHeading": "Remak:",
|
|
939
897
|
"caveatsHeading": "Avètisman:",
|
|
940
898
|
"errorMissingPlatform": "Agiman obligatwa \"platform\" manke. Atann youn nan: {{platforms}}",
|
|
@@ -989,10 +947,10 @@ const MESSAGES = {
|
|
|
989
947
|
"nextStepsNav": "cd {{dir}}",
|
|
990
948
|
"nextStepsInstall": "התקן תלותים: {{command}}",
|
|
991
949
|
"nextStepsDevServer": "הפעל את שרת הפיתוח (אם התבנית שלך כוללת אחד)",
|
|
992
|
-
"getStartedHeading": "
|
|
993
|
-
"installSpinnerStart": "
|
|
994
|
-
"installSpinnerStop": "
|
|
995
|
-
"installSpinnerFailed": "
|
|
950
|
+
"getStartedHeading": "שלבים הבאים:",
|
|
951
|
+
"installSpinnerStart": "התקן תלותים: {{command}}",
|
|
952
|
+
"installSpinnerStop": "התלויות הותקנו.",
|
|
953
|
+
"installSpinnerFailed": "התקן תלותים: {{command}}",
|
|
996
954
|
"notesHeading": "הערה:",
|
|
997
955
|
"caveatsHeading": "אזהרה:",
|
|
998
956
|
"errorMissingPlatform": "חסר ארגומנט דרוש \"platform\". צפוי אחד מ: {{platforms}}",
|
|
@@ -1047,10 +1005,10 @@ const MESSAGES = {
|
|
|
1047
1005
|
"nextStepsNav": "cd {{dir}}",
|
|
1048
1006
|
"nextStepsInstall": "निर्भरता स्थापित करें: {{command}}",
|
|
1049
1007
|
"nextStepsDevServer": "डेव सर्वर शुरू करें (यदि आपके टेम्पलेट में है)",
|
|
1050
|
-
"getStartedHeading": "
|
|
1051
|
-
"installSpinnerStart": "
|
|
1052
|
-
"installSpinnerStop": "
|
|
1053
|
-
"installSpinnerFailed": "
|
|
1008
|
+
"getStartedHeading": "अगले चरण:",
|
|
1009
|
+
"installSpinnerStart": "निर्भरता स्थापित करें: {{command}}",
|
|
1010
|
+
"installSpinnerStop": "निर्भरता स्थापित की गईं.",
|
|
1011
|
+
"installSpinnerFailed": "निर्भरता स्थापित करें: {{command}}",
|
|
1054
1012
|
"notesHeading": "नोट:",
|
|
1055
1013
|
"caveatsHeading": "ध्यान दें:",
|
|
1056
1014
|
"errorMissingPlatform": "आवश्यक तर्क \"platform\" गायब है। अपेक्षित में से एक: {{platforms}}",
|
|
@@ -1163,10 +1121,10 @@ const MESSAGES = {
|
|
|
1163
1121
|
"nextStepsNav": "cd {{dir}}",
|
|
1164
1122
|
"nextStepsInstall": "Settu upp háður: {{command}}",
|
|
1165
1123
|
"nextStepsDevServer": "Ræstu þróunarþjóninn (ef sniðmátið inniheldur einn)",
|
|
1166
|
-
"getStartedHeading": "
|
|
1167
|
-
"installSpinnerStart": "
|
|
1168
|
-
"installSpinnerStop": "
|
|
1169
|
-
"installSpinnerFailed": "
|
|
1124
|
+
"getStartedHeading": "Næstu skref:",
|
|
1125
|
+
"installSpinnerStart": "Settu upp háður: {{command}}",
|
|
1126
|
+
"installSpinnerStop": "Háðir pakkar uppsettir.",
|
|
1127
|
+
"installSpinnerFailed": "Settu upp háður: {{command}}",
|
|
1170
1128
|
"notesHeading": "Athugið:",
|
|
1171
1129
|
"caveatsHeading": "Ábending:",
|
|
1172
1130
|
"errorMissingPlatform": "Vantar nauðsynlegt rök \"platform\". Búist var við einu af: {{platforms}}",
|
|
@@ -1221,10 +1179,10 @@ const MESSAGES = {
|
|
|
1221
1179
|
"nextStepsNav": "cd {{dir}}",
|
|
1222
1180
|
"nextStepsInstall": "Pasang dependensi: {{command}}",
|
|
1223
1181
|
"nextStepsDevServer": "Jalankan server pengembangan (jika template Anda memilikinya)",
|
|
1224
|
-
"getStartedHeading": "
|
|
1225
|
-
"installSpinnerStart": "
|
|
1226
|
-
"installSpinnerStop": "
|
|
1227
|
-
"installSpinnerFailed": "
|
|
1182
|
+
"getStartedHeading": "Langkah selanjutnya:",
|
|
1183
|
+
"installSpinnerStart": "Pasang dependensi: {{command}}",
|
|
1184
|
+
"installSpinnerStop": "Dependensi terpasang.",
|
|
1185
|
+
"installSpinnerFailed": "Pasang dependensi: {{command}}",
|
|
1228
1186
|
"notesHeading": "Catatan:",
|
|
1229
1187
|
"caveatsHeading": "Peringatan:",
|
|
1230
1188
|
"errorMissingPlatform": "Argumen wajib \"platform\" hilang. Diharapkan salah satu: {{platforms}}",
|
|
@@ -1279,10 +1237,10 @@ const MESSAGES = {
|
|
|
1279
1237
|
"nextStepsNav": "cd {{dir}}",
|
|
1280
1238
|
"nextStepsInstall": "Installa le dipendenze: {{command}}",
|
|
1281
1239
|
"nextStepsDevServer": "Avvia il server di sviluppo (se il template ne prevede uno)",
|
|
1282
|
-
"getStartedHeading": "
|
|
1283
|
-
"installSpinnerStart": "
|
|
1284
|
-
"installSpinnerStop": "
|
|
1285
|
-
"installSpinnerFailed": "
|
|
1240
|
+
"getStartedHeading": "Prossimi passi:",
|
|
1241
|
+
"installSpinnerStart": "Installa le dipendenze: {{command}}",
|
|
1242
|
+
"installSpinnerStop": "Dipendenze installate.",
|
|
1243
|
+
"installSpinnerFailed": "Installa le dipendenze: {{command}}",
|
|
1286
1244
|
"notesHeading": "Nota:",
|
|
1287
1245
|
"caveatsHeading": "Avvertenza:",
|
|
1288
1246
|
"errorMissingPlatform": "Argomento obbligatorio mancante \"platform\". Atteso uno dei seguenti: {{platforms}}",
|
|
@@ -1337,10 +1295,10 @@ const MESSAGES = {
|
|
|
1337
1295
|
"nextStepsNav": "cd {{dir}}",
|
|
1338
1296
|
"nextStepsInstall": "依存関係をインストール: {{command}}",
|
|
1339
1297
|
"nextStepsDevServer": "開発サーバーを起動(テンプレートにある場合)",
|
|
1340
|
-
"getStartedHeading": "
|
|
1341
|
-
"installSpinnerStart": "
|
|
1342
|
-
"installSpinnerStop": "
|
|
1343
|
-
"installSpinnerFailed": "
|
|
1298
|
+
"getStartedHeading": "次の手順:",
|
|
1299
|
+
"installSpinnerStart": "依存関係をインストール: {{command}}",
|
|
1300
|
+
"installSpinnerStop": "依存関係がインストールされました。",
|
|
1301
|
+
"installSpinnerFailed": "依存関係をインストール: {{command}}",
|
|
1344
1302
|
"notesHeading": "注意:",
|
|
1345
1303
|
"caveatsHeading": "留意事項:",
|
|
1346
1304
|
"errorMissingPlatform": "必須引数 \"platform\" がありません。予期される値: {{platforms}}",
|
|
@@ -1395,10 +1353,10 @@ const MESSAGES = {
|
|
|
1395
1353
|
"nextStepsNav": "cd {{dir}}",
|
|
1396
1354
|
"nextStepsInstall": "의존성 설치: {{command}}",
|
|
1397
1355
|
"nextStepsDevServer": "개발 서버 시작 (템플릿에 해당 기능이 있는 경우)",
|
|
1398
|
-
"getStartedHeading": "
|
|
1399
|
-
"installSpinnerStart": "
|
|
1400
|
-
"installSpinnerStop": "
|
|
1401
|
-
"installSpinnerFailed": "
|
|
1356
|
+
"getStartedHeading": "다음 단계:",
|
|
1357
|
+
"installSpinnerStart": "의존성 설치: {{command}}",
|
|
1358
|
+
"installSpinnerStop": "종속성이 설치되었습니다.",
|
|
1359
|
+
"installSpinnerFailed": "의존성 설치: {{command}}",
|
|
1402
1360
|
"notesHeading": "참고:",
|
|
1403
1361
|
"caveatsHeading": "주의:",
|
|
1404
1362
|
"errorMissingPlatform": "필수 인수 \"platform\" 누락. 다음 중 하나여야 합니다: {{platforms}}",
|
|
@@ -1453,10 +1411,10 @@ const MESSAGES = {
|
|
|
1453
1411
|
"nextStepsNav": "cd {{dir}}",
|
|
1454
1412
|
"nextStepsInstall": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1455
1413
|
"nextStepsDevServer": "Tīmatahia te tūmau whakawhanake (mēnā kei tō tauira)",
|
|
1456
|
-
"getStartedHeading": "
|
|
1457
|
-
"installSpinnerStart": "
|
|
1458
|
-
"installSpinnerStop": "
|
|
1459
|
-
"installSpinnerFailed": "
|
|
1414
|
+
"getStartedHeading": "Hipanga e whai ake:",
|
|
1415
|
+
"installSpinnerStart": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1416
|
+
"installSpinnerStop": "Kua tāuta ngā whakawhirinaki.",
|
|
1417
|
+
"installSpinnerFailed": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1460
1418
|
"notesHeading": "Tuhipoka:",
|
|
1461
1419
|
"caveatsHeading": "Whakatūpato:",
|
|
1462
1420
|
"errorMissingPlatform": "Kua ngaro te kupu whakahau hiahia \"platform\". Me kotahi o ēnei: {{platforms}}",
|
|
@@ -1511,10 +1469,10 @@ const MESSAGES = {
|
|
|
1511
1469
|
"nextStepsNav": "cd {{dir}}",
|
|
1512
1470
|
"nextStepsInstall": "Pasang kebergantungan: {{command}}",
|
|
1513
1471
|
"nextStepsDevServer": "Mulakan pelayan pembangunan (jika templat anda mempunyainya)",
|
|
1514
|
-
"getStartedHeading": "
|
|
1515
|
-
"installSpinnerStart": "
|
|
1516
|
-
"installSpinnerStop": "
|
|
1517
|
-
"installSpinnerFailed": "
|
|
1472
|
+
"getStartedHeading": "Langkah seterusnya:",
|
|
1473
|
+
"installSpinnerStart": "Pasang kebergantungan: {{command}}",
|
|
1474
|
+
"installSpinnerStop": "Kebergantungan dipasang.",
|
|
1475
|
+
"installSpinnerFailed": "Pasang kebergantungan: {{command}}",
|
|
1518
1476
|
"notesHeading": "Nota:",
|
|
1519
1477
|
"caveatsHeading": "Amaran:",
|
|
1520
1478
|
"errorMissingPlatform": "Argumen diperlukan \"platform\" hilang. Dijangka salah satu: {{platforms}}",
|
|
@@ -1569,10 +1527,10 @@ const MESSAGES = {
|
|
|
1569
1527
|
"nextStepsNav": "cd {{dir}}",
|
|
1570
1528
|
"nextStepsInstall": "Installera beroenden: {{command}}",
|
|
1571
1529
|
"nextStepsDevServer": "Starta dev-servern (om din mall har en)",
|
|
1572
|
-
"getStartedHeading": "
|
|
1573
|
-
"installSpinnerStart": "
|
|
1530
|
+
"getStartedHeading": "Nästa steg:",
|
|
1531
|
+
"installSpinnerStart": "Installera beroenden: {{command}}",
|
|
1574
1532
|
"installSpinnerStop": "Dependencies installed.",
|
|
1575
|
-
"installSpinnerFailed": "
|
|
1533
|
+
"installSpinnerFailed": "Installera beroenden: {{command}}",
|
|
1576
1534
|
"notesHeading": "Notering:",
|
|
1577
1535
|
"caveatsHeading": "Varning:",
|
|
1578
1536
|
"errorMissingPlatform": "Saknad obligatorisk argument \"platform\". Förväntat ett av: {{platforms}}",
|
|
@@ -1627,10 +1585,10 @@ const MESSAGES = {
|
|
|
1627
1585
|
"nextStepsNav": "cd {{dir}}",
|
|
1628
1586
|
"nextStepsInstall": "Installer avhengigheter: {{command}}",
|
|
1629
1587
|
"nextStepsDevServer": "Start utviklingsserveren (hvis malen din har en)",
|
|
1630
|
-
"getStartedHeading": "
|
|
1631
|
-
"installSpinnerStart": "
|
|
1632
|
-
"installSpinnerStop": "
|
|
1633
|
-
"installSpinnerFailed": "
|
|
1588
|
+
"getStartedHeading": "Neste steg:",
|
|
1589
|
+
"installSpinnerStart": "Installer avhengigheter: {{command}}",
|
|
1590
|
+
"installSpinnerStop": "Avhengigheter installert.",
|
|
1591
|
+
"installSpinnerFailed": "Installer avhengigheter: {{command}}",
|
|
1634
1592
|
"notesHeading": "Merk:",
|
|
1635
1593
|
"caveatsHeading": "Forbehold:",
|
|
1636
1594
|
"errorMissingPlatform": "Mangler påkrevd argument \"platform\". Forventet en av: {{platforms}}",
|
|
@@ -1685,10 +1643,10 @@ const MESSAGES = {
|
|
|
1685
1643
|
"nextStepsNav": "cd {{dir}}",
|
|
1686
1644
|
"nextStepsInstall": "Installer avhengigheiter: {{command}}",
|
|
1687
1645
|
"nextStepsDevServer": "Start utviklarserveren (om malen har ein)",
|
|
1688
|
-
"getStartedHeading": "
|
|
1689
|
-
"installSpinnerStart": "
|
|
1690
|
-
"installSpinnerStop": "
|
|
1691
|
-
"installSpinnerFailed": "
|
|
1646
|
+
"getStartedHeading": "Neste steg:",
|
|
1647
|
+
"installSpinnerStart": "Installer avhengigheiter: {{command}}",
|
|
1648
|
+
"installSpinnerStop": "Avhengigheiter installert.",
|
|
1649
|
+
"installSpinnerFailed": "Installer avhengigheiter: {{command}}",
|
|
1692
1650
|
"notesHeading": "Merk:",
|
|
1693
1651
|
"caveatsHeading": "Forbehald:",
|
|
1694
1652
|
"errorMissingPlatform": "Manglande påkravd argument \"platform\". Forventa éin av: {{platforms}}",
|
|
@@ -1743,10 +1701,10 @@ const MESSAGES = {
|
|
|
1743
1701
|
"nextStepsNav": "cd {{dir}}",
|
|
1744
1702
|
"nextStepsInstall": "نصب وابستگیها: {{command}}",
|
|
1745
1703
|
"nextStepsDevServer": "راهاندازی سرور توسعه (در صورت وجود در قالب شما)",
|
|
1746
|
-
"getStartedHeading": "
|
|
1747
|
-
"installSpinnerStart": "
|
|
1748
|
-
"installSpinnerStop": "
|
|
1749
|
-
"installSpinnerFailed": "
|
|
1704
|
+
"getStartedHeading": "گامهای بعدی:",
|
|
1705
|
+
"installSpinnerStart": "نصب وابستگیها: {{command}}",
|
|
1706
|
+
"installSpinnerStop": "وابستگیها نصب شدند.",
|
|
1707
|
+
"installSpinnerFailed": "نصب وابستگیها: {{command}}",
|
|
1750
1708
|
"notesHeading": "توجه:",
|
|
1751
1709
|
"caveatsHeading": "ملاحظات:",
|
|
1752
1710
|
"errorMissingPlatform": "آرگومان اجباری \"platform\" مفقود است. انتظار یکی از موارد: {{platforms}}",
|
|
@@ -1801,10 +1759,10 @@ const MESSAGES = {
|
|
|
1801
1759
|
"nextStepsNav": "cd {{dir}}",
|
|
1802
1760
|
"nextStepsInstall": "Zainstaluj zależności: {{command}}",
|
|
1803
1761
|
"nextStepsDevServer": "Uruchom serwer deweloperski (jeśli szablon go zawiera)",
|
|
1804
|
-
"getStartedHeading": "
|
|
1805
|
-
"installSpinnerStart": "
|
|
1806
|
-
"installSpinnerStop": "
|
|
1807
|
-
"installSpinnerFailed": "
|
|
1762
|
+
"getStartedHeading": "Kolejne kroki:",
|
|
1763
|
+
"installSpinnerStart": "Zainstaluj zależności: {{command}}",
|
|
1764
|
+
"installSpinnerStop": "Zależności zainstalowane.",
|
|
1765
|
+
"installSpinnerFailed": "Zainstaluj zależności: {{command}}",
|
|
1808
1766
|
"notesHeading": "Uwaga:",
|
|
1809
1767
|
"caveatsHeading": "Ograniczenie:",
|
|
1810
1768
|
"errorMissingPlatform": "Brakuje wymaganego argumentu \"platform\". Oczekiwano jednego z: {{platforms}}",
|
|
@@ -1859,10 +1817,10 @@ const MESSAGES = {
|
|
|
1859
1817
|
"nextStepsNav": "cd {{dir}}",
|
|
1860
1818
|
"nextStepsInstall": "Instalar dependências: {{command}}",
|
|
1861
1819
|
"nextStepsDevServer": "Inicie o servidor de desenvolvimento (se o seu template tiver um)",
|
|
1862
|
-
"getStartedHeading": "
|
|
1863
|
-
"installSpinnerStart": "
|
|
1864
|
-
"installSpinnerStop": "
|
|
1865
|
-
"installSpinnerFailed": "
|
|
1820
|
+
"getStartedHeading": "Próximos passos:",
|
|
1821
|
+
"installSpinnerStart": "Instalar dependências: {{command}}",
|
|
1822
|
+
"installSpinnerStop": "Dependências instaladas.",
|
|
1823
|
+
"installSpinnerFailed": "Instalar dependências: {{command}}",
|
|
1866
1824
|
"notesHeading": "Observação:",
|
|
1867
1825
|
"caveatsHeading": "Atenção:",
|
|
1868
1826
|
"errorMissingPlatform": "Argumento obrigatório \"platform\" ausente. Esperado um dos: {{platforms}}",
|
|
@@ -1917,10 +1875,10 @@ const MESSAGES = {
|
|
|
1917
1875
|
"nextStepsNav": "cd {{dir}}",
|
|
1918
1876
|
"nextStepsInstall": "Instalar dependências: {{command}}",
|
|
1919
1877
|
"nextStepsDevServer": "Iniciar o servidor de desenvolvimento (se o template tiver um)",
|
|
1920
|
-
"getStartedHeading": "
|
|
1921
|
-
"installSpinnerStart": "
|
|
1922
|
-
"installSpinnerStop": "
|
|
1923
|
-
"installSpinnerFailed": "
|
|
1878
|
+
"getStartedHeading": "Próximos passos:",
|
|
1879
|
+
"installSpinnerStart": "Instalar dependências: {{command}}",
|
|
1880
|
+
"installSpinnerStop": "Dependências instaladas.",
|
|
1881
|
+
"installSpinnerFailed": "Instalar dependências: {{command}}",
|
|
1924
1882
|
"notesHeading": "Observação:",
|
|
1925
1883
|
"caveatsHeading": "Atenção:",
|
|
1926
1884
|
"errorMissingPlatform": "Argumento obrigatório \"platform\" ausente. Esperado um de: {{platforms}}",
|
|
@@ -1975,10 +1933,10 @@ const MESSAGES = {
|
|
|
1975
1933
|
"nextStepsNav": "cd {{dir}}",
|
|
1976
1934
|
"nextStepsInstall": "Установите зависимости: {{command}}",
|
|
1977
1935
|
"nextStepsDevServer": "Запустите dev-сервер (если он есть в шаблоне)",
|
|
1978
|
-
"getStartedHeading": "
|
|
1979
|
-
"installSpinnerStart": "
|
|
1980
|
-
"installSpinnerStop": "
|
|
1981
|
-
"installSpinnerFailed": "
|
|
1936
|
+
"getStartedHeading": "Дальше:",
|
|
1937
|
+
"installSpinnerStart": "Установите зависимости: {{command}}",
|
|
1938
|
+
"installSpinnerStop": "Зависимости установлены.",
|
|
1939
|
+
"installSpinnerFailed": "Установите зависимости: {{command}}",
|
|
1982
1940
|
"notesHeading": "Примечание:",
|
|
1983
1941
|
"caveatsHeading": "Ограничения:",
|
|
1984
1942
|
"errorMissingPlatform": "Отсутствует обязательный аргумент \"platform\". Ожидалось одно из: {{platforms}}",
|
|
@@ -2033,10 +1991,10 @@ const MESSAGES = {
|
|
|
2033
1991
|
"nextStepsNav": "cd {{dir}}",
|
|
2034
1992
|
"nextStepsInstall": "安装依赖:{{command}}",
|
|
2035
1993
|
"nextStepsDevServer": "启动开发服务器(如果你的模板提供)",
|
|
2036
|
-
"getStartedHeading": "
|
|
2037
|
-
"installSpinnerStart": "
|
|
2038
|
-
"installSpinnerStop": "
|
|
2039
|
-
"installSpinnerFailed": "
|
|
1994
|
+
"getStartedHeading": "后续步骤:",
|
|
1995
|
+
"installSpinnerStart": "安装依赖:{{command}}",
|
|
1996
|
+
"installSpinnerStop": "依赖已安装。",
|
|
1997
|
+
"installSpinnerFailed": "安装依赖:{{command}}",
|
|
2040
1998
|
"notesHeading": "注意:",
|
|
2041
1999
|
"caveatsHeading": "注意事项:",
|
|
2042
2000
|
"errorMissingPlatform": "缺少必需参数 \"platform\"。期望其中之一:{{platforms}}",
|
|
@@ -2091,10 +2049,10 @@ const MESSAGES = {
|
|
|
2091
2049
|
"nextStepsNav": "cd {{dir}}",
|
|
2092
2050
|
"nextStepsInstall": "Namestite odvisnosti: {{command}}",
|
|
2093
2051
|
"nextStepsDevServer": "Zaženite razvojni strežnik (če ga ima predloga)",
|
|
2094
|
-
"getStartedHeading": "
|
|
2095
|
-
"installSpinnerStart": "
|
|
2096
|
-
"installSpinnerStop": "
|
|
2097
|
-
"installSpinnerFailed": "
|
|
2052
|
+
"getStartedHeading": "Naslednji koraki:",
|
|
2053
|
+
"installSpinnerStart": "Namestite odvisnosti: {{command}}",
|
|
2054
|
+
"installSpinnerStop": "Odvisnosti nameščene.",
|
|
2055
|
+
"installSpinnerFailed": "Namestite odvisnosti: {{command}}",
|
|
2098
2056
|
"notesHeading": "Opomba:",
|
|
2099
2057
|
"caveatsHeading": "Opozorilo:",
|
|
2100
2058
|
"errorMissingPlatform": "Manjka zahtevan argument \"platform\". Pričakovana ena od: {{platforms}}",
|
|
@@ -2149,10 +2107,10 @@ const MESSAGES = {
|
|
|
2149
2107
|
"nextStepsNav": "cd {{dir}}",
|
|
2150
2108
|
"nextStepsInstall": "Instalar dependencias: {{command}}",
|
|
2151
2109
|
"nextStepsDevServer": "Iniciar el servidor de desarrollo (si la plantilla tiene uno)",
|
|
2152
|
-
"getStartedHeading": "
|
|
2153
|
-
"installSpinnerStart": "
|
|
2154
|
-
"installSpinnerStop": "
|
|
2155
|
-
"installSpinnerFailed": "
|
|
2110
|
+
"getStartedHeading": "Siguientes pasos:",
|
|
2111
|
+
"installSpinnerStart": "Instalar dependencias: {{command}}",
|
|
2112
|
+
"installSpinnerStop": "Dependencias instaladas.",
|
|
2113
|
+
"installSpinnerFailed": "Instalar dependencias: {{command}}",
|
|
2156
2114
|
"notesHeading": "Nota:",
|
|
2157
2115
|
"caveatsHeading": "Precaución:",
|
|
2158
2116
|
"errorMissingPlatform": "Falta el argumento requerido \"platform\". Se esperaba uno de: {{platforms}}",
|
|
@@ -2207,10 +2165,10 @@ const MESSAGES = {
|
|
|
2207
2165
|
"nextStepsNav": "cd {{dir}}",
|
|
2208
2166
|
"nextStepsInstall": "Installera beroenden: {{command}}",
|
|
2209
2167
|
"nextStepsDevServer": "Starta dev-servern (om din mall har en)",
|
|
2210
|
-
"getStartedHeading": "
|
|
2211
|
-
"installSpinnerStart": "
|
|
2212
|
-
"installSpinnerStop": "
|
|
2213
|
-
"installSpinnerFailed": "
|
|
2168
|
+
"getStartedHeading": "Nästa steg:",
|
|
2169
|
+
"installSpinnerStart": "Installera beroenden: {{command}}",
|
|
2170
|
+
"installSpinnerStop": "Beroenden installerade.",
|
|
2171
|
+
"installSpinnerFailed": "Installera beroenden: {{command}}",
|
|
2214
2172
|
"notesHeading": "Notera:",
|
|
2215
2173
|
"caveatsHeading": "Varning:",
|
|
2216
2174
|
"errorMissingPlatform": "Saknas obligatoriskt argument \"platform\". Förväntat ett av: {{platforms}}",
|
|
@@ -2265,10 +2223,10 @@ const MESSAGES = {
|
|
|
2265
2223
|
"nextStepsNav": "cd {{dir}}",
|
|
2266
2224
|
"nextStepsInstall": "ติดตั้ง dependencies: {{command}}",
|
|
2267
2225
|
"nextStepsDevServer": "เริ่มเซิร์ฟเวอร์สำหรับพัฒนา (ถ้าเทมเพลตมี)",
|
|
2268
|
-
"getStartedHeading": "
|
|
2269
|
-
"installSpinnerStart": "
|
|
2270
|
-
"installSpinnerStop": "
|
|
2271
|
-
"installSpinnerFailed": "
|
|
2226
|
+
"getStartedHeading": "ขั้นตอนถัดไป:",
|
|
2227
|
+
"installSpinnerStart": "ติดตั้ง dependencies: {{command}}",
|
|
2228
|
+
"installSpinnerStop": "ติดตั้งการพึ่งพาเรียบร้อยแล้ว.",
|
|
2229
|
+
"installSpinnerFailed": "ติดตั้ง dependencies: {{command}}",
|
|
2272
2230
|
"notesHeading": "หมายเหตุ:",
|
|
2273
2231
|
"caveatsHeading": "ข้อควรระวัง:",
|
|
2274
2232
|
"errorMissingPlatform": "ขาดอาร์กิวเมนต์ที่จำเป็น \"platform\". คาดหวังหนึ่งใน: {{platforms}}",
|
|
@@ -2323,10 +2281,10 @@ const MESSAGES = {
|
|
|
2323
2281
|
"nextStepsNav": "cd {{dir}}",
|
|
2324
2282
|
"nextStepsInstall": "安裝相依套件:{{command}}",
|
|
2325
2283
|
"nextStepsDevServer": "啟動開發伺服器(若範本有提供)",
|
|
2326
|
-
"getStartedHeading": "
|
|
2327
|
-
"installSpinnerStart": "
|
|
2328
|
-
"installSpinnerStop": "
|
|
2329
|
-
"installSpinnerFailed": "
|
|
2284
|
+
"getStartedHeading": "下一步:",
|
|
2285
|
+
"installSpinnerStart": "安裝相依套件:{{command}}",
|
|
2286
|
+
"installSpinnerStop": "已安裝相依套件。",
|
|
2287
|
+
"installSpinnerFailed": "安裝相依套件:{{command}}",
|
|
2330
2288
|
"notesHeading": "注意:",
|
|
2331
2289
|
"caveatsHeading": "注意事項:",
|
|
2332
2290
|
"errorMissingPlatform": "遺漏必要參數 \"platform\"。預期其中一項:{{platforms}}",
|
|
@@ -2381,10 +2339,10 @@ const MESSAGES = {
|
|
|
2381
2339
|
"nextStepsNav": "cd {{dir}}",
|
|
2382
2340
|
"nextStepsInstall": "Bağımlılıkları kurun: {{command}}",
|
|
2383
2341
|
"nextStepsDevServer": "Geliştirme sunucusunu başlatın (şablonunuzda varsa)",
|
|
2384
|
-
"getStartedHeading": "
|
|
2385
|
-
"installSpinnerStart": "
|
|
2386
|
-
"installSpinnerStop": "
|
|
2387
|
-
"installSpinnerFailed": "
|
|
2342
|
+
"getStartedHeading": "Sonraki adımlar:",
|
|
2343
|
+
"installSpinnerStart": "Bağımlılıkları kurun: {{command}}",
|
|
2344
|
+
"installSpinnerStop": "Bağımlılıklar yüklendi.",
|
|
2345
|
+
"installSpinnerFailed": "Bağımlılıkları kurun: {{command}}",
|
|
2388
2346
|
"notesHeading": "Not:",
|
|
2389
2347
|
"caveatsHeading": "Uyarı:",
|
|
2390
2348
|
"errorMissingPlatform": "Gerekli argüman \"platform\" eksik. Beklenenler: {{platforms}}",
|
|
@@ -2439,10 +2397,10 @@ const MESSAGES = {
|
|
|
2439
2397
|
"nextStepsNav": "cd {{dir}}",
|
|
2440
2398
|
"nextStepsInstall": "Встановити залежності: {{command}}",
|
|
2441
2399
|
"nextStepsDevServer": "Запустити dev‑сервер (якщо шаблон його має)",
|
|
2442
|
-
"getStartedHeading": "
|
|
2443
|
-
"installSpinnerStart": "
|
|
2444
|
-
"installSpinnerStop": "
|
|
2445
|
-
"installSpinnerFailed": "
|
|
2400
|
+
"getStartedHeading": "Наступні кроки:",
|
|
2401
|
+
"installSpinnerStart": "Встановити залежності: {{command}}",
|
|
2402
|
+
"installSpinnerStop": "Залежності встановлено.",
|
|
2403
|
+
"installSpinnerFailed": "Встановити залежності: {{command}}",
|
|
2446
2404
|
"notesHeading": "Примітка:",
|
|
2447
2405
|
"caveatsHeading": "Попередження:",
|
|
2448
2406
|
"errorMissingPlatform": "Відсутній обовʼязковий аргумент \"platform\". Очікується один з: {{platforms}}",
|
|
@@ -2497,10 +2455,10 @@ const MESSAGES = {
|
|
|
2497
2455
|
"nextStepsNav": "cd {{dir}}",
|
|
2498
2456
|
"nextStepsInstall": "Cài đặt phụ thuộc: {{command}}",
|
|
2499
2457
|
"nextStepsDevServer": "Khởi động máy chủ dev (nếu mẫu có)",
|
|
2500
|
-
"getStartedHeading": "
|
|
2501
|
-
"installSpinnerStart": "
|
|
2502
|
-
"installSpinnerStop": "
|
|
2503
|
-
"installSpinnerFailed": "
|
|
2458
|
+
"getStartedHeading": "Bước tiếp theo:",
|
|
2459
|
+
"installSpinnerStart": "Cài đặt phụ thuộc: {{command}}",
|
|
2460
|
+
"installSpinnerStop": "Đã cài đặt các phụ thuộc.",
|
|
2461
|
+
"installSpinnerFailed": "Cài đặt phụ thuộc: {{command}}",
|
|
2504
2462
|
"notesHeading": "Lưu ý:",
|
|
2505
2463
|
"caveatsHeading": "Cảnh báo:",
|
|
2506
2464
|
"errorMissingPlatform": "Thiếu tham số bắt buộc \"platform\". Mong đợi một trong: {{platforms}}",
|
|
@@ -2555,10 +2513,10 @@ const MESSAGES = {
|
|
|
2555
2513
|
"nextStepsNav": "cd {{dir}}",
|
|
2556
2514
|
"nextStepsInstall": "Gosod dibyniaethau: {{command}}",
|
|
2557
2515
|
"nextStepsDevServer": "Cychwyn y gweinydd datblyg (os oes gan eich templed un)",
|
|
2558
|
-
"getStartedHeading": "
|
|
2559
|
-
"installSpinnerStart": "
|
|
2560
|
-
"installSpinnerStop": "
|
|
2561
|
-
"installSpinnerFailed": "
|
|
2516
|
+
"getStartedHeading": "Camau nesaf:",
|
|
2517
|
+
"installSpinnerStart": "Gosod dibyniaethau: {{command}}",
|
|
2518
|
+
"installSpinnerStop": "Dibyniaethau wedi'u gosod.",
|
|
2519
|
+
"installSpinnerFailed": "Gosod dibyniaethau: {{command}}",
|
|
2562
2520
|
"notesHeading": "Nodyn:",
|
|
2563
2521
|
"caveatsHeading": "Rhybudd:",
|
|
2564
2522
|
"errorMissingPlatform": "Diffyg y dadleuon gofynnol \"platform\". Disgwylir un o: {{platforms}}",
|
|
@@ -2665,6 +2623,23 @@ function expandHome(dir) {
|
|
|
2665
2623
|
return dir === "~" ? home : join(home, dir.slice(2));
|
|
2666
2624
|
}
|
|
2667
2625
|
/**
|
|
2626
|
+
* Human-readable labels for the interactive platform picker — canonical `SCAFFOLD_PLATFORMS` keys
|
|
2627
|
+
* are lowercase/hyphenated for CLI-arg use, not meant for display as-is.
|
|
2628
|
+
*/
|
|
2629
|
+
const PLATFORM_DISPLAY_LABELS = {
|
|
2630
|
+
components: "HTML",
|
|
2631
|
+
"web-components": "Web components",
|
|
2632
|
+
react: "React",
|
|
2633
|
+
vue: "Vue",
|
|
2634
|
+
angular: "Angular",
|
|
2635
|
+
svelte: "Svelte",
|
|
2636
|
+
"canvas-theme-editor": "Canvas theme editor"
|
|
2637
|
+
};
|
|
2638
|
+
/** Display label for a platform key, falling back to the raw key if unmapped. */
|
|
2639
|
+
function platformDisplayLabel(platform) {
|
|
2640
|
+
return PLATFORM_DISPLAY_LABELS[platform] ?? platform;
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2668
2643
|
* Resolves the platform: uses `platformArg` when given, otherwise prompts via clack `select()`
|
|
2669
2644
|
* on a TTY (not --yes), otherwise throws a localized `ScaffoldCliError`.
|
|
2670
2645
|
*
|
|
@@ -2680,10 +2655,10 @@ async function resolvePlatform(platformArg, opts) {
|
|
|
2680
2655
|
})) throw new ScaffoldCliError(t("errorMissingPlatform", { platforms: SCAFFOLD_PLATFORMS.join(", ") }));
|
|
2681
2656
|
const result = await select({
|
|
2682
2657
|
message: t("promptPlatform"),
|
|
2683
|
-
options: SCAFFOLD_PLATFORMS.map((p) => ({
|
|
2658
|
+
options: [...SCAFFOLD_PLATFORMS].map((p) => ({
|
|
2684
2659
|
value: p,
|
|
2685
|
-
label: p
|
|
2686
|
-
}))
|
|
2660
|
+
label: platformDisplayLabel(p)
|
|
2661
|
+
})).sort((a, b) => a.label.localeCompare(b.label))
|
|
2687
2662
|
});
|
|
2688
2663
|
if (isCancel(result)) {
|
|
2689
2664
|
cancel(t("cancelled"));
|
|
@@ -2752,7 +2727,7 @@ async function resolveScaffoldTarget(options) {
|
|
|
2752
2727
|
* @param platform - The scaffold platform
|
|
2753
2728
|
* @param dir - The target directory
|
|
2754
2729
|
* @param t - Localized string lookup
|
|
2755
|
-
* @param options - `theme`/`mode`/`cdn` forwarded to {@link scaffoldProject}
|
|
2730
|
+
* @param options - `theme`/`mode`/`cdn`/`locale` forwarded to {@link scaffoldProject}
|
|
2756
2731
|
* @returns The paths written by scaffoldProject
|
|
2757
2732
|
*/
|
|
2758
2733
|
async function scaffoldWithSpinner(platform, dir, t, options) {
|
|
@@ -2784,6 +2759,7 @@ function detectPackageManager(env, execPath) {
|
|
|
2784
2759
|
if (userAgent.includes("bun")) return "bun";
|
|
2785
2760
|
if (userAgent.includes("deno")) return "deno";
|
|
2786
2761
|
if (userAgent.includes("npm")) return "npm";
|
|
2762
|
+
if ("Deno" in globalThis) return "deno";
|
|
2787
2763
|
if ((execPath ?? process.execPath).includes("vite-plus")) return "vp";
|
|
2788
2764
|
}
|
|
2789
2765
|
/** Fully-composed command fragments per package manager, so callers never hand-compose them. */
|
|
@@ -2822,6 +2798,24 @@ const PM_COMMANDS = {
|
|
|
2822
2798
|
function pmCommands(pm) {
|
|
2823
2799
|
return PM_COMMANDS[pm ?? "npm"];
|
|
2824
2800
|
}
|
|
2801
|
+
/** Per-package-manager invocation for `create-pantoken-app`'s own usage/help text. */
|
|
2802
|
+
const CREATE_USAGE_COMMANDS = {
|
|
2803
|
+
npm: "npm create pantoken-app --",
|
|
2804
|
+
pnpm: "pnpm create pantoken-app --",
|
|
2805
|
+
yarn: "yarn create pantoken-app --",
|
|
2806
|
+
bun: "bunx create-pantoken-app --",
|
|
2807
|
+
deno: "deno run -A npm:create-pantoken-app --",
|
|
2808
|
+
vp: "vpx create-pantoken-app --"
|
|
2809
|
+
};
|
|
2810
|
+
/**
|
|
2811
|
+
* The invocation string `create-pantoken-app`'s bin shim shows in `--help`/usage, matching
|
|
2812
|
+
* whichever package manager actually invoked it (falls back to the npm form when undetected).
|
|
2813
|
+
*
|
|
2814
|
+
* @param pm - The detected package manager (defaults to `detectPackageManager()`'s result)
|
|
2815
|
+
*/
|
|
2816
|
+
function buildCreateUsageCommand(pm) {
|
|
2817
|
+
return CREATE_USAGE_COMMANDS[pm ?? detectPackageManager() ?? "npm"];
|
|
2818
|
+
}
|
|
2825
2819
|
/**
|
|
2826
2820
|
* Runs the detected package manager's install command in `dir`, wrapped in a clack spinner.
|
|
2827
2821
|
* Failures are reported but non-fatal — the project is still usable, just not installed — so the
|
|
@@ -2833,7 +2827,12 @@ function pmCommands(pm) {
|
|
|
2833
2827
|
* @returns Whether the install command exited successfully
|
|
2834
2828
|
*/
|
|
2835
2829
|
function installWithSpinner(dir, pm, t) {
|
|
2836
|
-
const
|
|
2830
|
+
const npmExecPath = pm === "npm" ? process.env.npm_execpath : void 0;
|
|
2831
|
+
const [command, ...args] = npmExecPath ? [
|
|
2832
|
+
process.execPath,
|
|
2833
|
+
npmExecPath,
|
|
2834
|
+
"install"
|
|
2835
|
+
] : pmCommands(pm).install.split(" ");
|
|
2837
2836
|
const s = spinner();
|
|
2838
2837
|
s.start(t("installSpinnerStart"));
|
|
2839
2838
|
try {
|
|
@@ -2880,7 +2879,8 @@ function buildDevStep(dir, dev) {
|
|
|
2880
2879
|
* needed — regardless of platform. Otherwise, when `platform` has a `scaffold.json`-derived entry in
|
|
2881
2880
|
* `SCAFFOLD_METADATA`, next steps/notes/caveats are rendered from its (localized, `{{var}}`-
|
|
2882
2881
|
* substituted) authored strings; failing that, a generic cd/install/run-script fallback is used,
|
|
2883
|
-
* with the run script itself detected from the scaffolded `package.json` (`dev`, else `preview`)
|
|
2882
|
+
* with the run script itself detected from the scaffolded `package.json` (`dev`, else `preview`)
|
|
2883
|
+
* or defaulted to `dev` for scaffolded app templates.
|
|
2884
2884
|
*
|
|
2885
2885
|
* @param dir - The scaffold directory
|
|
2886
2886
|
* @param written - The paths written by scaffoldProject
|
|
@@ -2891,8 +2891,7 @@ function buildDevStep(dir, dev) {
|
|
|
2891
2891
|
function printNextSteps(dir, written, t, platform, installed) {
|
|
2892
2892
|
const pm = detectPackageManager();
|
|
2893
2893
|
const { install, run } = pmCommands(pm);
|
|
2894
|
-
const
|
|
2895
|
-
const dev = script ? `${run} ${script}` : t("nextStepsDevServer");
|
|
2894
|
+
const dev = `${run} ${detectRunScript(written) ?? "dev"}`;
|
|
2896
2895
|
const vars = {
|
|
2897
2896
|
dir,
|
|
2898
2897
|
pm: pm ?? "npm",
|
|
@@ -2932,8 +2931,13 @@ function validateScaffoldPlatform(value) {
|
|
|
2932
2931
|
* @throws InvalidArgumentError if the value isn't a known CDN provider id
|
|
2933
2932
|
*/
|
|
2934
2933
|
function validateCdnProviderId(value) {
|
|
2935
|
-
|
|
2936
|
-
|
|
2934
|
+
const providers = [
|
|
2935
|
+
"jsdelivr",
|
|
2936
|
+
"unpkg",
|
|
2937
|
+
"esmsh"
|
|
2938
|
+
];
|
|
2939
|
+
if (providers.includes(value)) return value;
|
|
2940
|
+
throw new InvalidArgumentError(`CDN provider "${value}" is not valid. Expected one of: ${providers.join(", ")}.`);
|
|
2937
2941
|
}
|
|
2938
2942
|
/**
|
|
2939
2943
|
* Builds the full, ready-to-parse commander Command for pantoken-scaffold/create-pantoken-app.
|
|
@@ -2946,7 +2950,7 @@ function createScaffoldCommand(options) {
|
|
|
2946
2950
|
const program = new Command(programName).exitOverride().configureOutput({
|
|
2947
2951
|
writeOut: (s) => process.stdout.write(s),
|
|
2948
2952
|
writeErr: (s) => process.stderr.write(s)
|
|
2949
|
-
}).addArgument(new Argument("[platform]", `Platform to scaffold (${SCAFFOLD_PLATFORMS.join("|")}; "html" is an alias for "components")`).argParser(validateScaffoldPlatform)).option("-d, --dir <path>", "Target directory (prompts interactively on a TTY if omitted)").option("-y, --yes", "Never prompt; error instead of prompting for a missing platform/directory", false).option("-l, --lang <tag>", "
|
|
2953
|
+
}).addArgument(new Argument("[platform]", `Platform to scaffold (${SCAFFOLD_PLATFORMS.join("|")}; "html" is an alias for "components")`).argParser(validateScaffoldPlatform)).option("-d, --dir <path>", "Target directory (prompts interactively on a TTY if omitted)").option("-y, --yes", "Never prompt; error instead of prompting for a missing platform/directory", false).option("-l, --lang <tag>", "Language for the CLI and the scaffolded project (e.g. \"hu\"); auto-detected by default", validateLocaleTag).option("--theme <name>", "Token theme: rebrand (default), canvas, canvasHighContrast", validateThemeVariant).option("--theme-mode <mode>", "Rebrand token mode: light (default) or adaptive; ignored outside the rebrand theme", validateThemeMode).option("--cdn <provider>", "CDN provider for canvas-theme-editor's theme.css/theme.js: jsdelivr (default), unpkg, esmsh", validateCdnProviderId).option("--no-install", "Skip automatically installing dependencies after scaffolding");
|
|
2950
2954
|
if (options?.version) program.version(options.version, "-v, --version");
|
|
2951
2955
|
program.action(async (platformArg, opts) => {
|
|
2952
2956
|
const locale = detectLocale({ langFlag: opts.lang });
|
|
@@ -2959,14 +2963,22 @@ function createScaffoldCommand(options) {
|
|
|
2959
2963
|
t
|
|
2960
2964
|
});
|
|
2961
2965
|
const expandedDir = expandHome(dir);
|
|
2966
|
+
const packageManager = detectPackageManager();
|
|
2962
2967
|
const written = await scaffoldWithSpinner(platform, expandedDir, t, {
|
|
2963
2968
|
theme: opts.theme,
|
|
2964
2969
|
mode: opts.themeMode,
|
|
2965
|
-
cdn: opts.cdn
|
|
2970
|
+
cdn: opts.cdn,
|
|
2971
|
+
locale,
|
|
2972
|
+
packageManager
|
|
2966
2973
|
});
|
|
2967
2974
|
for (const path of written) console.log(t("wroteFile", { path }));
|
|
2968
|
-
const installed = opts.install !== false && installWithSpinner(expandedDir,
|
|
2969
|
-
|
|
2975
|
+
const installed = opts.install !== false && installWithSpinner(expandedDir, packageManager, t);
|
|
2976
|
+
let printDir = expandedDir;
|
|
2977
|
+
if (installed && expandedDir !== ".") try {
|
|
2978
|
+
process.chdir(expandedDir);
|
|
2979
|
+
printDir = ".";
|
|
2980
|
+
} catch {}
|
|
2981
|
+
printNextSteps(printDir, written, t, resolveScaffoldPlatform(platform), installed);
|
|
2970
2982
|
} catch (err) {
|
|
2971
2983
|
if (err instanceof ScaffoldCliError) throw err;
|
|
2972
2984
|
throw err;
|
|
@@ -3004,4 +3016,4 @@ async function runScaffoldCli(argv, options) {
|
|
|
3004
3016
|
}
|
|
3005
3017
|
}
|
|
3006
3018
|
//#endregion
|
|
3007
|
-
export { MESSAGES, SCAFFOLD_PLATFORMS, ScaffoldCliError, createLocaleLookup, createScaffoldCommand, detectLocale, detectPackageManager, expandHome, installWithSpinner, isScaffoldPlatform, printNextSteps, resolveScaffoldPlatform, resolveScaffoldTarget, runScaffoldCli, scaffoldProject, scaffoldWithSpinner, shouldPrompt, validateCdnProviderId, validateScaffoldPlatform };
|
|
3019
|
+
export { MESSAGES, SCAFFOLD_PLATFORMS, SUPPORTED_LOCALES, ScaffoldCliError, buildCreateUsageCommand, createLocaleLookup, createScaffoldCommand, detectLocale, detectPackageManager, expandHome, installWithSpinner, isScaffoldPlatform, printNextSteps, resolveScaffoldPlatform, resolveScaffoldTarget, runScaffoldCli, scaffoldProject, scaffoldWithSpinner, shouldPrompt, validateCdnProviderId, validateLocaleTag, validateScaffoldPlatform };
|