@cbnventures/nova 0.35.0 → 0.37.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 (147) hide show
  1. package/bin/nova.mjs +17 -0
  2. package/build/package.json +3 -2
  3. package/build/scaffold-versions.json +54 -44
  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/astro.d.ts.map +1 -1
  19. package/build/src/cli/scaffold/app/astro.js +0 -1
  20. package/build/src/cli/scaffold/app/astro.js.map +1 -1
  21. package/build/src/cli/scaffold/app/vite.d.ts.map +1 -1
  22. package/build/src/cli/scaffold/app/vite.js +0 -1
  23. package/build/src/cli/scaffold/app/vite.js.map +1 -1
  24. package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
  25. package/build/src/cli/scaffold/docs/docusaurus.js +0 -1
  26. package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -1
  27. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  28. package/build/src/cli/utility/changelog.js +119 -67
  29. package/build/src/cli/utility/changelog.js.map +1 -1
  30. package/build/src/cli/utility/configure.d.ts.map +1 -1
  31. package/build/src/cli/utility/configure.js +126 -1
  32. package/build/src/cli/utility/configure.js.map +1 -1
  33. package/build/src/lib/corepack.d.ts +2 -2
  34. package/build/src/lib/corepack.d.ts.map +1 -1
  35. package/build/src/lib/corepack.js +16 -6
  36. package/build/src/lib/corepack.js.map +1 -1
  37. package/build/src/lib/docker-packaging.d.ts.map +1 -1
  38. package/build/src/lib/docker-packaging.js +15 -12
  39. package/build/src/lib/docker-packaging.js.map +1 -1
  40. package/build/src/lib/dotenv.d.ts.map +1 -1
  41. package/build/src/lib/dotenv.js +17 -8
  42. package/build/src/lib/dotenv.js.map +1 -1
  43. package/build/src/lib/env-managed-set.d.ts.map +1 -1
  44. package/build/src/lib/env-managed-set.js +55 -11
  45. package/build/src/lib/env-managed-set.js.map +1 -1
  46. package/build/src/lib/env-namespace.d.ts.map +1 -1
  47. package/build/src/lib/env-namespace.js +1 -0
  48. package/build/src/lib/env-namespace.js.map +1 -1
  49. package/build/src/lib/env-profiles.d.ts +3 -0
  50. package/build/src/lib/env-profiles.d.ts.map +1 -0
  51. package/build/src/lib/env-profiles.js +70 -0
  52. package/build/src/lib/env-profiles.js.map +1 -0
  53. package/build/src/lib/env-status.d.ts.map +1 -1
  54. package/build/src/lib/env-status.js +23 -2
  55. package/build/src/lib/env-status.js.map +1 -1
  56. package/build/src/lib/item.d.ts.map +1 -1
  57. package/build/src/lib/item.js +20 -3
  58. package/build/src/lib/item.js.map +1 -1
  59. package/build/src/lib/nova-config.d.ts.map +1 -1
  60. package/build/src/lib/nova-config.js +31 -0
  61. package/build/src/lib/nova-config.js.map +1 -1
  62. package/build/src/lib/regex.d.ts +7 -1
  63. package/build/src/lib/regex.d.ts.map +1 -1
  64. package/build/src/lib/regex.js +7 -1
  65. package/build/src/lib/regex.js.map +1 -1
  66. package/build/src/lib/run-scripts.d.ts.map +1 -1
  67. package/build/src/lib/run-scripts.js +24 -0
  68. package/build/src/lib/run-scripts.js.map +1 -1
  69. package/build/src/lib/scaffold.d.ts.map +1 -1
  70. package/build/src/lib/scaffold.js +7 -0
  71. package/build/src/lib/scaffold.js.map +1 -1
  72. package/build/src/lib/workflow-templates.js +4 -4
  73. package/build/src/lib/workflow-templates.js.map +1 -1
  74. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +42 -4
  75. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +193 -17
  76. package/build/src/types/cli/utility/changelog.d.ts +49 -6
  77. package/build/src/types/cli/utility/configure.d.ts +52 -0
  78. package/build/src/types/lib/corepack.d.ts +13 -0
  79. package/build/src/types/lib/docker-packaging.d.ts +2 -0
  80. package/build/src/types/lib/dotenv.d.ts +10 -3
  81. package/build/src/types/lib/env-managed-set.d.ts +15 -0
  82. package/build/src/types/lib/env-namespace.d.ts +5 -0
  83. package/build/src/types/lib/env-profiles.d.ts +67 -0
  84. package/build/src/types/lib/env-status.d.ts +9 -0
  85. package/build/src/types/lib/item.d.ts +20 -3
  86. package/build/src/types/lib/nova-config.d.ts +14 -0
  87. package/build/src/types/lib/regex.d.ts +0 -2
  88. package/build/src/types/lib/run-scripts.d.ts +16 -0
  89. package/build/src/types/lib/scaffold.d.ts +8 -0
  90. package/build/src/types/shared.d.ts +47 -6
  91. package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +20 -0
  92. package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +22 -0
  93. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +16 -0
  94. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +40 -0
  95. package/build/src/types/tests/cli/utility/changelog.test.d.ts +48 -45
  96. package/build/src/types/tests/cli/utility/configure.test.d.ts +1 -0
  97. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
  98. package/build/src/types/tests/lib/docker-packaging.test.d.ts +14 -0
  99. package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -0
  100. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +8 -5
  101. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +8 -5
  102. package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +6 -6
  103. package/build/templates/generators/must-haves/agent-conventions/conventions/go.md +241 -0
  104. package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +155 -0
  105. package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +7 -7
  106. package/build/templates/generators/must-haves/agent-conventions/conventions/rust.md +227 -0
  107. package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +9 -9
  108. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +145 -23
  109. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +112 -103
  110. package/build/templates/generators/must-haves/ignore-files/gitignore +1 -0
  111. package/build/templates/scaffold/app/android/package.json +1 -1
  112. package/build/templates/scaffold/app/apple/Sources/App.swift +15 -2
  113. package/build/templates/scaffold/app/apple/Tests/AppTests.swift +14 -2
  114. package/build/templates/scaffold/app/apple/package.json +1 -1
  115. package/build/templates/scaffold/app/apple/project.yml +1 -0
  116. package/build/templates/scaffold/app/astro/package.json +1 -1
  117. package/build/templates/scaffold/app/discord-bot/package.json +1 -1
  118. package/build/templates/scaffold/app/express/package.json +1 -1
  119. package/build/templates/scaffold/app/nextjs/package.json +1 -1
  120. package/build/templates/scaffold/app/vite/package.json +2 -2
  121. package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
  122. package/build/templates/scaffold/docs/docusaurus/package.json +4 -4
  123. package/build/templates/scaffold/docs/docusaurus/static/images/nova.svg +13 -5
  124. package/build/templates/scaffold/docs/docusaurus/vitest.config.mts +9 -0
  125. package/build/templates/scaffold/package/github-action/package.json +1 -1
  126. package/build/templates/scaffold/package/homebridge/package.json +1 -1
  127. package/build/templates/scaffold/package/pfsense/package.json +1 -1
  128. package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +10 -0
  129. package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +62 -0
  130. package/build/templates/scaffold-options/app/android-native/.gitattributes +2 -0
  131. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/MainActivity.kt +16 -2
  132. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/NavigationKeys.kt +7 -1
  133. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/data/DataRepository.kt +28 -4
  134. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Color.kt +40 -6
  135. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Theme.kt +22 -1
  136. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Type.kt +8 -2
  137. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModel.kt +42 -6
  138. package/build/templates/scaffold-options/app/android-native/app/src/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
  139. package/build/templates/scaffold-options/app/android-native/gradle/wrapper/gradle-wrapper.jar +0 -0
  140. package/build/templates/scaffold-options/app/android-native/gradlew +189 -113
  141. package/build/templates/scaffold-options/app/android-native/gradlew.bat +79 -51
  142. package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
  143. package/build/templates/scaffold-options/app/web-launchpad/public/favicon.svg +13 -5
  144. package/build/templates/scaffold-options/docker-image/common/dockerignore +2 -0
  145. package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
  146. package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
  147. package/package.json +3 -2
@@ -22,7 +22,7 @@
22
22
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
23
23
  },
24
24
  "dependencies": {
25
- "@cbnventures/nova": "0.35.0"
25
+ "@cbnventures/nova": "0.37.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()
@@ -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.35.0"
26
+ "@cbnventures/nova": "0.37.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -20,6 +20,7 @@ targets:
20
20
  settings:
21
21
  base:
22
22
  ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
23
+ INFOPLIST_KEY_UILaunchScreen_Generation: YES
23
24
  PRODUCT_NAME: [__WORKSPACE_TITLE__]
24
25
  PRODUCT_BUNDLE_IDENTIFIER: [__APPLE_BUNDLE_IDENTIFIER__]
25
26
  ENABLE_PREVIEWS: YES
@@ -23,7 +23,7 @@
23
23
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
24
24
  },
25
25
  "dependencies": {
26
- "@cbnventures/nova": "0.35.0",
26
+ "@cbnventures/nova": "0.37.0",
27
27
  "astro": "[__SCAFFOLD_VERSION_ASTRO__]",
28
28
  "cookie": "[__SCAFFOLD_VERSION_COOKIE__]"
29
29
  },
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.35.0",
27
+ "@cbnventures/nova": "0.37.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.35.0",
27
+ "@cbnventures/nova": "0.37.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.35.0",
27
+ "@cbnventures/nova": "0.37.0",
28
28
  "next": "[__SCAFFOLD_VERSION_NEXT__]",
29
29
  "react": "[__SCAFFOLD_VERSION_REACT__]",
30
30
  "react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
@@ -16,13 +16,13 @@
16
16
  "build:types": "nova utility type-check --project tsconfig.json",
17
17
  "build:app": "vite build",
18
18
  "clean": "nova utility run-scripts --parallel \"clean:*\"",
19
- "clean:build": "shx rm -rf ./dist"
19
+ "clean:build": "shx rm -rf ./build"
20
20
  },
21
21
  "engines": {
22
22
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
23
23
  },
24
24
  "dependencies": {
25
- "@cbnventures/nova": "0.35.0"
25
+ "@cbnventures/nova": "0.37.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_22__]",
@@ -4,6 +4,9 @@ import frameworkPlugins from './config/framework-plugins.js';
4
4
  import pwaPlugins from './config/pwa-plugins.js';
5
5
 
6
6
  export default defineConfig({
7
+ build: {
8
+ outDir: 'build',
9
+ },
7
10
  plugins: [
8
11
  ...frameworkPlugins,
9
12
  ...pwaPlugins,
@@ -6,7 +6,7 @@
6
6
  "dev": "nova utility run-scripts --parallel --node-env development \"dev:*\"",
7
7
  "dev:start": "docusaurus start --port 3000",
8
8
  "prod": "nova utility run-scripts --sequential --node-env production \"prod:*\"",
9
- "prod:serve": "docusaurus serve --port 3000",
9
+ "prod:serve": "docusaurus serve --dir build --port 3000",
10
10
  "check": "nova utility run-scripts --sequential \"check:*\"",
11
11
  "check:lint": "eslint ./ --max-warnings=0",
12
12
  "check:types-app": "nova utility type-check --project tsconfig.app.json",
@@ -14,7 +14,7 @@
14
14
  "check:types-tests": "nova utility type-check --project tsconfig.tests.json",
15
15
  "check:test": "vitest run",
16
16
  "build": "nova utility run-scripts --sequential --node-env production \"build:*\"",
17
- "build:build": "docusaurus build",
17
+ "build:build": "docusaurus build --out-dir build",
18
18
  "clean": "nova utility run-scripts --parallel \"clean:*\"",
19
19
  "clean:build": "shx rm -rf ./build",
20
20
  "clean:clear": "docusaurus clear",
@@ -27,8 +27,8 @@
27
27
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
28
28
  },
29
29
  "dependencies": {
30
- "@cbnventures/docusaurus-preset-nova": "0.35.0",
31
- "@cbnventures/nova": "0.35.0",
30
+ "@cbnventures/docusaurus-preset-nova": "0.37.0",
31
+ "@cbnventures/nova": "0.37.0",
32
32
  "@docusaurus/core": "[__SCAFFOLD_VERSION_DOCUSAURUS__]",
33
33
  "react": "[__SCAFFOLD_VERSION_REACT__]",
34
34
  "react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
@@ -1,5 +1,13 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
- <path fill="#E25050" d="M511.997 230.398c12.104 0 24.158 3.573 36.162 10.721l122.837 70.518 291.733 166.787 4.234 2.265c8.458 4.543 16.845 9.199 24.869 14.379l2.265 1.324c12.443 7.347 24.418 16.028 27.602 32.271.875 5.562 1.173 10.758.923 15.63l-.058.97c-1.147 21.44-11.992 36.699-32.26 48.238-147.619 84.045-295.09 168.353-442.145 253.38-12.353 7.143-23.892 10.653-35.379 10.719h-.783c-11.745.092-23.528-3.414-36.162-10.719-147.055-85.027-294.526-169.335-442.145-253.38-21.606-12.301-32.537-28.758-32.403-52.476 0-2.919.18-5.952.557-9.107.109-.971.234-1.953.375-2.946l.037-.052.039-.257c3.377-17.228 16.644-25.949 29.869-33.594 9.359-6.044 19.215-11.374 29.111-16.651l291.728-166.784 122.832-70.515c12.005-7.148 24.059-10.721 36.163-10.721Z"/>
3
- <path fill="#9B1F1F" d="M1020.937 525.444c1.71 3.678 2.124 11.057 2.161 16.228l.061 22.598c.123 40.584.329 81.804.697 122.286l.144 13.034c0 1.248-.012 2.474-.066 3.679-.727 17.877-8.876 31.212-23.7 40.143-32.911 19.826-65.98 39.39-99.074 58.912l-70.907 41.846-24.575 14.556c-23.269 13.898-46.541 27.79-69.858 41.608-23.851 14.134-47.721 28.236-71.598 42.328l-27.852 16.659c-29.162 17.452-58.341 34.871-87.806 51.786l-7.373 4.218c-.45.26-.899.516-1.349.767l-1.699.969c-8.437 4.796-17.254 7.045-26.143 6.939-8.89.106-17.706-2.143-26.143-6.939l-3.047-1.737c-41.365-23.581-82.124-48.232-123.014-72.653-23.883-14.094-47.76-28.199-71.617-42.337-23.296-13.805-46.548-27.685-69.796-41.571l-95.544-56.439c-33.094-19.522-66.162-39.086-99.073-58.912-14.814-8.924-22.962-22.247-23.698-40.105C.012 702.091 0 700.852 0 699.59l.144-13.035c.368-40.48.574-81.701.697-122.285l.058-22.064c.012-5.077.369-12.502 2.015-16.429l.156-.394c-4.013 30.015 7.698 52.462 32.73 68.205l36.856 21.029c134.521 76.367 268.617 153.489 402.441 231.075 12.844 7.446 24.851 11.308 36.902 11.369 12.052-.061 24.059-3.923 36.903-11.369 133.824-77.586 267.921-154.707 402.44-231.076l36.844-21.021c24.541-15.428 36.283-37.297 32.965-66.42l-.24-1.792.026.061Z"/>
4
- <path fill="#FFBA33" d="M552.949 248.396c.043 84.327-.118 167.461-.215 250.596-.06 52.015.113 104.031-.099 156.046-.082 20.142-11.05 35.071-28.831 40.646-16.644 5.218-35.604-.28-44.505-15.793-4.987-8.693-7.614-19.996-7.654-30.137-.499-126.2-.325-252.402-.334-378.603-.001-6.395-.099-12.79-.273-20.375.013-71.108.152-141.026.279-210.944.044-24.482 15.389-38.565 42.043-38.552 24.242.012 39.352 14.853 39.36 38.702.024 69.074.036 138.148.229 208.414ZM296.949 343.11c.036 56.983.009 112.774-.305 168.564-.111 19.619-10.565 34.36-27.594 40.234-16.607 5.729-35.369.883-44.956-14.325-5.115-8.113-8.136-18.881-8.387-28.549-.984-37.881-.488-75.802-.664-114.898.012-66.857.186-132.524.266-198.19.064-52.456-.011-104.911.024-157.366.016-23.09 16.095-37.312 42.015-37.3 23.59.011 39.358 14.944 39.367 37.421.038 101.073.042 202.145.234 304.409ZM798.702 386.709c.042 41.22-.064 81.247-.238 121.275-.118 27.239-16.395 45.944-40.131 46.256-24.237.311-41.099-18.646-41.155-46.506-.109-55.363-.123-110.727-.298-167.28.012-100.534.585-199.881-.086-299.22-.136-20.158 13.648-35.565 28.465-39.503 21.964-5.838 42.068 3.438 50.449 22.576 2.084 4.758 2.652 10.519 2.659 15.821.161 115.129.143 230.259.335 346.581Z"/>
5
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>docusaurus/images/nova</title>
4
+ <g id="docusaurus/images/nova" stroke="none" fill="none" fill-rule="nonzero">
5
+ <g id="nova-logo-nobg">
6
+ <path d="M511.997004,230.397703 C524.10067,230.397703 536.154753,233.971412 548.159255,241.118829 L670.995809,311.636795 L962.728896,478.424274 L966.962784,480.688689 C975.421293,485.232411 983.808033,489.888331 991.831956,495.067735 L994.096933,496.39226 C1006.53964,503.739074 1018.51485,512.420414 1021.69911,528.662997 C1022.57439,534.225065 1022.87162,539.421248 1022.62158,544.293348 L1022.56429,545.26346 C1021.4169,566.703636 1010.57148,581.96216 990.304353,593.500967 C842.685524,677.546041 695.213677,761.853966 548.159255,846.881171 C535.806383,854.023607 524.266871,857.533941 512.780599,857.601769 L511.997518,857.601769 C500.252095,857.69188 488.46883,854.1862 475.834753,846.881171 C328.780331,761.853966 181.308484,677.546041 33.6896545,593.500967 C12.0835784,581.199847 1.15218764,564.743158 1.28587682,541.02502 C1.28587682,538.105667 1.46625503,535.072605 1.84341858,531.918382 C1.95289104,530.947448 2.07799753,529.965432 2.2191731,528.97221 L2.25581523,528.919708 L2.29489382,528.662997 C5.672248,511.435499 18.9389953,502.714041 32.1638724,495.069108 C41.5232958,489.025097 51.3783731,483.694979 61.2745246,478.418605 L353.002506,311.634781 L475.834753,241.118829 C487.839255,233.971412 499.893338,230.397703 511.997004,230.397703 Z" id="Path" fill="#E25050"></path>
7
+ <path d="M1020.93724,525.443722 L1020.92981,525.383562 L1020.94824,525.465903 L1020.91106,525.383562 C1022.64704,529.062193 1023.06128,536.441085 1023.09805,541.672386 L1023.15937,564.270396 C1023.28165,604.853532 1023.48799,646.074327 1023.85565,686.555814 L1024,699.590359 C1024,700.838355 1023.98806,702.064449 1023.93389,703.268895 C1023.20742,721.146074 1015.05848,734.48165 1000.2342,743.411868 C967.322974,763.237957 934.254569,782.802105 901.160433,802.323526 L872.790796,819.050822 C858.605892,827.41435 844.42316,835.781535 830.252947,844.169632 L805.67792,858.725849 C782.409055,872.623898 759.136744,886.51609 735.820314,900.333598 C711.969157,914.467985 688.098598,928.56954 664.222448,942.661635 L658.443502,946.112431 L636.369526,959.320916 C607.208418,976.772938 578.028864,994.192121 548.563786,1011.1073 L541.191414,1015.32532 C540.740909,1015.58517 540.291714,1015.84151 539.841852,1016.09207 L538.143291,1017.06065 C529.706124,1021.85677 520.889273,1024.10586 511.999788,1024.00357 C503.110351,1024.10576 494.293696,1021.85667 485.856709,1017.06065 L484.210703,1016.1242 C483.744811,1015.86234 483.277324,1015.59583 482.810603,1015.32309 C441.445137,991.741668 400.686196,967.090983 359.796607,942.670201 C335.91348,928.576675 312.036878,914.471561 288.179686,900.333598 C264.88382,886.528277 241.631996,872.648403 218.383648,858.762622 L193.747053,844.169632 C184.300244,838.577567 174.847872,832.994797 165.393001,827.416208 L122.839566,802.323526 C89.7454303,782.802105 56.6770256,763.237957 23.7657994,743.411868 C8.95211308,734.488028 0.804222396,721.165123 0.067900491,703.307021 C0.0123852226,702.090552 0,700.851641 0,699.590359 L0.144034969,686.55489 C0.511961899,646.074184 0.71834058,604.853511 0.840630063,564.270393 L0.899459562,542.205655 C0.911310592,537.129417 1.26808694,529.703938 2.91403395,525.77707 L3.05175667,525.465903 L3.07019009,525.383562 L3.06169907,525.443722 L3.08894175,525.383562 L3.07019009,525.383562 C-0.943182007,555.398102 10.76848,577.84587 35.8000662,593.588327 L72.6563584,614.617205 C207.176568,690.984273 341.273505,768.105762 475.097403,845.691522 C487.941141,853.137794 499.948283,857.000036 511.999083,857.06142 C524.051046,857.000251 536.0585,853.138002 548.902597,845.691522 C682.726495,768.105762 816.823432,690.984273 951.343124,614.616262 L988.186715,593.59532 C1012.72709,578.16763 1024.46983,556.298041 1021.15179,527.175635 L1021.04204,526.251865 L1020.91106,525.383562 L1020.93724,525.443722 Z" id="Path" fill="#9B1F1F"></path>
8
+ <path d="M552.949162,248.395935 C552.991782,332.722855 552.830694,415.85732 552.734119,498.991901 C552.67372,551.007322 552.846919,603.023367 552.63506,655.038005 C552.553079,675.180431 541.585143,690.109325 523.803778,695.684126 C507.160004,700.902106 488.200021,695.404264 479.299441,679.89127 C474.311895,671.198464 471.685465,659.895418 471.64533,649.75377 C471.146422,523.554287 471.320708,397.352106 471.311082,271.150591 C471.310578,264.756015 471.211868,258.361477 471.037815,250.776473 C471.050819,179.66803 471.189431,109.749993 471.316749,39.8319753 C471.361348,15.3498981 486.705515,1.26730252 513.35955,1.27999142 C537.602434,1.29156259 552.712226,16.1325234 552.720611,39.9815372 C552.74491,109.055555 552.756166,178.129574 552.949162,248.395935 Z" id="Path" fill="#FFBA33"></path>
9
+ <path d="M296.949144,343.110377 C296.984854,400.093029 296.957763,455.88408 296.643747,511.673529 C296.533318,531.293456 286.079018,546.034241 269.050157,551.908258 C252.443333,557.636567 233.680906,552.791412 224.093817,537.583422 C218.979171,529.470115 215.95768,518.701958 215.706623,509.034263 C214.723082,471.152733 215.218792,433.232257 215.042881,394.136158 C215.054643,327.279205 215.229272,261.612406 215.309348,195.94553 C215.373314,143.490328 215.29844,91.034992 215.333298,38.5797511 C215.348668,15.4898187 231.426906,1.2678295 257.348103,1.2799922 C280.937785,1.29109041 296.706357,16.2244318 296.714856,38.7014728 C296.752972,139.773667 296.757047,240.845879 296.949144,343.110377 Z" id="Path" fill="#FFBA33"></path>
10
+ <path d="M798.702361,386.708888 C798.743774,427.928659 798.637918,467.956286 798.464284,507.9836 C798.346098,535.222377 782.069543,553.927967 758.333346,554.243767 C734.096488,554.550872 717.233658,535.593982 717.178442,507.733509 C717.06871,452.370341 717.055138,397.006938 716.880188,340.453618 C716.892284,239.919713 717.464989,140.572818 716.793952,41.234457 C716.657775,21.0762463 730.442046,5.6687871 745.258577,1.73096756 C767.223311,-4.10666929 787.327632,5.1692772 795.708253,24.30691 C797.791852,29.0648236 798.359981,34.8260907 798.367426,40.1279513 C798.527721,155.257333 798.509885,270.38695 798.702361,386.708888 Z" id="Path" fill="#FFBA33"></path>
11
+ </g>
12
+ </g>
13
+ </svg>
@@ -9,6 +9,15 @@ import { defineConfig } from 'vitest/config';
9
9
  * @since 0.20.0
10
10
  */
11
11
  const currentFilePath = fileURLToPath(import.meta.url);
12
+
13
+ /**
14
+ * Vitest Configuration - Root directory.
15
+ *
16
+ * Stores this module-level value in one named location.
17
+ * Related code reuses it instead of duplicating the definition.
18
+ *
19
+ * @since UNRELEASED
20
+ */
12
21
  const rootDirectory = dirname(currentFilePath);
13
22
 
14
23
  export default defineConfig({
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@actions/core": "[__SCAFFOLD_VERSION_ACTIONS_CORE__]",
29
- "@cbnventures/nova": "0.35.0"
29
+ "@cbnventures/nova": "0.37.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@github/local-action": "[__SCAFFOLD_VERSION_GITHUB_LOCAL_ACTION__]",
@@ -43,7 +43,7 @@
43
43
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
44
44
  },
45
45
  "dependencies": {
46
- "@cbnventures/nova": "0.35.0"
46
+ "@cbnventures/nova": "0.37.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -29,7 +29,7 @@
29
29
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE_PFSENSE__]"
30
30
  },
31
31
  "dependencies": {
32
- "@cbnventures/nova": "0.35.0"
32
+ "@cbnventures/nova": "0.37.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -10,6 +10,8 @@ require_once('services.inc');
10
10
  * Returns the saved package settings.
11
11
  *
12
12
  * @return array<string, mixed> Package settings.
13
+ *
14
+ * @since UNRELEASED
13
15
  */
14
16
  function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings(): array
15
17
  {
@@ -24,6 +26,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings(): array
24
26
  * @param string $frequency Selected frequency.
25
27
  *
26
28
  * @return array{string, string, string, string, string} Cron fields.
29
+ *
30
+ * @since UNRELEASED
27
31
  */
28
32
  function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields(string $frequency): array
29
33
  {
@@ -37,6 +41,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields(string $frequency
37
41
 
38
42
  /**
39
43
  * Synchronizes the package cron job with the saved WebGUI settings.
44
+ *
45
+ * @since UNRELEASED
40
46
  */
41
47
  function pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync(): void
42
48
  {
@@ -63,6 +69,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync(): void
63
69
 
64
70
  /**
65
71
  * Removes the package cron job.
72
+ *
73
+ * @since UNRELEASED
66
74
  */
67
75
  function pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove(): void
68
76
  {
@@ -74,6 +82,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove(): void
74
82
  *
75
83
  * @param array<string, mixed> $post Submitted values.
76
84
  * @param string[] $inputErrors Validation errors.
85
+ *
86
+ * @since UNRELEASED
77
87
  */
78
88
  function pfsensePackage[__WORKSPACE_IDENTIFIER__]Validate(array $post, array &$inputErrors): void
79
89
  {
@@ -0,0 +1,62 @@
1
+ name: "Publish [__WORKSPACE_TITLE__] pfSense Package"
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - "published"
7
+ workflow_dispatch:
8
+ inputs:
9
+ tag:
10
+ description: "Existing GitHub release tag that receives the package"
11
+ required: true
12
+ type: "string"
13
+
14
+ permissions:
15
+ contents: "write"
16
+
17
+ concurrency:
18
+ group: "${{ github.workflow }}-${{ github.event.release.tag_name || inputs.tag }}"
19
+ cancel-in-progress: false
20
+
21
+ jobs:
22
+ package:
23
+ name: "Build pfSense Package"
24
+ runs-on: "ubuntu-latest"
25
+ env:
26
+ RELEASE_TAG: "${{ github.event.release.tag_name || inputs.tag }}"
27
+
28
+ steps:
29
+ - name: "Checkout"
30
+ uses: "actions/checkout@v7"
31
+
32
+ - name: "Validate and Stage Port"
33
+ run: |
34
+ node "./[__WORKSPACE_RELATIVE_PATH__]/scripts/check-package.mjs"
35
+ node "./[__WORKSPACE_RELATIVE_PATH__]/scripts/stage-package.mjs"
36
+
37
+ - name: "Build on FreeBSD"
38
+ uses: "vmactions/freebsd-vm@v1"
39
+ with:
40
+ release: "${{ vars.PFSENSE_FREEBSD_VERSION || '15' }}"
41
+ copyback: true
42
+ prepare: |
43
+ pkg install -y ca_root_nss git
44
+ run: |
45
+ git clone --depth 1 --single-branch --branch devel --filter=blob:none --sparse https://github.com/pfsense/FreeBSD-ports.git /usr/ports
46
+ git -C /usr/ports sparse-checkout set Mk Templates Keywords
47
+ PFSENSE_PORTS_DIR=/usr/ports sh "./[__WORKSPACE_RELATIVE_PATH__]/scripts/build-package.sh"
48
+
49
+ - name: "Upload Workflow Artifact"
50
+ uses: "actions/upload-artifact@v7"
51
+ with:
52
+ name: "pfsense-[__WORKSPACE_NAME__]"
53
+ path: "./[__WORKSPACE_RELATIVE_PATH__]/build/release/*"
54
+ if-no-files-found: "error"
55
+ retention-days: 7
56
+ include-hidden-files: true
57
+
58
+ - name: "Upload GitHub Release Assets"
59
+ env:
60
+ GH_TOKEN: "${{ github.token }}"
61
+ run: |
62
+ gh release upload "${RELEASE_TAG}" "./[__WORKSPACE_RELATIVE_PATH__]/build/release/"* --clobber
@@ -0,0 +1,2 @@
1
+ gradlew text eol=lf
2
+ gradlew.bat text eol=crlf
@@ -10,8 +10,22 @@ import androidx.compose.material3.Surface
10
10
  import androidx.compose.ui.Modifier
11
11
  import [__ANDROID_APPLICATION_ID__].theme.[__WORKSPACE_IDENTIFIER__]Theme
12
12
 
13
- class MainActivity : ComponentActivity() {
14
- override fun onCreate(savedInstanceState: Bundle?) {
13
+ /**
14
+ * Main Activity.
15
+ *
16
+ * Hosts the generated Compose application.
17
+ *
18
+ * @since UNRELEASED
19
+ */
20
+ public class MainActivity : ComponentActivity() {
21
+ /**
22
+ * Main Activity - On Create.
23
+ *
24
+ * @param savedInstanceState - Saved instance state.
25
+ *
26
+ * @since UNRELEASED
27
+ */
28
+ public override fun onCreate(savedInstanceState: Bundle?) {
15
29
  super.onCreate(savedInstanceState)
16
30
 
17
31
  enableEdgeToEdge()
@@ -3,4 +3,10 @@ package [__ANDROID_APPLICATION_ID__]
3
3
  import androidx.navigation3.runtime.NavKey
4
4
  import kotlinx.serialization.Serializable
5
5
 
6
- @Serializable data object Main : NavKey
6
+ /**
7
+ * Main Navigation Key.
8
+ *
9
+ * @since UNRELEASED
10
+ */
11
+ @Serializable
12
+ public data object Main : NavKey
@@ -3,10 +3,34 @@ package [__ANDROID_APPLICATION_ID__].data
3
3
  import kotlinx.coroutines.flow.Flow
4
4
  import kotlinx.coroutines.flow.flow
5
5
 
6
- interface DataRepository {
7
- val data: Flow<List<String>>
6
+ /**
7
+ * Data Repository.
8
+ *
9
+ * Defines the starter data source consumed by the generated launch screen.
10
+ *
11
+ * @since UNRELEASED
12
+ */
13
+ public interface DataRepository {
14
+ /**
15
+ * Data Repository - Data.
16
+ *
17
+ * @since UNRELEASED
18
+ */
19
+ public val data: Flow<List<String>>
8
20
  }
9
21
 
10
- class DefaultDataRepository : DataRepository {
11
- override val data: Flow<List<String>> = flow { emit(listOf("Android")) }
22
+ /**
23
+ * Default Data Repository.
24
+ *
25
+ * Supplies starter data until the generated project adopts a real data source.
26
+ *
27
+ * @since UNRELEASED
28
+ */
29
+ public class DefaultDataRepository : DataRepository {
30
+ /**
31
+ * Default Data Repository - Data.
32
+ *
33
+ * @since UNRELEASED
34
+ */
35
+ public override val data: Flow<List<String>> = flow { emit(listOf("Android")) }
12
36
  }
@@ -2,10 +2,44 @@ package [__ANDROID_APPLICATION_ID__].theme
2
2
 
3
3
  import androidx.compose.ui.graphics.Color
4
4
 
5
- val Purple80 = Color(0xFFD0BCFF)
6
- val PurpleGrey80 = Color(0xFFCCC2DC)
7
- val Pink80 = Color(0xFFEFB8C8)
5
+ /**
6
+ * Purple 80.
7
+ *
8
+ * @since UNRELEASED
9
+ */
10
+ public val Purple80: Color = Color(0xFFD0BCFF)
8
11
 
9
- val Purple40 = Color(0xFF6650a4)
10
- val PurpleGrey40 = Color(0xFF625b71)
11
- val Pink40 = Color(0xFF7D5260)
12
+ /**
13
+ * Purple Grey 80.
14
+ *
15
+ * @since UNRELEASED
16
+ */
17
+ public val PurpleGrey80: Color = Color(0xFFCCC2DC)
18
+
19
+ /**
20
+ * Pink 80.
21
+ *
22
+ * @since UNRELEASED
23
+ */
24
+ public val Pink80: Color = Color(0xFFEFB8C8)
25
+
26
+ /**
27
+ * Purple 40.
28
+ *
29
+ * @since UNRELEASED
30
+ */
31
+ public val Purple40: Color = Color(0xFF6650a4)
32
+
33
+ /**
34
+ * Purple Grey 40.
35
+ *
36
+ * @since UNRELEASED
37
+ */
38
+ public val PurpleGrey40: Color = Color(0xFF625b71)
39
+
40
+ /**
41
+ * Pink 40.
42
+ *
43
+ * @since UNRELEASED
44
+ */
45
+ public val Pink40: Color = Color(0xFF7D5260)
@@ -10,8 +10,20 @@ import androidx.compose.material3.lightColorScheme
10
10
  import androidx.compose.runtime.Composable
11
11
  import androidx.compose.ui.platform.LocalContext
12
12
 
13
+ /**
14
+ * Dark Color Scheme.
15
+ *
16
+ * @private
17
+ * @since UNRELEASED
18
+ */
13
19
  private val DarkColorScheme = darkColorScheme(primary = Purple80, secondary = PurpleGrey80, tertiary = Pink80)
14
20
 
21
+ /**
22
+ * Light Color Scheme.
23
+ *
24
+ * @private
25
+ * @since UNRELEASED
26
+ */
15
27
  private val LightColorScheme =
16
28
  lightColorScheme(
17
29
  primary = Purple40,
@@ -29,8 +41,17 @@ private val LightColorScheme =
29
41
  */
30
42
  )
31
43
 
44
+ /**
45
+ * [__WORKSPACE_TITLE__] Theme.
46
+ *
47
+ * @param darkTheme - Dark theme.
48
+ * @param dynamicColor - Dynamic color.
49
+ * @param content - Content.
50
+ *
51
+ * @since UNRELEASED
52
+ */
32
53
  @Composable
33
- fun [__WORKSPACE_IDENTIFIER__]Theme(
54
+ public fun [__WORKSPACE_IDENTIFIER__]Theme(
34
55
  darkTheme: Boolean = isSystemInDarkTheme(),
35
56
  // Dynamic color is available on Android 12+
36
57
  dynamicColor: Boolean = true,
@@ -6,8 +6,14 @@ import androidx.compose.ui.text.font.FontFamily
6
6
  import androidx.compose.ui.text.font.FontWeight
7
7
  import androidx.compose.ui.unit.sp
8
8
 
9
- // Set of Material typography styles to start with
10
- val Typography =
9
+ /**
10
+ * Typography.
11
+ *
12
+ * Provides the starter Material typography used by the generated application.
13
+ *
14
+ * @since UNRELEASED
15
+ */
16
+ public val Typography: Typography =
11
17
  Typography(
12
18
  bodyLarge =
13
19
  TextStyle(
@@ -10,18 +10,54 @@ import kotlinx.coroutines.flow.catch
10
10
  import kotlinx.coroutines.flow.map
11
11
  import kotlinx.coroutines.flow.stateIn
12
12
 
13
- class MainScreenViewModel(dataRepository: DataRepository) : ViewModel() {
14
- val uiState: StateFlow<MainScreenUiState> =
13
+ /**
14
+ * Main Screen View Model.
15
+ *
16
+ * @param dataRepository - Data repository.
17
+ *
18
+ * @since UNRELEASED
19
+ */
20
+ public class MainScreenViewModel(dataRepository: DataRepository) : ViewModel() {
21
+ /**
22
+ * Main Screen View Model - UI State.
23
+ *
24
+ * @since UNRELEASED
25
+ */
26
+ public val uiState: StateFlow<MainScreenUiState> =
15
27
  dataRepository.data
16
28
  .map<List<String>, MainScreenUiState>(::Success)
17
29
  .catch { emit(MainScreenUiState.Error(it)) }
18
30
  .stateIn(viewModelScope, SharingStarted.WhileSubscribed(5000), MainScreenUiState.Loading)
19
31
  }
20
32
 
21
- sealed interface MainScreenUiState {
22
- object Loading : MainScreenUiState
33
+ /**
34
+ * Main Screen UI State.
35
+ *
36
+ * @since UNRELEASED
37
+ */
38
+ public sealed interface MainScreenUiState {
39
+ /**
40
+ * Main Screen UI State - Loading.
41
+ *
42
+ * @since UNRELEASED
43
+ */
44
+ public object Loading : MainScreenUiState
23
45
 
24
- data class Error(val throwable: Throwable) : MainScreenUiState
46
+ /**
47
+ * Main Screen UI State - Error.
48
+ *
49
+ * @param throwable - Throwable.
50
+ *
51
+ * @since UNRELEASED
52
+ */
53
+ public data class Error(public val throwable: Throwable) : MainScreenUiState
25
54
 
26
- data class Success(val data: List<String>) : MainScreenUiState
55
+ /**
56
+ * Main Screen UI State - Success.
57
+ *
58
+ * @param data - Data.
59
+ *
60
+ * @since UNRELEASED
61
+ */
62
+ public data class Success(public val data: List<String>) : MainScreenUiState
27
63
  }