@cbnventures/nova 0.25.1 → 0.26.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/build/package.json +10 -8
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +6 -3
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +122 -26
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/index.js +79 -28
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/recipe/github/gh-commands.d.ts +3 -0
- package/build/src/cli/recipe/github/gh-commands.d.ts.map +1 -0
- package/build/src/cli/recipe/github/gh-commands.js +28 -0
- package/build/src/cli/recipe/github/gh-commands.js.map +1 -0
- package/build/src/cli/recipe/github/sync-actions.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-actions.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-actions.js +103 -0
- package/build/src/cli/recipe/github/sync-actions.js.map +1 -0
- package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-features.js +46 -11
- package/build/src/cli/recipe/github/sync-features.js.map +1 -1
- package/build/src/cli/recipe/github/sync-labels.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-labels.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-labels.js +40 -0
- package/build/src/cli/recipe/github/sync-labels.js.map +1 -0
- package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
- package/build/src/cli/recipe/github/sync-policies.js +89 -10
- package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
- package/build/src/cli/recipe/github/sync-rulesets.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-rulesets.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-rulesets.js +137 -0
- package/build/src/cli/recipe/github/sync-rulesets.js.map +1 -0
- package/build/src/cli/recipe/github/sync-security.d.ts +5 -0
- package/build/src/cli/recipe/github/sync-security.d.ts.map +1 -0
- package/build/src/cli/recipe/github/sync-security.js +69 -0
- package/build/src/cli/recipe/github/sync-security.js.map +1 -0
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +20 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.js +16 -15
- package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.d.ts +2 -1
- package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.js +41 -1
- package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -1
- package/build/src/cli/scaffold/starter/base.d.ts.map +1 -1
- package/build/src/cli/scaffold/starter/base.js +57 -6
- package/build/src/cli/scaffold/starter/base.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts +1 -0
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +183 -67
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/initialize.d.ts.map +1 -1
- package/build/src/cli/utility/initialize.js +133 -45
- package/build/src/cli/utility/initialize.js.map +1 -1
- package/build/src/cli/utility/run-scripts.d.ts +5 -5
- package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
- package/build/src/cli/utility/run-scripts.js +28 -252
- package/build/src/cli/utility/run-scripts.js.map +1 -1
- package/build/src/cli/utility/transpile.d.ts.map +1 -1
- package/build/src/cli/utility/transpile.js +23 -5
- package/build/src/cli/utility/transpile.js.map +1 -1
- package/build/src/cli/utility/type-check.d.ts +2 -4
- package/build/src/cli/utility/type-check.d.ts.map +1 -1
- package/build/src/cli/utility/type-check.js +13 -54
- package/build/src/cli/utility/type-check.js.map +1 -1
- package/build/src/cli/utility/version.d.ts.map +1 -1
- package/build/src/cli/utility/version.js +0 -12
- package/build/src/cli/utility/version.js.map +1 -1
- package/build/src/lib/corepack.d.ts +5 -0
- package/build/src/lib/corepack.d.ts.map +1 -0
- package/build/src/lib/corepack.js +26 -0
- package/build/src/lib/corepack.js.map +1 -0
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +4 -1
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +8 -0
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +329 -7
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +7 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +8 -1
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/release-history.d.ts +5 -0
- package/build/src/lib/release-history.d.ts.map +1 -0
- package/build/src/lib/release-history.js +86 -0
- package/build/src/lib/release-history.js.map +1 -0
- package/build/src/lib/run-scripts.d.ts +10 -0
- package/build/src/lib/run-scripts.d.ts.map +1 -0
- package/build/src/lib/run-scripts.js +310 -0
- package/build/src/lib/run-scripts.js.map +1 -0
- package/build/src/lib/scaffold.d.ts +7 -2
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +398 -53
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/type-check.d.ts +3 -0
- package/build/src/lib/type-check.d.ts.map +1 -0
- package/build/src/lib/type-check.js +69 -0
- package/build/src/lib/type-check.js.map +1 -0
- package/build/src/presets/tsconfig/dx-strict.json +0 -1
- package/build/src/presets/tsconfig/fw-homebridge.json +11 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts +1 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
- package/build/src/rules/eslint/regex/no-regex-literals.js +20 -1
- package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +1 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.js +19 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
- package/build/src/toolkit/index.d.ts +1 -0
- package/build/src/toolkit/index.d.ts.map +1 -1
- package/build/src/toolkit/index.js +1 -0
- package/build/src/toolkit/index.js.map +1 -1
- package/build/src/toolkit/vitest-setup.d.ts +6 -0
- package/build/src/toolkit/vitest-setup.d.ts.map +1 -0
- package/build/src/toolkit/vitest-setup.js +21 -0
- package/build/src/toolkit/vitest-setup.js.map +1 -0
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +4 -4
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +69 -3
- package/build/src/types/cli/recipe/github/gh-commands.d.ts +34 -0
- package/build/src/types/cli/recipe/github/sync-actions.d.ts +43 -0
- package/build/src/types/cli/recipe/github/sync-features.d.ts +16 -2
- package/build/src/types/cli/recipe/github/sync-labels.d.ts +36 -0
- package/build/src/types/cli/recipe/github/sync-policies.d.ts +14 -2
- package/build/src/types/cli/recipe/github/sync-rulesets.d.ts +71 -0
- package/build/src/types/cli/recipe/github/sync-security.d.ts +34 -0
- package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/expressjs.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/nextjs.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/vite.d.ts +3 -0
- package/build/src/types/cli/scaffold/app/workers.d.ts +3 -0
- package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +15 -0
- package/build/src/types/cli/scaffold/starter/base.d.ts +11 -0
- package/build/src/types/cli/utility/changelog.d.ts +87 -26
- package/build/src/types/cli/utility/initialize.d.ts +39 -29
- package/build/src/types/cli/utility/run-scripts.d.ts +22 -174
- package/build/src/types/cli/utility/transpile.d.ts +9 -1
- package/build/src/types/cli/utility/type-check.d.ts +9 -71
- package/build/src/types/cli/utility/version.d.ts +1 -7
- package/build/src/types/lib/corepack.d.ts +19 -0
- package/build/src/types/lib/nova-config.d.ts +256 -23
- package/build/src/types/lib/regex.d.ts +42 -0
- package/build/src/types/lib/release-history.d.ts +57 -0
- package/build/src/types/lib/run-scripts.d.ts +264 -0
- package/build/src/types/lib/scaffold.d.ts +187 -10
- package/build/src/types/lib/type-check.d.ts +102 -0
- package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +21 -0
- package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +21 -0
- package/build/src/types/shared.d.ts +264 -22
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +4 -0
- package/build/src/types/tests/cli/index.test.d.ts +258 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +27 -0
- package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +48 -0
- package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +10 -2
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +99 -0
- package/build/src/types/tests/cli/utility/initialize.test.d.ts +43 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
- package/build/src/types/tests/cli/utility/transpile.test.d.ts +28 -0
- package/build/src/types/tests/cli/utility/type-check.test.d.ts +33 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +19 -19
- package/build/src/types/tests/lib/regex.test.d.ts +7 -0
- package/build/src/types/tests/lib/release-history.test.d.ts +94 -0
- package/build/src/types/tests/lib/scaffold.test.d.ts +88 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +46 -0
- package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +46 -0
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +104 -0
- package/build/src/types/tests/scaffold-template-source.test.d.ts +42 -0
- package/build/src/types/tests/toolkit/vitest-setup.test.d.ts +36 -0
- package/build/src/types/tests/tsconfig-presets.test.d.ts +81 -0
- package/build/src/types/toolkit/vitest-setup.d.ts +24 -0
- package/build/templates/generators/github/workflows/publish/base.yml +1 -1
- package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +1 -1
- package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +11 -11
- package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +4 -4
- package/build/templates/scaffold/app/express/package.json +2 -2
- package/build/templates/scaffold/app/express/tsconfig.json +1 -0
- package/build/templates/scaffold/app/nextjs/package.json +9 -10
- package/build/templates/scaffold/app/nextjs/tsconfig.json +3 -2
- package/build/templates/scaffold/app/vite/package.json +3 -3
- package/build/templates/scaffold/app/workers/package.json +4 -4
- package/build/templates/scaffold/app/workers/wrangler.toml +1 -1
- package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +14 -12
- package/build/templates/scaffold/docs/docusaurus/package.json +13 -9
- package/build/templates/scaffold/docs/docusaurus/src/pages/index.mdx +8 -0
- package/build/templates/scaffold/docs/docusaurus/tsconfig.json +11 -5
- package/build/templates/scaffold/docs/docusaurus/{vitest.config.ts → vitest.config.mts} +11 -0
- package/build/templates/scaffold/docs/docusaurus/vitest.setup.ts +5 -14
- package/package.json +10 -8
- /package/build/templates/scaffold/docs/docusaurus/docs/{intro.md → intro.mdx} +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Dirent } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
import type { Diagnostic } from 'typescript';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Tests - Tsconfig Presets.
|
|
7
|
+
*
|
|
8
|
+
* @since 0.26.0
|
|
9
|
+
*/
|
|
10
|
+
export type Tests_TsconfigPresets_CurrentFilePath = string;
|
|
11
|
+
|
|
12
|
+
export type Tests_TsconfigPresets_CurrentDirectory = string;
|
|
13
|
+
|
|
14
|
+
export type Tests_TsconfigPresets_PackageDirectory = string;
|
|
15
|
+
|
|
16
|
+
export type Tests_TsconfigPresets_SourcePresetDirectory = string;
|
|
17
|
+
|
|
18
|
+
export type Tests_TsconfigPresets_PackageJsonPath = string;
|
|
19
|
+
|
|
20
|
+
export type Tests_TsconfigPresets_PackageJsonText = string;
|
|
21
|
+
|
|
22
|
+
export type Tests_TsconfigPresets_PackageJson_Exports = Record<string, unknown>;
|
|
23
|
+
|
|
24
|
+
export type Tests_TsconfigPresets_PackageJson = {
|
|
25
|
+
exports?: Tests_TsconfigPresets_PackageJson_Exports;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type Tests_TsconfigPresets_PackageExports = Tests_TsconfigPresets_PackageJson_Exports;
|
|
29
|
+
|
|
30
|
+
export type Tests_TsconfigPresets_PresetExportPrefix = string;
|
|
31
|
+
|
|
32
|
+
export type Tests_TsconfigPresets_PresetBuildPrefix = string;
|
|
33
|
+
|
|
34
|
+
export type Tests_TsconfigPresets_SourcePresetDirectoryEntries = Dirent[];
|
|
35
|
+
|
|
36
|
+
export type Tests_TsconfigPresets_SourcePresetFilenames = string[];
|
|
37
|
+
|
|
38
|
+
export type Tests_TsconfigPresets_PresetExportEntry = [string, unknown];
|
|
39
|
+
|
|
40
|
+
export type Tests_TsconfigPresets_PresetExportEntries = Tests_TsconfigPresets_PresetExportEntry[];
|
|
41
|
+
|
|
42
|
+
export type Tests_TsconfigPresets_ExportedPresetFilenames = string[];
|
|
43
|
+
|
|
44
|
+
export type Tests_TsconfigPresets_ExportSubpath = string;
|
|
45
|
+
|
|
46
|
+
export type Tests_TsconfigPresets_ExportTarget = unknown;
|
|
47
|
+
|
|
48
|
+
export type Tests_TsconfigPresets_PresetFilename = string;
|
|
49
|
+
|
|
50
|
+
export type Tests_TsconfigPresets_ExpectedExportTarget = string;
|
|
51
|
+
|
|
52
|
+
export type Tests_TsconfigPresets_SourcePresetFilename = string;
|
|
53
|
+
|
|
54
|
+
export type Tests_TsconfigPresets_SourcePresetPath = string;
|
|
55
|
+
|
|
56
|
+
export type Tests_TsconfigPresets_ReadResult = {
|
|
57
|
+
config?: Record<string, unknown>;
|
|
58
|
+
error?: Diagnostic;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type Tests_TsconfigPresets_ReadDiagnosticMessage = string;
|
|
62
|
+
|
|
63
|
+
export type Tests_TsconfigPresets_PresetConfig = Record<string, unknown>;
|
|
64
|
+
|
|
65
|
+
export type Tests_TsconfigPresets_CompilerOptions = unknown;
|
|
66
|
+
|
|
67
|
+
export type Tests_TsconfigPresets_ConversionResult_Errors = Diagnostic[];
|
|
68
|
+
|
|
69
|
+
export type Tests_TsconfigPresets_ConversionResult = {
|
|
70
|
+
errors: Tests_TsconfigPresets_ConversionResult_Errors;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type Tests_TsconfigPresets_Diagnostic = Diagnostic;
|
|
74
|
+
|
|
75
|
+
export type Tests_TsconfigPresets_DiagnosticMessage = string;
|
|
76
|
+
|
|
77
|
+
export type Tests_TsconfigPresets_TSConfigPresetContract_ExportsEverySourcePresetWithoutStalePublicEntries_SourcePresetCount = number;
|
|
78
|
+
|
|
79
|
+
export type Tests_TsconfigPresets_TSConfigPresetContract_LoadsEverySourcePresetThroughTypeScriptWithoutConfigurationDiagnostics_Diagnostics = string[];
|
|
80
|
+
|
|
81
|
+
export type Tests_TsconfigPresets_TSConfigPresetContract_MapsEveryPublicExportToItsBuildCopy_Mismatches = string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { vi } from 'vitest';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Toolkit - Vitest Setup - Register.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.26.0
|
|
7
|
+
*/
|
|
8
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach_Callback = () => void;
|
|
9
|
+
|
|
10
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach = (callback: Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach_Callback) => void;
|
|
11
|
+
|
|
12
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach_Callback = () => void;
|
|
13
|
+
|
|
14
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach = (callback: Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach_Callback) => void;
|
|
15
|
+
|
|
16
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest_Vi = Pick<typeof vi, 'restoreAllMocks' | 'spyOn'>;
|
|
17
|
+
|
|
18
|
+
export type Toolkit_VitestSetup_Runner_Register_Vitest = {
|
|
19
|
+
afterEach: Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach;
|
|
20
|
+
beforeEach: Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach;
|
|
21
|
+
vi: Toolkit_VitestSetup_Runner_Register_Vitest_Vi;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type Toolkit_VitestSetup_Runner_Register_Returns = void;
|
|
@@ -257,12 +257,13 @@ Commands for building and previewing the documentation site locally.
|
|
|
257
257
|
<!--
|
|
258
258
|
Step-by-step description of how a new version goes from code to release.
|
|
259
259
|
|
|
260
|
-
1.
|
|
261
|
-
2.
|
|
262
|
-
3.
|
|
263
|
-
4.
|
|
264
|
-
5.
|
|
265
|
-
6.
|
|
260
|
+
1. Run the project's clean install, check, and build gates.
|
|
261
|
+
2. Preview and approve the command-generated changelog release before applying it.
|
|
262
|
+
3. Run the changelog release to fold workspace entries, bump versions, stamp sentinels, and synchronize exact internal pins.
|
|
263
|
+
4. Run check and build again.
|
|
264
|
+
5. Use a separate concise thematic commit message; it is not the same text as the changelog block.
|
|
265
|
+
6. Tag and push the release commit. The publish workflow trigger is project-config dependent; consult the generated workflow.
|
|
266
|
+
7. Build the GitHub Release notes by combining the released workspace changelog files, retaining workspace names while omitting version/date headings.
|
|
266
267
|
-->
|
|
267
268
|
|
|
268
269
|
### CI/CD Workflows
|
|
@@ -270,11 +271,10 @@ Step-by-step description of how a new version goes from code to release.
|
|
|
270
271
|
<!--
|
|
271
272
|
Map each GitHub Actions workflow to what it does and when it runs.
|
|
272
273
|
|
|
273
|
-
| Workflow file
|
|
274
|
-
|
|
275
|
-
|
|
|
276
|
-
| `
|
|
277
|
-
| `lock-inactive-issues.yml` | Weekly cron | Lock issues inactive > 30 days |
|
|
274
|
+
| Workflow file | Trigger | What it does |
|
|
275
|
+
|----------------------------|--------------------|------------------------------------------|
|
|
276
|
+
| Generated publish workflow | Project-configured | Build and publish the configured targets |
|
|
277
|
+
| `lock-inactive-issues.yml` | Weekly cron | Lock issues inactive > 30 days |
|
|
278
278
|
-->
|
|
279
279
|
|
|
280
280
|
### Environments
|
package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md
CHANGED
|
@@ -209,14 +209,14 @@ Heading changes by page type:
|
|
|
209
209
|
| Preset | Why Use This Preset? |
|
|
210
210
|
| Quickstart | (no "Why" section needed) |
|
|
211
211
|
|
|
212
|
-
Content is a
|
|
212
|
+
Content is a numbered list. Each item follows the pattern: [Feature/capability] so [benefit]. Numbers make every page scan the same way; their order does not imply an execution sequence.
|
|
213
213
|
|
|
214
214
|
```mdx
|
|
215
215
|
## Why Use This Command?
|
|
216
216
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
1. Supports 13 open-source licenses so you can pick the right one from the config.
|
|
218
|
+
2. Auto-fills legal boilerplate so the license stays accurate when the year rolls over or ownership changes.
|
|
219
|
+
3. Pulls the license type, author name, and starting year directly from `nova.config.json`, eliminating manual edits.
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
### Requirements
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "[
|
|
2
|
+
"name": "[__WORKSPACE_PACKAGE_NAME__]",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"@types/express": "5.0.2",
|
|
16
16
|
"@types/node": "22.15.17",
|
|
17
17
|
"tsx": "4.19.4",
|
|
18
|
-
"typescript": "
|
|
18
|
+
"typescript": "6.0.3"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "[
|
|
2
|
+
"name": "[__WORKSPACE_PACKAGE_NAME__]",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev",
|
|
7
7
|
"build": "next build",
|
|
8
|
-
"start": "next start"
|
|
9
|
-
"lint": "next lint"
|
|
8
|
+
"start": "next start"
|
|
10
9
|
},
|
|
11
10
|
"dependencies": {
|
|
12
|
-
"next": "
|
|
13
|
-
"react": "19.
|
|
14
|
-
"react-dom": "19.
|
|
11
|
+
"next": "16.3.4",
|
|
12
|
+
"react": "19.2.8",
|
|
13
|
+
"react-dom": "19.2.8"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
|
-
"@types/node": "
|
|
18
|
-
"@types/react": "19.
|
|
19
|
-
"@types/react-dom": "19.
|
|
20
|
-
"typescript": "
|
|
16
|
+
"@types/node": "24.9.1",
|
|
17
|
+
"@types/react": "19.2.18",
|
|
18
|
+
"@types/react-dom": "19.2.7",
|
|
19
|
+
"typescript": "6.0.3"
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"target": "ES2017",
|
|
4
4
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
5
|
"allowJs": true,
|
|
6
|
+
"incremental": true,
|
|
6
7
|
"skipLibCheck": true,
|
|
7
8
|
"strict": true,
|
|
8
9
|
"noEmit": true,
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
"moduleResolution": "bundler",
|
|
12
13
|
"resolveJsonModule": true,
|
|
13
14
|
"isolatedModules": true,
|
|
14
|
-
"jsx": "
|
|
15
|
+
"jsx": "react-jsx",
|
|
15
16
|
"plugins": [
|
|
16
17
|
{
|
|
17
18
|
"name": "next"
|
|
@@ -21,6 +22,6 @@
|
|
|
21
22
|
"@/*": ["./src/*"]
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "build/types/**/*.ts", "build/dev/types/**/*.ts"],
|
|
25
26
|
"exclude": ["node_modules"]
|
|
26
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "[
|
|
2
|
+
"name": "[__WORKSPACE_PACKAGE_NAME__]",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "22.15.17",
|
|
14
|
-
"typescript": "
|
|
15
|
-
"vite": "6.3
|
|
14
|
+
"typescript": "6.0.3",
|
|
15
|
+
"vite": "6.4.3"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "[
|
|
2
|
+
"name": "[__WORKSPACE_PACKAGE_NAME__]",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"build": "tsc"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@cloudflare/workers-types": "
|
|
13
|
-
"typescript": "
|
|
14
|
-
"wrangler": "4.
|
|
12
|
+
"@cloudflare/workers-types": "5.20260908.1",
|
|
13
|
+
"typescript": "6.0.3",
|
|
14
|
+
"wrangler": "4.130.0"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NovaIdentity } from '@cbnventures/nova/toolkit';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DocusaurusNovaConfig } from '@cbnventures/docusaurus-preset-nova/types/config';
|
|
4
4
|
|
|
5
5
|
const identity = new NovaIdentity().forDocs();
|
|
6
6
|
|
|
7
|
-
const config:
|
|
7
|
+
const config: DocusaurusNovaConfig = {
|
|
8
8
|
title: identity.title ?? 'Documentation',
|
|
9
9
|
tagline: identity.tagline ?? 'Documentation',
|
|
10
10
|
url: identity.url ?? 'https://example.com',
|
|
@@ -12,7 +12,12 @@ const config: Config = {
|
|
|
12
12
|
organizationName: identity.organizationName ?? 'your-org',
|
|
13
13
|
projectName: identity.projectName ?? '[__PROJECT_SLUG__]',
|
|
14
14
|
onBrokenLinks: 'throw',
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
markdown: {
|
|
17
|
+
hooks: {
|
|
18
|
+
onBrokenMarkdownLinks: 'warn',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
16
21
|
|
|
17
22
|
i18n: {
|
|
18
23
|
defaultLocale: 'en',
|
|
@@ -22,15 +27,12 @@ const config: Config = {
|
|
|
22
27
|
presets: [[
|
|
23
28
|
'@cbnventures/docusaurus-preset-nova',
|
|
24
29
|
{
|
|
25
|
-
preset: '
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
docs: {
|
|
32
|
-
sidebarPath: './sidebars.ts',
|
|
33
|
-
routeBasePath: 'docs',
|
|
30
|
+
preset: '[__DOCUSAURUS_PRESET__]',
|
|
31
|
+
plugins: {
|
|
32
|
+
docs: {
|
|
33
|
+
sidebarPath: './sidebars.ts',
|
|
34
|
+
routeBasePath: 'docs',
|
|
35
|
+
},
|
|
34
36
|
},
|
|
35
37
|
},
|
|
36
38
|
]],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "[
|
|
2
|
+
"name": "[__WORKSPACE_PACKAGE_NAME__]",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
@@ -12,16 +12,20 @@
|
|
|
12
12
|
"test": "vitest run"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@cbnventures/docusaurus-preset-nova": "0.
|
|
16
|
-
"@docusaurus/core": "3.
|
|
17
|
-
"react": "19.
|
|
18
|
-
"react-dom": "19.
|
|
15
|
+
"@cbnventures/docusaurus-preset-nova": "0.26.0",
|
|
16
|
+
"@docusaurus/core": "3.10.2",
|
|
17
|
+
"react": "19.2.8",
|
|
18
|
+
"react-dom": "19.2.8"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@cbnventures/nova": "0.
|
|
22
|
-
"@docusaurus/
|
|
21
|
+
"@cbnventures/nova": "0.26.0",
|
|
22
|
+
"@docusaurus/module-type-aliases": "3.10.2",
|
|
23
|
+
"@docusaurus/types": "3.10.2",
|
|
24
|
+
"@types/node": "24.9.1",
|
|
25
|
+
"@types/react": "19.2.18",
|
|
26
|
+
"@types/react-dom": "19.2.4",
|
|
23
27
|
"glob": "13.0.6",
|
|
24
|
-
"typescript": "
|
|
25
|
-
"vitest": "4.1.
|
|
28
|
+
"typescript": "6.0.3",
|
|
29
|
+
"vitest": "4.1.11"
|
|
26
30
|
}
|
|
27
31
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"@cbnventures/nova/presets/tsconfig/dx-essentials.json",
|
|
4
|
+
"@cbnventures/nova/presets/tsconfig/dx-strict.json",
|
|
5
|
+
"@cbnventures/nova/presets/tsconfig/fw-docusaurus.json"
|
|
6
|
+
],
|
|
2
7
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
"paths": {
|
|
9
|
+
"@site/*": [
|
|
10
|
+
"./*"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
8
14
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { dirname } from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
|
|
1
4
|
import { defineConfig } from 'vitest/config';
|
|
2
5
|
|
|
3
6
|
/**
|
|
@@ -9,7 +12,15 @@ import { defineConfig } from 'vitest/config';
|
|
|
9
12
|
*
|
|
10
13
|
* @since 0.20.0
|
|
11
14
|
*/
|
|
15
|
+
const currentFilePath = fileURLToPath(import.meta.url);
|
|
16
|
+
const rootDirectory = dirname(currentFilePath);
|
|
17
|
+
|
|
12
18
|
export default defineConfig({
|
|
19
|
+
resolve: {
|
|
20
|
+
alias: {
|
|
21
|
+
'@site': rootDirectory,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
13
24
|
test: {
|
|
14
25
|
setupFiles: ['./vitest.setup.ts'],
|
|
15
26
|
include: ['src/tests/**/*.test.ts'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VitestSetup } from '@cbnventures/nova/toolkit';
|
|
1
2
|
import { afterEach, beforeEach, vi } from 'vitest';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -9,18 +10,8 @@ import { afterEach, beforeEach, vi } from 'vitest';
|
|
|
9
10
|
*
|
|
10
11
|
* @since 0.20.0
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
vi
|
|
16
|
-
|
|
17
|
-
process.exitCode = undefined;
|
|
18
|
-
|
|
19
|
-
return;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
afterEach(() => {
|
|
23
|
-
vi.restoreAllMocks();
|
|
24
|
-
|
|
25
|
-
return;
|
|
13
|
+
VitestSetup.register({
|
|
14
|
+
afterEach,
|
|
15
|
+
beforeEach,
|
|
16
|
+
vi,
|
|
26
17
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cbnventures/nova",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"./presets/tsconfig/fw-astro.json": "./build/src/presets/tsconfig/fw-astro.json",
|
|
59
59
|
"./presets/tsconfig/fw-docusaurus.json": "./build/src/presets/tsconfig/fw-docusaurus.json",
|
|
60
60
|
"./presets/tsconfig/fw-expressjs.json": "./build/src/presets/tsconfig/fw-expressjs.json",
|
|
61
|
+
"./presets/tsconfig/fw-homebridge.json": "./build/src/presets/tsconfig/fw-homebridge.json",
|
|
61
62
|
"./presets/tsconfig/fw-nextjs.json": "./build/src/presets/tsconfig/fw-nextjs.json",
|
|
62
63
|
"./presets/tsconfig/runtime-browser.json": "./build/src/presets/tsconfig/runtime-browser.json",
|
|
63
64
|
"./presets/tsconfig/runtime-cloudflare-workers.json": "./build/src/presets/tsconfig/runtime-cloudflare-workers.json",
|
|
@@ -115,11 +116,12 @@
|
|
|
115
116
|
"eslint-plugin-react": "7.37.5",
|
|
116
117
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
117
118
|
"glob": "13.0.6",
|
|
118
|
-
"globals": "17.
|
|
119
|
+
"globals": "17.11.0",
|
|
120
|
+
"minimatch": "10.2.6",
|
|
119
121
|
"prompts": "2.4.2",
|
|
120
122
|
"typescript-eslint": "8.58.1",
|
|
121
123
|
"yaml": "2.8.3",
|
|
122
|
-
"zod": "4.3
|
|
124
|
+
"zod": "4.4.3"
|
|
123
125
|
},
|
|
124
126
|
"devDependencies": {
|
|
125
127
|
"@commander-js/extra-typings": "14.0.0",
|
|
@@ -127,16 +129,16 @@
|
|
|
127
129
|
"@types/node": "24.9.1",
|
|
128
130
|
"@types/prompts": "2.4.9",
|
|
129
131
|
"@typescript-eslint/rule-tester": "8.58.1",
|
|
130
|
-
"eslint": "9.39.
|
|
132
|
+
"eslint": "9.39.5",
|
|
131
133
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
132
134
|
"shx": "0.4.0",
|
|
133
|
-
"typescript": "
|
|
134
|
-
"vitest": "4.1.
|
|
135
|
+
"typescript": "6.0.3",
|
|
136
|
+
"vitest": "4.1.11"
|
|
135
137
|
},
|
|
136
138
|
"peerDependencies": {
|
|
137
139
|
"eslint": "^9",
|
|
138
|
-
"typescript": "^
|
|
139
|
-
"vitest": "4
|
|
140
|
+
"typescript": "^6",
|
|
141
|
+
"vitest": "^4"
|
|
140
142
|
},
|
|
141
143
|
"peerDependenciesMeta": {
|
|
142
144
|
"eslint": {
|
|
File without changes
|