@donotdev/core 0.0.46 → 0.1.0

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/vite/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import * as React from 'react';
7
7
  /**
8
8
  * App metadata and branding configuration
9
9
  *
10
- * @version 0.0.2
10
+ * @version 0.1.0
11
11
  * @since 0.0.1
12
12
  * @author AMBROISE PARK Consulting
13
13
  */
@@ -83,7 +83,7 @@ interface AppMetadata {
83
83
  * };
84
84
  * ```
85
85
  *
86
- * @version 0.0.2
86
+ * @version 0.1.0
87
87
  * @since 0.0.1
88
88
  * @author AMBROISE PARK Consulting
89
89
  */
@@ -156,7 +156,7 @@ interface AuthConfig {
156
156
  * };
157
157
  * ```
158
158
  *
159
- * @version 0.0.2
159
+ * @version 0.1.0
160
160
  * @since 0.0.1
161
161
  * @author AMBROISE PARK Consulting
162
162
  */
@@ -181,6 +181,39 @@ interface SEOConfig {
181
181
  twitterHandle?: string;
182
182
  /** Additional static meta tags */
183
183
  staticTags?: Record<string, string>;
184
+ /** URL redirect rules - generates platform-specific 301/302 redirects at build time */
185
+ redirects?: Array<{
186
+ /** Source path (supports :param syntax, e.g. '/old-blog/:slug') */
187
+ from: string;
188
+ /** Destination path (supports :param syntax, e.g. '/blog/:slug') */
189
+ to: string;
190
+ /** true = 301 permanent (default), false = 302 temporary */
191
+ permanent?: boolean;
192
+ }>;
193
+
194
+ // --- SEO/GEO features (all ON by default, opt-out per feature) ---
195
+
196
+ /**
197
+ * AI crawler management in robots.txt (default: 'recommended')
198
+ * - 'recommended': Block training bots (GPTBot, Google-Extended, CCBot, anthropic-ai),
199
+ * allow search/retrieval bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, etc.)
200
+ * - 'block-all': Block all AI bots
201
+ * - 'allow-all': Allow all AI bots
202
+ * - false: No AI crawler directives
203
+ */
204
+ aiCrawlers?: 'recommended' | 'block-all' | 'allow-all' | false;
205
+ /** Generate llms.txt per llmstxt.org spec (default: true). Set to false to disable. */
206
+ llmsTxt?: boolean;
207
+ /** Inject Speculation Rules API for prefetch/prerender of internal links (default: true). Set to false to disable. */
208
+ speculationRules?: boolean;
209
+ /** Emit hreflang alternate links when i18n has 2+ languages (default: true). No-op for monolingual apps. Set to false to disable. */
210
+ hreflang?: boolean;
211
+ /** Auto-generate BreadcrumbList JSON-LD from URL path segments (default: true). Set to false to disable. */
212
+ breadcrumbSchema?: boolean;
213
+ /** Auto-generate WebSite JSON-LD with SearchAction for sitelinks search box (default: true). Set to false to disable. */
214
+ websiteSchema?: boolean;
215
+ /** Auto-generate Organization JSON-LD on homepage from app.links (default: true). Set to false to disable. */
216
+ organizationSchema?: boolean;
184
217
  }
185
218
 
186
219
  /**
@@ -197,7 +230,7 @@ interface SEOConfig {
197
230
  * };
198
231
  * ```
199
232
  *
200
- * @version 0.0.2
233
+ * @version 0.1.0
201
234
  * @since 0.0.1
202
235
  * @author AMBROISE PARK Consulting
203
236
  */
@@ -231,7 +264,7 @@ interface FaviconConfig {
231
264
  * };
232
265
  * ```
233
266
  *
234
- * @version 0.0.2
267
+ * @version 0.1.0
235
268
  * @since 0.0.1
236
269
  * @author AMBROISE PARK Consulting
237
270
  */
@@ -306,7 +339,7 @@ interface FeaturesConfig {
306
339
  * };
307
340
  * ```
308
341
  *
309
- * @version 0.0.2
342
+ * @version 0.1.0
310
343
  * @since 0.0.1
311
344
  * @author AMBROISE PARK Consulting
312
345
  */
@@ -342,7 +375,7 @@ interface FeaturesConfig {
342
375
  * }
343
376
  * ```
344
377
  *
345
- * @version 0.0.1
378
+ * @version 0.1.0
346
379
  * @since 0.0.1
347
380
  * @author AMBROISE PARK Consulting
348
381
  */
@@ -540,7 +573,7 @@ declare module 'react' {
540
573
  * @fileoverview TypeScript Definitions for @donotdev/config
541
574
  * @description Comprehensive configuration system for DNDev applications supporting Vite and Next.js with built-in routing, theming, and internationalization.
542
575
  *
543
- * @version 0.0.1
576
+ * @version 0.1.0
544
577
  * @since 0.0.1
545
578
  * @author AMBROISE PARK Consulting
546
579
  */
@@ -548,7 +581,7 @@ declare module 'react' {
548
581
  /**
549
582
  * Build configuration options
550
583
  *
551
- * @version 0.0.1
584
+ * @version 0.1.0
552
585
  * @since 0.0.1
553
586
  * @author AMBROISE PARK Consulting
554
587
  */
@@ -580,7 +613,7 @@ interface BuildConfig {
580
613
  /**
581
614
  * Module resolution options
582
615
  *
583
- * @version 0.0.1
616
+ * @version 0.1.0
584
617
  * @since 0.0.1
585
618
  * @author AMBROISE PARK Consulting
586
619
  */
@@ -594,7 +627,7 @@ interface ResolveOptions {
594
627
  * Server configuration options
595
628
  * Used for both dev server and preview server
596
629
  *
597
- * @version 0.0.1
630
+ * @version 0.1.0
598
631
  * @since 0.0.1
599
632
  * @author AMBROISE PARK Consulting
600
633
  */
@@ -651,7 +684,7 @@ interface ServerOptions {
651
684
  /**
652
685
  * I18n virtual mapping options
653
686
  *
654
- * @version 0.0.1
687
+ * @version 0.1.0
655
688
  * @since 0.0.1
656
689
  * @author AMBROISE PARK Consulting
657
690
  */
@@ -665,7 +698,7 @@ interface I18nVirtualMappingOptions {
665
698
  * HMR options are internal framework concerns (in DEFAULT_OPTIONS only, not user-configurable)
666
699
  * Plugins are always enabled (part of framework) - no enabled option
667
700
  *
668
- * @version 0.0.1
701
+ * @version 0.1.0
669
702
  * @since 0.0.1
670
703
  * @author AMBROISE PARK Consulting
671
704
  */
@@ -679,7 +712,7 @@ interface BaseDiscoveryOptions {
679
712
  /**
680
713
  * Theme detection options
681
714
  *
682
- * @version 0.0.1
715
+ * @version 0.1.0
683
716
  * @since 0.0.1
684
717
  * @author AMBROISE PARK Consulting
685
718
  */
@@ -693,7 +726,7 @@ interface ThemeDetectionOptions extends BaseDiscoveryOptions {
693
726
  /**
694
727
  * Route discovery options with virtual module support
695
728
  *
696
- * @version 0.0.1
729
+ * @version 0.1.0
697
730
  * @since 0.0.1
698
731
  * @author AMBROISE PARK Consulting
699
732
  */
@@ -709,7 +742,7 @@ interface RouteDiscoveryOptions extends BaseDiscoveryOptions {
709
742
  /**
710
743
  * I18n options
711
744
  *
712
- * @version 0.0.1
745
+ * @version 0.1.0
713
746
  * @since 0.0.1
714
747
  * @author AMBROISE PARK Consulting
715
748
  */
@@ -728,7 +761,7 @@ interface I18nOptions extends BaseDiscoveryOptions {
728
761
  /**
729
762
  * Asset options
730
763
  *
731
- * @version 0.0.1
764
+ * @version 0.1.0
732
765
  * @since 0.0.1
733
766
  * @author AMBROISE PARK Consulting
734
767
  */
@@ -740,7 +773,7 @@ interface AssetOptions extends BaseDiscoveryOptions {
740
773
  /**
741
774
  * Progressive Web App options
742
775
  *
743
- * @version 0.0.1
776
+ * @version 0.1.0
744
777
  * @since 0.0.1
745
778
  * @author AMBROISE PARK Consulting
746
779
  */
@@ -811,7 +844,7 @@ interface PWAOptions {
811
844
  /**
812
845
  * Asset fallback options
813
846
  *
814
- * @version 0.0.1
847
+ * @version 0.1.0
815
848
  * @since 0.0.1
816
849
  * @author AMBROISE PARK Consulting
817
850
  */
@@ -836,7 +869,7 @@ interface AssetFallbackOptions {
836
869
  * User patterns are APPENDED to framework's react-core patterns (not replaced).
837
870
  * Framework patterns are always included - user patterns extend them.
838
871
  *
839
- * @version 0.0.1
872
+ * @version 0.1.0
840
873
  * @since 0.0.1
841
874
  * @author AMBROISE PARK Consulting
842
875
  */
@@ -849,7 +882,7 @@ interface ChunkingOptions {
849
882
  * Server shim options for blocking server-only imports
850
883
  * Note: serverShim cannot be disabled - framework would crash without it
851
884
  *
852
- * @version 0.0.1
885
+ * @version 0.1.0
853
886
  * @since 0.0.1
854
887
  * @author AMBROISE PARK Consulting
855
888
  */
@@ -863,7 +896,7 @@ interface ServerShimOptions {
863
896
  /**
864
897
  * Dependency optimization options
865
898
  *
866
- * @version 0.0.1
899
+ * @version 0.1.0
867
900
  * @since 0.0.1
868
901
  * @author AMBROISE PARK Consulting
869
902
  */
@@ -888,7 +921,7 @@ interface OptimizeDepsOptions {
888
921
  * Provides comprehensive configuration for Vite-based applications with
889
922
  * built-in support for routing, theming, internationalization, and SEO.
890
923
  *
891
- * @version 0.0.1
924
+ * @version 0.1.0
892
925
  * @since 0.0.1
893
926
  * @author AMBROISE PARK Consulting
894
927
  */
@@ -943,7 +976,7 @@ interface ConfigOptions {
943
976
  * @param options - Configuration options
944
977
  * @returns Complete Vite configuration object
945
978
  *
946
- * @version 0.0.1
979
+ * @version 0.1.0
947
980
  * @since 0.0.1
948
981
  * @author AMBROISE PARK Consulting
949
982
  */