@cbnventures/nova 0.34.1 → 0.36.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.
Files changed (158) hide show
  1. package/bin/nova.mjs +17 -0
  2. package/build/package.json +3 -2
  3. package/build/scaffold-versions.json +16 -6
  4. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
  5. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
  6. package/build/src/cli/generate/github/workflows-blueprint-validate.js +116 -3
  7. package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
  8. package/build/src/cli/generate/github/workflows-blueprint.d.ts +11 -5
  9. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
  10. package/build/src/cli/generate/github/workflows-blueprint.js +411 -35
  11. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
  12. package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
  13. package/build/src/cli/generate/must-haves/agent-conventions.js +3 -0
  14. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
  15. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
  16. package/build/src/cli/generate/must-haves/dotenv.js +1 -0
  17. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
  18. package/build/src/cli/scaffold/app/vite.js +1 -1
  19. package/build/src/cli/scaffold/app/vite.js.map +1 -1
  20. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  21. package/build/src/cli/utility/changelog.js +119 -67
  22. package/build/src/cli/utility/changelog.js.map +1 -1
  23. package/build/src/cli/utility/configure.d.ts.map +1 -1
  24. package/build/src/cli/utility/configure.js +126 -1
  25. package/build/src/cli/utility/configure.js.map +1 -1
  26. package/build/src/lib/corepack.d.ts +2 -2
  27. package/build/src/lib/corepack.d.ts.map +1 -1
  28. package/build/src/lib/corepack.js +16 -6
  29. package/build/src/lib/corepack.js.map +1 -1
  30. package/build/src/lib/docker-packaging.d.ts.map +1 -1
  31. package/build/src/lib/docker-packaging.js +5 -4
  32. package/build/src/lib/docker-packaging.js.map +1 -1
  33. package/build/src/lib/dotenv.d.ts.map +1 -1
  34. package/build/src/lib/dotenv.js +17 -8
  35. package/build/src/lib/dotenv.js.map +1 -1
  36. package/build/src/lib/env-managed-set.d.ts.map +1 -1
  37. package/build/src/lib/env-managed-set.js +55 -11
  38. package/build/src/lib/env-managed-set.js.map +1 -1
  39. package/build/src/lib/env-namespace.d.ts.map +1 -1
  40. package/build/src/lib/env-namespace.js +1 -0
  41. package/build/src/lib/env-namespace.js.map +1 -1
  42. package/build/src/lib/env-profiles.d.ts +3 -0
  43. package/build/src/lib/env-profiles.d.ts.map +1 -0
  44. package/build/src/lib/env-profiles.js +70 -0
  45. package/build/src/lib/env-profiles.js.map +1 -0
  46. package/build/src/lib/env-status.d.ts.map +1 -1
  47. package/build/src/lib/env-status.js +23 -2
  48. package/build/src/lib/env-status.js.map +1 -1
  49. package/build/src/lib/item.d.ts.map +1 -1
  50. package/build/src/lib/item.js +20 -3
  51. package/build/src/lib/item.js.map +1 -1
  52. package/build/src/lib/nova-config.d.ts.map +1 -1
  53. package/build/src/lib/nova-config.js +31 -0
  54. package/build/src/lib/nova-config.js.map +1 -1
  55. package/build/src/lib/regex.d.ts +7 -0
  56. package/build/src/lib/regex.d.ts.map +1 -1
  57. package/build/src/lib/regex.js +7 -0
  58. package/build/src/lib/regex.js.map +1 -1
  59. package/build/src/lib/run-scripts.d.ts.map +1 -1
  60. package/build/src/lib/run-scripts.js +24 -0
  61. package/build/src/lib/run-scripts.js.map +1 -1
  62. package/build/src/lib/scaffold.d.ts.map +1 -1
  63. package/build/src/lib/scaffold.js +7 -0
  64. package/build/src/lib/scaffold.js.map +1 -1
  65. package/build/src/lib/workflow-templates.js +4 -4
  66. package/build/src/lib/workflow-templates.js.map +1 -1
  67. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +42 -4
  68. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +193 -17
  69. package/build/src/types/cli/utility/changelog.d.ts +49 -6
  70. package/build/src/types/cli/utility/configure.d.ts +52 -0
  71. package/build/src/types/lib/corepack.d.ts +13 -0
  72. package/build/src/types/lib/docker-packaging.d.ts +1 -0
  73. package/build/src/types/lib/dotenv.d.ts +10 -3
  74. package/build/src/types/lib/env-managed-set.d.ts +15 -0
  75. package/build/src/types/lib/env-namespace.d.ts +5 -0
  76. package/build/src/types/lib/env-profiles.d.ts +67 -0
  77. package/build/src/types/lib/env-status.d.ts +9 -0
  78. package/build/src/types/lib/item.d.ts +20 -3
  79. package/build/src/types/lib/nova-config.d.ts +14 -0
  80. package/build/src/types/lib/run-scripts.d.ts +16 -0
  81. package/build/src/types/lib/scaffold.d.ts +8 -0
  82. package/build/src/types/shared.d.ts +47 -0
  83. package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +20 -0
  84. package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +22 -0
  85. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +16 -0
  86. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +40 -0
  87. package/build/src/types/tests/cli/scaffold/app/android.test.d.ts +2 -0
  88. package/build/src/types/tests/cli/utility/changelog.test.d.ts +48 -45
  89. package/build/src/types/tests/cli/utility/configure.test.d.ts +1 -0
  90. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
  91. package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -0
  92. package/build/src/types/tests/scaffold-output-contract.test.d.ts +27 -0
  93. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +8 -5
  94. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +8 -5
  95. package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +6 -6
  96. package/build/templates/generators/must-haves/agent-conventions/conventions/go.md +241 -0
  97. package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +155 -0
  98. package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +7 -7
  99. package/build/templates/generators/must-haves/agent-conventions/conventions/rust.md +227 -0
  100. package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +9 -9
  101. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +145 -23
  102. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +112 -103
  103. package/build/templates/generators/must-haves/ignore-files/gitignore +1 -0
  104. package/build/templates/scaffold/app/android/package.json +1 -1
  105. package/build/templates/scaffold/app/apple/Sources/App.swift +15 -2
  106. package/build/templates/scaffold/app/apple/Sources/ContentView.swift +6 -6
  107. package/build/templates/scaffold/app/apple/Sources/Localizable.xcstrings +75 -0
  108. package/build/templates/scaffold/app/apple/Tests/AppTests.swift +14 -2
  109. package/build/templates/scaffold/app/apple/package.json +1 -1
  110. package/build/templates/scaffold/app/astro/package.json +1 -1
  111. package/build/templates/scaffold/app/astro/src/i18n/en.json +48 -0
  112. package/build/templates/scaffold/app/astro/src/pages/index.astro +31 -30
  113. package/build/templates/scaffold/app/discord-bot/package.json +1 -1
  114. package/build/templates/scaffold/app/express/package.json +1 -1
  115. package/build/templates/scaffold/app/nextjs/package.json +1 -1
  116. package/build/templates/scaffold/app/nextjs/src/app/[lang]/dictionaries/en.json +31 -0
  117. package/build/templates/scaffold/app/nextjs/src/app/[lang]/dictionaries.ts +33 -0
  118. package/build/templates/scaffold/app/nextjs/src/app/[lang]/layout.tsx +92 -0
  119. package/build/templates/scaffold/app/nextjs/src/app/{page.tsx → [lang]/page.tsx} +54 -34
  120. package/build/templates/scaffold/app/nextjs/src/i18n/config.ts +42 -0
  121. package/build/templates/scaffold/app/nextjs/src/proxy.ts +56 -0
  122. package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/dictionaries.d.ts +21 -0
  123. package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/layout.d.ts +63 -0
  124. package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/page.d.ts +22 -0
  125. package/build/templates/scaffold/app/nextjs/src/types/i18n/config.d.ts +22 -0
  126. package/build/templates/scaffold/app/nextjs/src/types/proxy.d.ts +30 -0
  127. package/build/templates/scaffold/app/vite/package.json +2 -2
  128. package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
  129. package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
  130. package/build/templates/scaffold/docs/docusaurus/src/pages/index.tsx +81 -20
  131. package/build/templates/scaffold/docs/docusaurus/vitest.config.mts +9 -0
  132. package/build/templates/scaffold/package/github-action/package.json +1 -1
  133. package/build/templates/scaffold/package/homebridge/package.json +1 -1
  134. package/build/templates/scaffold/package/pfsense/package.json +1 -1
  135. package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +10 -0
  136. package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +62 -0
  137. package/build/templates/scaffold-options/app/android-launchpad/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreen.kt +40 -34
  138. package/build/templates/scaffold-options/app/android-native/.gitattributes +2 -0
  139. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/MainActivity.kt +16 -2
  140. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/NavigationKeys.kt +7 -1
  141. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/data/DataRepository.kt +28 -4
  142. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Color.kt +40 -6
  143. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Theme.kt +22 -1
  144. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Type.kt +8 -2
  145. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModel.kt +42 -6
  146. package/build/templates/scaffold-options/app/android-native/app/src/main/res/values/strings.xml +27 -0
  147. package/build/templates/scaffold-options/app/android-native/app/src/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
  148. package/build/templates/scaffold-options/app/astro/cloudflare/astro.config.mjs +7 -0
  149. package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
  150. package/build/templates/scaffold-options/app/astro/node/astro.config.mjs +7 -0
  151. package/build/templates/scaffold-options/app/astro/static/astro.config.mjs +7 -0
  152. package/build/templates/scaffold-options/docker-image/common/dockerignore +2 -0
  153. package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
  154. package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
  155. package/package.json +3 -2
  156. package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +0 -46
  157. package/build/templates/scaffold/app/nextjs/src/types/app/layout.d.ts +0 -25
  158. package/build/templates/scaffold/app/nextjs/src/types/app/page.d.ts +0 -8
@@ -22,7 +22,7 @@
22
22
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
23
23
  },
24
24
  "dependencies": {
25
- "@cbnventures/nova": "0.34.1"
25
+ "@cbnventures/nova": "0.36.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -1,8 +1,21 @@
1
1
  import SwiftUI
2
2
 
3
+ ///
4
+ /// [__WORKSPACE_TITLE__] Application.
5
+ ///
6
+ /// Creates the shared SwiftUI scene for the generated iOS and macOS
7
+ /// application.
8
+ ///
9
+ /// - Since: UNRELEASED
10
+ ///
3
11
  @main
4
- struct [__WORKSPACE_IDENTIFIER__]App: App {
5
- var body: some Scene {
12
+ internal struct [__WORKSPACE_IDENTIFIER__]App: App {
13
+ ///
14
+ /// [__WORKSPACE_TITLE__] Application - Body.
15
+ ///
16
+ /// - Since: UNRELEASED
17
+ ///
18
+ internal var body: some Scene {
6
19
  #if os(macOS)
7
20
  WindowGroup {
8
21
  ContentView()
@@ -275,7 +275,7 @@ private struct SocialLinkView: View {
275
275
  ///
276
276
  /// - Since: UNRELEASED
277
277
  ///
278
- private let label: String
278
+ private let label: LocalizedStringKey
279
279
 
280
280
  ///
281
281
  /// Social Link View - Destination.
@@ -297,7 +297,7 @@ private struct SocialLinkView: View {
297
297
  ///
298
298
  /// - Since: UNRELEASED
299
299
  ///
300
- fileprivate init(image: String, label: String, url: String) {
300
+ fileprivate init(image: String, label: LocalizedStringKey, url: String) {
301
301
  self.image = image
302
302
  self.label = label
303
303
  destination = URL(string: url)!
@@ -327,7 +327,7 @@ private struct SocialLinkView: View {
327
327
  }
328
328
  .buttonStyle(.plain)
329
329
  .foregroundStyle(.secondary)
330
- .accessibilityLabel(label)
330
+ .accessibilityLabel(Text(label))
331
331
  }
332
332
  }
333
333
 
@@ -356,7 +356,7 @@ private struct LaunchStepView: View {
356
356
  ///
357
357
  /// - Since: UNRELEASED
358
358
  ///
359
- private let title: String
359
+ private let title: LocalizedStringKey
360
360
 
361
361
  ///
362
362
  /// Launch Step View - Description.
@@ -365,7 +365,7 @@ private struct LaunchStepView: View {
365
365
  ///
366
366
  /// - Since: UNRELEASED
367
367
  ///
368
- private let description: String
368
+ private let description: LocalizedStringKey
369
369
 
370
370
  ///
371
371
  /// Launch Step View - Constructor.
@@ -378,7 +378,7 @@ private struct LaunchStepView: View {
378
378
  ///
379
379
  /// - Since: UNRELEASED
380
380
  ///
381
- fileprivate init(number: String, title: String, description: String) {
381
+ fileprivate init(number: String, title: LocalizedStringKey, description: LocalizedStringKey) {
382
382
  self.number = number
383
383
  self.title = title
384
384
  self.description = description
@@ -0,0 +1,75 @@
1
+ {
2
+ "sourceLanguage" : "en",
3
+ "strings" : {
4
+ "[__WORKSPACE_TITLE__]" : {
5
+
6
+ },
7
+ "A native Apple workspace with strict checks, tests, and a clean path from first view to release." : {
8
+
9
+ },
10
+ "Build the same production artifact Nova already validates." : {
11
+
12
+ },
13
+ "Explore SwiftUI" : {
14
+
15
+ },
16
+ "Facebook" : {
17
+
18
+ },
19
+ "Generated with Nova" : {
20
+
21
+ },
22
+ "GitHub" : {
23
+
24
+ },
25
+ "Google Play" : {
26
+
27
+ },
28
+ "Instagram" : {
29
+
30
+ },
31
+ "Keep the contract" : {
32
+
33
+ },
34
+ "LAUNCH SEQUENCE" : {
35
+
36
+ },
37
+ "LinkedIn" : {
38
+
39
+ },
40
+ "Nova" : {
41
+
42
+ },
43
+ "Nova × Apple" : {
44
+
45
+ },
46
+ "Ship confidently" : {
47
+
48
+ },
49
+ "Read Nova Docs ↗" : {
50
+
51
+ },
52
+ "Replace this starter with your first real product experience." : {
53
+
54
+ },
55
+ "Run the workspace checks while the project takes shape." : {
56
+
57
+ },
58
+ "Shape the experience" : {
59
+
60
+ },
61
+ "Start in Sources/ContentView.swift" : {
62
+
63
+ },
64
+ "starts here." : {
65
+
66
+ },
67
+ "X" : {
68
+
69
+ },
70
+ "YouTube" : {
71
+
72
+ }
73
+ },
74
+ "version" : "1.0"
75
+ }
@@ -2,9 +2,21 @@ import Testing
2
2
 
3
3
  @testable import [__WORKSPACE_IDENTIFIER__]
4
4
 
5
- struct [__WORKSPACE_IDENTIFIER__]Tests {
5
+ ///
6
+ /// [__WORKSPACE_TITLE__] Tests.
7
+ ///
8
+ /// - Since: UNRELEASED
9
+ ///
10
+ internal struct [__WORKSPACE_IDENTIFIER__]Tests {
11
+ ///
12
+ /// [__WORKSPACE_TITLE__] Tests - Application Loads.
13
+ ///
14
+ /// Confirms the generated test target can load the application module.
15
+ ///
16
+ /// - Since: UNRELEASED
17
+ ///
6
18
  @Test
7
- func applicationLoads() {
19
+ internal func applicationLoads() {
8
20
  #expect(true)
9
21
  }
10
22
  }
@@ -23,7 +23,7 @@
23
23
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
24
24
  },
25
25
  "dependencies": {
26
- "@cbnventures/nova": "0.34.1"
26
+ "@cbnventures/nova": "0.36.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -23,7 +23,7 @@
23
23
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
24
24
  },
25
25
  "dependencies": {
26
- "@cbnventures/nova": "0.34.1",
26
+ "@cbnventures/nova": "0.36.0",
27
27
  "astro": "[__SCAFFOLD_VERSION_ASTRO__]",
28
28
  "cookie": "[__SCAFFOLD_VERSION_COOKIE__]"
29
29
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "metadata": {
3
+ "title": "Nova × Astro"
4
+ },
5
+ "brand": {
6
+ "nova": "Nova",
7
+ "framework": "Astro"
8
+ },
9
+ "header": {
10
+ "readNovaDocs": "Read Nova Docs ↗"
11
+ },
12
+ "introduction": {
13
+ "title": "Astro",
14
+ "titleAccent": "starts here.",
15
+ "description": "A content-ready Astro workspace with strict checks, tests, and a clean path from first page to production.",
16
+ "exploreDocs": "Explore Astro docs ↗",
17
+ "editHint": "Start in"
18
+ },
19
+ "sequence": {
20
+ "label": "Launch sequence",
21
+ "stepOne": {
22
+ "number": "01",
23
+ "title": "Shape the experience",
24
+ "description": "Replace this starter with your first real product experience."
25
+ },
26
+ "stepTwo": {
27
+ "number": "02",
28
+ "title": "Keep the contract",
29
+ "description": "Run the workspace checks while the project takes shape."
30
+ },
31
+ "stepThree": {
32
+ "number": "03",
33
+ "title": "Ship confidently",
34
+ "description": "Build the same production artifact Nova already validates."
35
+ }
36
+ },
37
+ "footer": {
38
+ "credit": "Generated with Nova",
39
+ "socialLabel": "CBN Ventures social media",
40
+ "facebook": "Facebook",
41
+ "x": "X",
42
+ "youtube": "YouTube",
43
+ "instagram": "Instagram",
44
+ "github": "GitHub",
45
+ "googlePlay": "Google Play",
46
+ "linkedin": "LinkedIn"
47
+ }
48
+ }
@@ -1,14 +1,15 @@
1
1
  ---
2
+ import messages from '../i18n/en.json';
2
3
  import '../styles/nova-launchpad.css';
3
4
  ---
4
5
 
5
6
  <!doctype html>
6
- <html lang="en">
7
+ <html lang={Astro.currentLocale ?? 'en'}>
7
8
  <head>
8
9
  <meta charset="UTF-8" />
9
10
  <meta name="viewport" content="width=device-width" />
10
11
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
11
- <title>Nova × Astro</title>
12
+ <title>{messages.metadata.title}</title>
12
13
  </head>
13
14
  <body>
14
15
  <main class="nova-launchpad" data-nova-framework="astro">
@@ -16,81 +17,81 @@ import '../styles/nova-launchpad.css';
16
17
  <header class="nova-launchpad__header">
17
18
  <div class="nova-launchpad__brand">
18
19
  <svg class="nova-launchpad__mark" aria-hidden="true" viewBox="0 0 1024 1024"><use href="/nova-socials.svg#nova"></use></svg>
19
- <span>Nova</span>
20
+ <span>{messages.brand.nova}</span>
20
21
  <span class="nova-launchpad__cross">×</span>
21
- <span>Astro</span>
22
+ <span>{messages.brand.framework}</span>
22
23
  </div>
23
24
  <a class="nova-launchpad__docs-link" href="https://nova.cbnventures.io/docs/quickstart/" target="_blank" rel="noreferrer">
24
- Read Nova Docs ↗
25
+ {messages.header.readNovaDocs}
25
26
  </a>
26
27
  </header>
27
28
  <div class="nova-launchpad__body">
28
29
  <section>
29
30
  <h1 class="nova-launchpad__title">
30
- <span>Astro</span>
31
- <span class="nova-launchpad__title-accent">starts here.</span>
31
+ <span>{messages.introduction.title}</span>
32
+ <span class="nova-launchpad__title-accent">{messages.introduction.titleAccent}</span>
32
33
  </h1>
33
34
  <p class="nova-launchpad__lede">
34
- A content-ready Astro workspace with strict checks, tests, and a clean path from first page to production.
35
+ {messages.introduction.description}
35
36
  </p>
36
37
  <div class="nova-launchpad__actions">
37
38
  <a class="nova-launchpad__primary-link" href="https://docs.astro.build" target="_blank" rel="noreferrer">
38
- Explore Astro docs ↗
39
+ {messages.introduction.exploreDocs}
39
40
  </a>
40
41
  <span class="nova-launchpad__edit-hint">
41
- Start in <code>src/pages/index.astro</code>
42
+ {messages.introduction.editHint} <code>src/pages/index.astro</code>
42
43
  </span>
43
44
  </div>
44
45
  </section>
45
- <aside class="nova-launchpad__sequence" aria-label="Launch sequence">
46
- <p class="nova-launchpad__sequence-label">Launch sequence</p>
46
+ <aside class="nova-launchpad__sequence" aria-label={messages.sequence.label}>
47
+ <p class="nova-launchpad__sequence-label">{messages.sequence.label}</p>
47
48
  <ol class="nova-launchpad__steps">
48
49
  <li class="nova-launchpad__step">
49
- <span class="nova-launchpad__step-number">01</span>
50
+ <span class="nova-launchpad__step-number">{messages.sequence.stepOne.number}</span>
50
51
  <div>
51
- <strong>Shape the experience</strong>
52
- <p>Replace this starter with your first real product experience.</p>
52
+ <strong>{messages.sequence.stepOne.title}</strong>
53
+ <p>{messages.sequence.stepOne.description}</p>
53
54
  </div>
54
55
  </li>
55
56
  <li class="nova-launchpad__step">
56
- <span class="nova-launchpad__step-number">02</span>
57
+ <span class="nova-launchpad__step-number">{messages.sequence.stepTwo.number}</span>
57
58
  <div>
58
- <strong>Keep the contract</strong>
59
- <p>Run the workspace checks while the project takes shape.</p>
59
+ <strong>{messages.sequence.stepTwo.title}</strong>
60
+ <p>{messages.sequence.stepTwo.description}</p>
60
61
  </div>
61
62
  </li>
62
63
  <li class="nova-launchpad__step">
63
- <span class="nova-launchpad__step-number">03</span>
64
+ <span class="nova-launchpad__step-number">{messages.sequence.stepThree.number}</span>
64
65
  <div>
65
- <strong>Ship confidently</strong>
66
- <p>Build the same production artifact Nova already validates.</p>
66
+ <strong>{messages.sequence.stepThree.title}</strong>
67
+ <p>{messages.sequence.stepThree.description}</p>
67
68
  </div>
68
69
  </li>
69
70
  </ol>
70
71
  </aside>
71
72
  </div>
72
73
  <footer class="nova-launchpad__footer">
73
- <span>Generated with Nova</span>
74
- <nav class="nova-launchpad__socials" aria-label="CBN Ventures social media">
75
- <a class="nova-launchpad__social-link" href="https://www.facebook.com/cbnventures" target="_blank" rel="noreferrer" aria-label="Facebook">
74
+ <span>{messages.footer.credit}</span>
75
+ <nav class="nova-launchpad__socials" aria-label={messages.footer.socialLabel}>
76
+ <a class="nova-launchpad__social-link" href="https://www.facebook.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.facebook}>
76
77
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#facebook"></use></svg>
77
78
  </a>
78
- <a class="nova-launchpad__social-link" href="https://x.com/cbnventures" target="_blank" rel="noreferrer" aria-label="X">
79
+ <a class="nova-launchpad__social-link" href="https://x.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.x}>
79
80
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#x"></use></svg>
80
81
  </a>
81
- <a class="nova-launchpad__social-link" href="https://www.youtube.com/@cbnventures" target="_blank" rel="noreferrer" aria-label="YouTube">
82
+ <a class="nova-launchpad__social-link" href="https://www.youtube.com/@cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.youtube}>
82
83
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#youtube"></use></svg>
83
84
  </a>
84
- <a class="nova-launchpad__social-link" href="https://www.instagram.com/cbnventures/" target="_blank" rel="noreferrer" aria-label="Instagram">
85
+ <a class="nova-launchpad__social-link" href="https://www.instagram.com/cbnventures/" target="_blank" rel="noreferrer" aria-label={messages.footer.instagram}>
85
86
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#instagram"></use></svg>
86
87
  </a>
87
- <a class="nova-launchpad__social-link" href="https://github.com/cbnventures" target="_blank" rel="noreferrer" aria-label="GitHub">
88
+ <a class="nova-launchpad__social-link" href="https://github.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.github}>
88
89
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#github"></use></svg>
89
90
  </a>
90
- <a class="nova-launchpad__social-link" href="https://play.google.com/store/apps/dev?id=6419450160526226105" target="_blank" rel="noreferrer" aria-label="Google Play">
91
+ <a class="nova-launchpad__social-link" href="https://play.google.com/store/apps/dev?id=6419450160526226105" target="_blank" rel="noreferrer" aria-label={messages.footer.googlePlay}>
91
92
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#google-play"></use></svg>
92
93
  </a>
93
- <a class="nova-launchpad__social-link" href="https://www.linkedin.com/company/cbnventures/" target="_blank" rel="noreferrer" aria-label="LinkedIn">
94
+ <a class="nova-launchpad__social-link" href="https://www.linkedin.com/company/cbnventures/" target="_blank" rel="noreferrer" aria-label={messages.footer.linkedin}>
94
95
  <svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#linkedin"></use></svg>
95
96
  </a>
96
97
  </nav>
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.34.1",
27
+ "@cbnventures/nova": "0.36.0",
28
28
  "discord.js": "[__SCAFFOLD_VERSION_DISCORD_JS__]"
29
29
  },
30
30
  "devDependencies": {
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.34.1",
27
+ "@cbnventures/nova": "0.36.0",
28
28
  "express": "[__SCAFFOLD_VERSION_EXPRESS__]"
29
29
  },
30
30
  "devDependencies": {
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.34.1",
27
+ "@cbnventures/nova": "0.36.0",
28
28
  "next": "[__SCAFFOLD_VERSION_NEXT__]",
29
29
  "react": "[__SCAFFOLD_VERSION_REACT__]",
30
30
  "react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
@@ -0,0 +1,31 @@
1
+ {
2
+ "metadataTitle": "Nova × Next.js",
3
+ "metadataDescription": "A Nova-managed Next.js application",
4
+ "brandNova": "Nova",
5
+ "brandFramework": "Next.js",
6
+ "readNovaDocs": "Read Nova Docs ↗",
7
+ "title": "Next.js",
8
+ "titleAccent": "starts here.",
9
+ "description": "A production-ready Next.js workspace with strict checks, tests, and a clean path from first edit to deployment.",
10
+ "exploreDocs": "Explore Next.js docs ↗",
11
+ "editHint": "Start in",
12
+ "launchSequence": "Launch sequence",
13
+ "stepOneNumber": "01",
14
+ "stepOneTitle": "Shape the experience",
15
+ "stepOneDescription": "Replace this starter with your first real product experience.",
16
+ "stepTwoNumber": "02",
17
+ "stepTwoTitle": "Keep the contract",
18
+ "stepTwoDescription": "Run the workspace checks while the project takes shape.",
19
+ "stepThreeNumber": "03",
20
+ "stepThreeTitle": "Ship confidently",
21
+ "stepThreeDescription": "Build the same production artifact Nova already validates.",
22
+ "footerCredit": "Generated with Nova",
23
+ "socialLabel": "CBN Ventures social media",
24
+ "facebook": "Facebook",
25
+ "x": "X",
26
+ "youtube": "YouTube",
27
+ "instagram": "Instagram",
28
+ "github": "GitHub",
29
+ "googlePlay": "Google Play",
30
+ "linkedin": "LinkedIn"
31
+ }
@@ -0,0 +1,33 @@
1
+ import type {
2
+ App_Lang_Dictionaries_Dictionaries,
3
+ App_Lang_Dictionaries_GetDictionary_Locale,
4
+ App_Lang_Dictionaries_GetDictionary_Returns,
5
+ } from '../../types/app/[lang]/dictionaries.d.ts';
6
+
7
+ /**
8
+ * Dictionaries - Dictionaries.
9
+ *
10
+ * Lazily loads only the dictionary required by the active locale route.
11
+ * Add another loader when the application gains another locale.
12
+ *
13
+ * @since 0.0.0
14
+ */
15
+ const dictionaries: App_Lang_Dictionaries_Dictionaries = {
16
+ en: async () => (await import('./dictionaries/en.json')).default,
17
+ };
18
+
19
+ /**
20
+ * Dictionaries - Get Dictionary.
21
+ *
22
+ * Loads the server-side message catalog for a supported locale.
23
+ * Keeps dictionary loading on the server and out of the client bundle.
24
+ *
25
+ * @param {App_Lang_Dictionaries_GetDictionary_Locale} locale - Locale.
26
+ *
27
+ * @returns {App_Lang_Dictionaries_GetDictionary_Returns}
28
+ *
29
+ * @since 0.0.0
30
+ */
31
+ export function getDictionary(locale: App_Lang_Dictionaries_GetDictionary_Locale): App_Lang_Dictionaries_GetDictionary_Returns {
32
+ return dictionaries[locale]();
33
+ }
@@ -0,0 +1,92 @@
1
+ import { notFound } from 'next/navigation';
2
+
3
+ import {
4
+ hasLocale,
5
+ locales,
6
+ } from '../../i18n/config';
7
+ import '../../styles/nova-launchpad.css';
8
+ import '../globals.css';
9
+ import { getDictionary } from './dictionaries';
10
+
11
+ import type {
12
+ App_Lang_Layout_GenerateMetadata_Dictionary,
13
+ App_Lang_Layout_GenerateMetadata_Params,
14
+ App_Lang_Layout_GenerateMetadata_Props,
15
+ App_Lang_Layout_GenerateMetadata_Returns,
16
+ App_Lang_Layout_GenerateStaticParams_Returns,
17
+ App_Lang_Layout_RootLayout_Params,
18
+ App_Lang_Layout_RootLayout_Props,
19
+ App_Lang_Layout_RootLayout_Returns,
20
+ } from '../../types/app/[lang]/layout.d.ts';
21
+
22
+ /**
23
+ * Layout - Generate Metadata.
24
+ *
25
+ * Uses the active locale dictionary for page title and description metadata.
26
+ * Keeps translated document metadata aligned with the rendered locale route.
27
+ *
28
+ * @param {App_Lang_Layout_GenerateMetadata_Props} props - Props.
29
+ *
30
+ * @returns {App_Lang_Layout_GenerateMetadata_Returns}
31
+ *
32
+ * @since 0.0.0
33
+ */
34
+ export async function generateMetadata(props: App_Lang_Layout_GenerateMetadata_Props): App_Lang_Layout_GenerateMetadata_Returns {
35
+ const params: App_Lang_Layout_GenerateMetadata_Params = await props['params'];
36
+
37
+ if (hasLocale(params['lang']) === false) {
38
+ notFound();
39
+ }
40
+
41
+ const dictionary: App_Lang_Layout_GenerateMetadata_Dictionary = await getDictionary(params['lang']);
42
+
43
+ return {
44
+ title: dictionary['metadataTitle'],
45
+ description: dictionary['metadataDescription'],
46
+ icons: {
47
+ icon: '/favicon.svg',
48
+ },
49
+ };
50
+ }
51
+
52
+ /**
53
+ * Layout - Generate Static Params.
54
+ *
55
+ * Prepares one statically renderable route for every configured locale.
56
+ * English remains the only generated route until consumers add more locales.
57
+ *
58
+ * @returns {App_Lang_Layout_GenerateStaticParams_Returns}
59
+ *
60
+ * @since 0.0.0
61
+ */
62
+ export function generateStaticParams(): App_Lang_Layout_GenerateStaticParams_Returns {
63
+ return locales.map((lang) => ({ lang }));
64
+ }
65
+
66
+ /**
67
+ * Layout - Root Layout.
68
+ *
69
+ * Wraps every localized application route in the shared HTML document.
70
+ * Unsupported locale segments resolve through Next.js's not-found boundary.
71
+ *
72
+ * @param {App_Lang_Layout_RootLayout_Props} props - Props.
73
+ *
74
+ * @returns {App_Lang_Layout_RootLayout_Returns}
75
+ *
76
+ * @since 0.0.0
77
+ */
78
+ async function RootLayout(props: App_Lang_Layout_RootLayout_Props): App_Lang_Layout_RootLayout_Returns {
79
+ const params: App_Lang_Layout_RootLayout_Params = await props['params'];
80
+
81
+ if (hasLocale(params['lang']) === false) {
82
+ notFound();
83
+ }
84
+
85
+ return (
86
+ <html lang={params['lang']}>
87
+ <body>{props['children']}</body>
88
+ </html>
89
+ );
90
+ }
91
+
92
+ export default RootLayout;