@nan0web/release 3.3.0 → 3.4.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/bin/nan0release.js +33 -2
- package/bin/serve.js +73 -0
- package/package.json +45 -17
- package/src/Release/Document.js +1 -0
- package/src/Release/Scanner.js +3 -2
- package/src/Release.js +7 -7
- package/src/domain/App.js +31 -2
- package/src/domain/BumpCommand.js +10 -3
- package/src/domain/CheckCommand.js +504 -146
- package/src/domain/CheckCommand.story.js +92 -0
- package/src/domain/CloseCommand.js +13 -9
- package/src/domain/Dashboard/Dashboard.story.js +155 -0
- package/src/domain/Dashboard/DashboardModel.js +308 -0
- package/src/domain/Dashboard/ReleaseDiscovery.js +132 -0
- package/src/domain/Dashboard/ReleaseParser.js +226 -0
- package/src/domain/Dashboard/index.js +19 -0
- package/src/domain/DepsCommand.js +5 -2
- package/src/domain/InitCommand.js +18 -16
- package/src/domain/ListCommand.js +45 -0
- package/src/domain/PreviewCommand.js +39 -0
- package/src/domain/PublishCommand.js +7 -3
- package/src/domain/Registry/Registry.story.js +82 -0
- package/src/domain/Registry/RegistryModel.js +124 -0
- package/src/domain/ServeCommand.js +165 -0
- package/src/domain/ServeCommand.story.js +88 -0
- package/src/domain/SpecCommand.js +3 -1
- package/src/domain/StatusCommand.js +249 -3
- package/src/domain/ViewCommand.js +99 -0
- package/src/domain/WebCommand.js +140 -0
- package/src/domain/inspect/ReleaseAuditor.js +508 -0
- package/src/domain/inspect/ReleaseAuditor.story.js +136 -0
- package/src/domain/templates/release.html +34 -0
- package/src/domain/templates/release.html.template.js +34 -0
- package/src/index.js +6 -0
- package/src/inspectors/inspect-js.js +32 -0
- package/src/releases/1/0/v1.0.3/task.test.js +1 -1
- package/src/utils/nodejs/GitTelemetry.js +154 -0
- package/types/Release/Document.d.ts +24 -27
- package/types/Release/MarkdownToTest.d.ts +1 -1
- package/types/Release/Person.d.ts +9 -7
- package/types/Release/Scanner.d.ts +41 -41
- package/types/Release.d.ts +42 -42
- package/types/architecture/ProjectManagementAsCode.d.ts +59 -64
- package/types/domain/App.d.ts +24 -7
- package/types/domain/BumpCommand.d.ts +11 -6
- package/types/domain/CheckCommand.d.ts +128 -16
- package/types/domain/CheckCommand.story.d.ts +1 -0
- package/types/domain/CloseCommand.d.ts +4 -6
- package/types/domain/Dashboard/Dashboard.story.d.ts +1 -0
- package/types/domain/Dashboard/DashboardModel.d.ts +273 -0
- package/types/domain/Dashboard/GitTelemetry.d.ts +23 -0
- package/types/domain/Dashboard/ReleaseDiscovery.d.ts +47 -0
- package/types/domain/Dashboard/ReleaseParser.d.ts +79 -0
- package/types/domain/Dashboard/index.d.ts +3 -0
- package/types/domain/DepsCommand.d.ts +6 -6
- package/types/domain/InitCommand.d.ts +4 -6
- package/types/domain/ListCommand.d.ts +18 -0
- package/types/domain/PreviewCommand.d.ts +6 -0
- package/types/domain/PublishCommand.d.ts +8 -6
- package/types/domain/Registry/Registry.story.d.ts +1 -0
- package/types/domain/Registry/RegistryModel.d.ts +61 -0
- package/types/domain/ServeCommand.d.ts +59 -0
- package/types/domain/ServeCommand.story.d.ts +1 -0
- package/types/domain/SpecCommand.d.ts +4 -6
- package/types/domain/StatusCommand.d.ts +38 -3
- package/types/domain/ViewCommand.d.ts +27 -0
- package/types/domain/WebCommand.d.ts +47 -0
- package/types/domain/inspect/ReleaseAuditor.d.ts +134 -0
- package/types/domain/inspect/ReleaseAuditor.story.d.ts +1 -0
- package/types/domain/templates/release.html.template.d.ts +2 -0
- package/types/index.d.ts +18 -10
- package/types/inspectors/inspect-js.d.ts +2 -0
- package/types/utils/nodejs/GitTelemetry.d.ts +23 -0
package/types/index.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
export { ReleaseApp } from "./domain/App.js";
|
|
2
|
+
export { default as InitCommand } from "./domain/InitCommand.js";
|
|
3
|
+
export { default as CheckCommand } from "./domain/CheckCommand.js";
|
|
4
|
+
export { default as CloseCommand } from "./domain/CloseCommand.js";
|
|
5
|
+
export { default as DepsCommand } from "./domain/DepsCommand.js";
|
|
6
|
+
export { default as PublishCommand } from "./domain/PublishCommand.js";
|
|
7
|
+
export { default as SpecCommand } from "./domain/SpecCommand.js";
|
|
8
|
+
export { default as StatusCommand } from "./domain/StatusCommand.js";
|
|
9
|
+
export { default as WebCommand } from "./domain/WebCommand.js";
|
|
10
|
+
export { default as PreviewCommand } from "./domain/PreviewCommand.js";
|
|
11
|
+
export { RegistryModel } from "./domain/Registry/RegistryModel.js";
|
|
12
|
+
export { DashboardModel } from "./domain/Dashboard/DashboardModel.js";
|
|
13
|
+
export { ReleaseAuditor } from "./domain/inspect/ReleaseAuditor.js";
|
|
1
14
|
import Release from './Release.js';
|
|
2
15
|
import ReleaseDocument from './Release/Document.js';
|
|
3
16
|
import Person from './Release/Person.js';
|
|
4
17
|
import Scanner from './Release/Scanner.js';
|
|
5
18
|
import MarkdownToTest from './Release/MarkdownToTest.js';
|
|
6
|
-
import { ProjectManagement
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
export { default as CloseCommand } from './domain/CloseCommand.js';
|
|
12
|
-
export { default as DepsCommand } from './domain/DepsCommand.js';
|
|
13
|
-
export { default as PublishCommand } from './domain/PublishCommand.js';
|
|
14
|
-
export { default as SpecCommand } from './domain/SpecCommand.js';
|
|
15
|
-
export { default as StatusCommand } from './domain/StatusCommand.js';
|
|
19
|
+
import { ProjectManagement } from './architecture/ProjectManagementAsCode.js';
|
|
20
|
+
import { ReleaseManager } from './architecture/ProjectManagementAsCode.js';
|
|
21
|
+
import { TaskTestSuite } from './architecture/ProjectManagementAsCode.js';
|
|
22
|
+
import { ChangelogTaskManager } from './architecture/ProjectManagementAsCode.js';
|
|
23
|
+
export { Release, ReleaseDocument, Person, Scanner, MarkdownToTest, ProjectManagement, ReleaseManager, TaskTestSuite, ChangelogTaskManager };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reset internal Git caches (useful for testing or cache invalidation)
|
|
3
|
+
*/
|
|
4
|
+
export function resetGitCache(): void;
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve git branch and workspace status (clean / dirty)
|
|
7
|
+
* @param {string} [projectDir]
|
|
8
|
+
* @returns {{ branch: string, gitStatus: 'clean' | 'dirty' }}
|
|
9
|
+
*/
|
|
10
|
+
export function getGitInfo(projectDir?: string): {
|
|
11
|
+
branch: string;
|
|
12
|
+
gitStatus: "clean" | "dirty";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve development hours and iterations from git commit log
|
|
16
|
+
* @param {string} [projectDir]
|
|
17
|
+
* @param {string} [releasePath]
|
|
18
|
+
* @returns {{ hours: number, iterations: number }}
|
|
19
|
+
*/
|
|
20
|
+
export function getGitCommitTelemetry(projectDir?: string, releasePath?: string): {
|
|
21
|
+
hours: number;
|
|
22
|
+
iterations: number;
|
|
23
|
+
};
|