@imolko/create-ultra-reporter 2.1.23-beta

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 (182) hide show
  1. package/README.md +219 -0
  2. package/bin/classes/index.d.ts +0 -0
  3. package/bin/classes/index.js +2 -0
  4. package/bin/classes/index.js.map +1 -0
  5. package/bin/classes/logger.d.ts +42 -0
  6. package/bin/classes/logger.js +185 -0
  7. package/bin/classes/logger.js.map +1 -0
  8. package/bin/cli.d.ts +2 -0
  9. package/bin/cli.js +48 -0
  10. package/bin/cli.js.map +1 -0
  11. package/bin/commands/build.d.ts +2 -0
  12. package/bin/commands/build.js +151 -0
  13. package/bin/commands/build.js.map +1 -0
  14. package/bin/commands/create.d.ts +60 -0
  15. package/bin/commands/create.js +368 -0
  16. package/bin/commands/create.js.map +1 -0
  17. package/bin/commands/generate-documentation.d.ts +2 -0
  18. package/bin/commands/generate-documentation.js +249 -0
  19. package/bin/commands/generate-documentation.js.map +1 -0
  20. package/bin/commands/generate.d.ts +2 -0
  21. package/bin/commands/generate.js +79 -0
  22. package/bin/commands/generate.js.map +1 -0
  23. package/bin/commands/index.d.ts +6 -0
  24. package/bin/commands/index.js +16 -0
  25. package/bin/commands/index.js.map +1 -0
  26. package/bin/commands/init.d.ts +2 -0
  27. package/bin/commands/init.js +54 -0
  28. package/bin/commands/init.js.map +1 -0
  29. package/bin/commands/serve.d.ts +2 -0
  30. package/bin/commands/serve.js +124 -0
  31. package/bin/commands/serve.js.map +1 -0
  32. package/bin/commands/types.d.ts +65 -0
  33. package/bin/commands/types.js +9 -0
  34. package/bin/commands/types.js.map +1 -0
  35. package/bin/config/reader.d.ts +17 -0
  36. package/bin/config/reader.js +166 -0
  37. package/bin/config/reader.js.map +1 -0
  38. package/bin/config/types.d.ts +57 -0
  39. package/bin/config/types.js +21 -0
  40. package/bin/config/types.js.map +1 -0
  41. package/bin/data/documentation-folder.d.ts +1 -0
  42. package/bin/data/documentation-folder.js +5 -0
  43. package/bin/data/documentation-folder.js.map +1 -0
  44. package/bin/data/files-generated.d.ts +1 -0
  45. package/bin/data/files-generated.js +10 -0
  46. package/bin/data/files-generated.js.map +1 -0
  47. package/bin/data/index.d.ts +2 -0
  48. package/bin/data/index.js +8 -0
  49. package/bin/data/index.js.map +1 -0
  50. package/bin/pipeline/generate.d.ts +26 -0
  51. package/bin/pipeline/generate.js +269 -0
  52. package/bin/pipeline/generate.js.map +1 -0
  53. package/bin/reporters/data-loading.d.ts +121 -0
  54. package/bin/reporters/data-loading.js +398 -0
  55. package/bin/reporters/data-loading.js.map +1 -0
  56. package/bin/reporters/data-transformation.d.ts +101 -0
  57. package/bin/reporters/data-transformation.js +392 -0
  58. package/bin/reporters/data-transformation.js.map +1 -0
  59. package/bin/reporters/file-writing.d.ts +29 -0
  60. package/bin/reporters/file-writing.js +100 -0
  61. package/bin/reporters/file-writing.js.map +1 -0
  62. package/bin/reporters/generate-domain-documentation.d.ts +17 -0
  63. package/bin/reporters/generate-domain-documentation.js +161 -0
  64. package/bin/reporters/generate-domain-documentation.js.map +1 -0
  65. package/bin/reporters/generate-use-cases-documentation.d.ts +18 -0
  66. package/bin/reporters/generate-use-cases-documentation.js +123 -0
  67. package/bin/reporters/generate-use-cases-documentation.js.map +1 -0
  68. package/bin/reporters/rendering.d.ts +116 -0
  69. package/bin/reporters/rendering.js +385 -0
  70. package/bin/reporters/rendering.js.map +1 -0
  71. package/bin/reporters/templates/README.md +28 -0
  72. package/bin/reporters/templates/card.template.jsx +5 -0
  73. package/bin/reporters/templates/cards-container.template.jsx +5 -0
  74. package/bin/reporters/types.d.ts +190 -0
  75. package/bin/reporters/types.js +8 -0
  76. package/bin/reporters/types.js.map +1 -0
  77. package/bin/scaffold/assembler.d.ts +13 -0
  78. package/bin/scaffold/assembler.js +371 -0
  79. package/bin/scaffold/assembler.js.map +1 -0
  80. package/bin/scaffold/doc-assembler.d.ts +10 -0
  81. package/bin/scaffold/doc-assembler.js +113 -0
  82. package/bin/scaffold/doc-assembler.js.map +1 -0
  83. package/bin/scripts/add-import.d.ts +1 -0
  84. package/bin/scripts/add-import.js +26 -0
  85. package/bin/scripts/add-import.js.map +1 -0
  86. package/bin/scripts/converter.d.ts +6 -0
  87. package/bin/scripts/converter.js +120 -0
  88. package/bin/scripts/converter.js.map +1 -0
  89. package/bin/scripts/copy-files.d.ts +1 -0
  90. package/bin/scripts/copy-files.js +96 -0
  91. package/bin/scripts/copy-files.js.map +1 -0
  92. package/bin/scripts/create-folder.d.ts +1 -0
  93. package/bin/scripts/create-folder.js +23 -0
  94. package/bin/scripts/create-folder.js.map +1 -0
  95. package/bin/scripts/delete-paths.d.ts +1 -0
  96. package/bin/scripts/delete-paths.js +34 -0
  97. package/bin/scripts/delete-paths.js.map +1 -0
  98. package/bin/scripts/exists-file.d.ts +5 -0
  99. package/bin/scripts/exists-file.js +12 -0
  100. package/bin/scripts/exists-file.js.map +1 -0
  101. package/bin/scripts/generate-track-artifacts.d.ts +1 -0
  102. package/bin/scripts/generate-track-artifacts.js +59 -0
  103. package/bin/scripts/generate-track-artifacts.js.map +1 -0
  104. package/bin/scripts/get-artifacts.d.ts +1 -0
  105. package/bin/scripts/get-artifacts.js +38 -0
  106. package/bin/scripts/get-artifacts.js.map +1 -0
  107. package/bin/scripts/get-directories.d.ts +1 -0
  108. package/bin/scripts/get-directories.js +10 -0
  109. package/bin/scripts/get-directories.js.map +1 -0
  110. package/bin/scripts/get-file.d.ts +9 -0
  111. package/bin/scripts/get-file.js +38 -0
  112. package/bin/scripts/get-file.js.map +1 -0
  113. package/bin/scripts/labels.d.ts +35 -0
  114. package/bin/scripts/labels.js +108 -0
  115. package/bin/scripts/labels.js.map +1 -0
  116. package/bin/scripts/markdown.d.ts +34 -0
  117. package/bin/scripts/markdown.js +99 -0
  118. package/bin/scripts/markdown.js.map +1 -0
  119. package/bin/scripts/names.d.ts +18 -0
  120. package/bin/scripts/names.js +64 -0
  121. package/bin/scripts/names.js.map +1 -0
  122. package/bin/scripts/track-artifacts.d.ts +2 -0
  123. package/bin/scripts/track-artifacts.js +101 -0
  124. package/bin/scripts/track-artifacts.js.map +1 -0
  125. package/bin/utils/create-folder.d.ts +1 -0
  126. package/bin/utils/create-folder.js +23 -0
  127. package/bin/utils/create-folder.js.map +1 -0
  128. package/bin/utils/delete-markdown-files.d.ts +1 -0
  129. package/bin/utils/delete-markdown-files.js +46 -0
  130. package/bin/utils/delete-markdown-files.js.map +1 -0
  131. package/bin/utils/delete-paths.d.ts +5 -0
  132. package/bin/utils/delete-paths.js +26 -0
  133. package/bin/utils/delete-paths.js.map +1 -0
  134. package/bin/utils/exists-file.d.ts +6 -0
  135. package/bin/utils/exists-file.js +13 -0
  136. package/bin/utils/exists-file.js.map +1 -0
  137. package/bin/utils/exists-folder.d.ts +6 -0
  138. package/bin/utils/exists-folder.js +13 -0
  139. package/bin/utils/exists-folder.js.map +1 -0
  140. package/bin/utils/get-internal-resource-path.d.ts +1 -0
  141. package/bin/utils/get-internal-resource-path.js +43 -0
  142. package/bin/utils/get-internal-resource-path.js.map +1 -0
  143. package/bin/utils/get-json-file.d.ts +1 -0
  144. package/bin/utils/get-json-file.js +27 -0
  145. package/bin/utils/get-json-file.js.map +1 -0
  146. package/bin/utils/index.d.ts +6 -0
  147. package/bin/utils/index.js +16 -0
  148. package/bin/utils/index.js.map +1 -0
  149. package/bin/utils/run-command.d.ts +5 -0
  150. package/bin/utils/run-command.js +36 -0
  151. package/bin/utils/run-command.js.map +1 -0
  152. package/jsdoc.conf.json +30 -0
  153. package/package.json +75 -0
  154. package/templates/documentation/README.md +41 -0
  155. package/templates/documentation/docs/.gitkeep +0 -0
  156. package/templates/documentation/docusaurus.config.ts +127 -0
  157. package/templates/documentation/package-lock.json +19431 -0
  158. package/templates/documentation/package.json +49 -0
  159. package/templates/documentation/sidebars.ts +33 -0
  160. package/templates/documentation/src/components/ArtifactTable/FilterBar.tsx +185 -0
  161. package/templates/documentation/src/components/ArtifactTable/index.tsx +298 -0
  162. package/templates/documentation/src/components/ArtifactTable/styles.module.css +282 -0
  163. package/templates/documentation/src/components/ArtifactTable/types.ts +31 -0
  164. package/templates/documentation/src/components/HomepageFeatures/index.tsx +77 -0
  165. package/templates/documentation/src/components/HomepageFeatures/styles.module.css +11 -0
  166. package/templates/documentation/src/css/custom.css +30 -0
  167. package/templates/documentation/src/pages/index.module.css +23 -0
  168. package/templates/documentation/src/pages/index.tsx +43 -0
  169. package/templates/documentation/src/pages/markdown-page.md +7 -0
  170. package/templates/documentation/static/.nojekyll +0 -0
  171. package/templates/documentation/static/img/docusaurus-social-card.jpg +0 -0
  172. package/templates/documentation/static/img/docusaurus.png +0 -0
  173. package/templates/documentation/static/img/favicon.ico +0 -0
  174. package/templates/documentation/static/img/logo.svg +1 -0
  175. package/templates/documentation/static/img/logo_imolko_azul.png +0 -0
  176. package/templates/documentation/static/img/undraw_docusaurus_mountain.svg +171 -0
  177. package/templates/documentation/static/img/undraw_docusaurus_react.svg +170 -0
  178. package/templates/documentation/static/img/undraw_docusaurus_tree.svg +40 -0
  179. package/templates/documentation/tsconfig.json +8 -0
  180. package/templates/documentation/ultra-reporter.config.json +55 -0
  181. package/templates/track-artifacts-script.ts +44 -0
  182. package/tsconfig.build-track.json +39 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-command.js","sourceRoot":"","sources":["../../src/utils/run-command.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAoC;AAEpC,+DAAsC;AAEtC,MAAM,QAAQ,GAAG,gBAAM,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;AAEjE;;;GAGG;AACI,MAAM,UAAU,GAAG,CAAC,OAAe,EAAE,EAAE;IAC5C,QAAQ,CAAC,OAAO,CAAC,sBAAsB,OAAO,EAAE,CAAC,CAAC;IAClD,QAAQ,CAAC,KAAK,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC;IACtC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,YAAY,GAAG,IAAA,oBAAI,EACvB,OAAO,EACP;YACE,wDAAwD;YACxD,GAAG,EAAE;gBACH,GAAG,OAAO,CAAC,GAAG;aACf;SACF,EACD,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YACxB,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,KAAK,CAAC,CAAC;gBACd,OAAO;YACT,CAAC;YACD,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC,CACF,CAAC;QAEF,gCAAgC;QAChC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC1C,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAzBW,QAAA,UAAU,cAyBrB"}
@@ -0,0 +1,30 @@
1
+ {
2
+ "tags": {
3
+ "allowUnknownTags": true,
4
+ "dictionaries": [
5
+ "jsdoc",
6
+ "closure"
7
+ ]
8
+ },
9
+ "source": {
10
+ "include": [
11
+ "./src"
12
+ ],
13
+ "includePattern": ".+\\.ts(doc|x)?$",
14
+ "excludePattern": "(^|\\/|\\\\)node_modules|dist"
15
+ },
16
+ "plugins": [
17
+ "node_modules/better-docs/typescript"
18
+ ],
19
+ "templates": {
20
+ "cleverLinks": false,
21
+ "monospaceLinks": false
22
+ },
23
+ "opts": {
24
+ "template": "node_modules/better-docs",
25
+ "encoding": "utf8",
26
+ "destination": "./jsdocs/",
27
+ "recurse": true,
28
+ "verbose": true
29
+ }
30
+ }
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "@imolko/create-ultra-reporter",
3
+ "version": "2.1.23-beta",
4
+ "description": "Reporter and documentation for: domain, use-cases and tests",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Roberto Matute",
8
+ "email": "robertomatute@imolko.com"
9
+ },
10
+ "contributors": [
11
+ {
12
+ "name": "Jesús David Pérez",
13
+ "email": "jesusdpp96@gmail.com"
14
+ }
15
+ ],
16
+ "keywords": [
17
+ "testing",
18
+ "reports",
19
+ "cli",
20
+ "automation"
21
+ ],
22
+ "homepage": "https://gitlab.com/imolko/ultra-reporter",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://gitlab.com/imolko/ultra-reporter"
26
+ },
27
+ "bin": {
28
+ "ultra-reporter": "./bin/cli.js"
29
+ },
30
+ "engines": {
31
+ "node": ">=20"
32
+ },
33
+ "scripts": {
34
+ "test": "jest",
35
+ "build": "[ -d bin ] && rm -r bin; tsc --project tsconfig.build.json && cp -r src/reporters/templates bin/reporters/templates && chmod +x ./bin/cli.js"
36
+ },
37
+ "files": [
38
+ "bin",
39
+ "templates",
40
+ "reporter-domain",
41
+ "reporter-use-cases",
42
+ "tsconfig.build-track.json",
43
+ "jsdoc.conf.json",
44
+ "README.md"
45
+ ],
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "peerDependencies": {
50
+ "better-docs": "^2.7.3"
51
+ },
52
+ "dependencies": {
53
+ "@imolko/ultra-tsconfig": "^1.1.0",
54
+ "better-docs": "^2.7.3",
55
+ "chalk": "^5.6.2",
56
+ "commander": "^14.0.3",
57
+ "jest-html-reporters": "^3.1.7",
58
+ "js-yaml": "^4.1.1",
59
+ "jsdoc": "^4.0.5",
60
+ "simply-beautiful": "^1.0.1",
61
+ "typescript": "^6.0.3",
62
+ "winston": "^3.19.0"
63
+ },
64
+ "devDependencies": {
65
+ "@imolko/ultra-generator": "^2.1.5-beta",
66
+ "@types/jest": "^30.0.0",
67
+ "@types/js-yaml": "^4.0.9",
68
+ "@types/node": "^25.6.0",
69
+ "@types/winston": "^2.4.4",
70
+ "inquirer": "^12.11.1",
71
+ "jest": "30.3.0",
72
+ "ts-jest": "^29.4.9",
73
+ "zod": "^4.4.3"
74
+ }
75
+ }
@@ -0,0 +1,41 @@
1
+ # Website
2
+
3
+ This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4
+
5
+ ### Installation
6
+
7
+ ```
8
+ $ yarn
9
+ ```
10
+
11
+ ### Local Development
12
+
13
+ ```
14
+ $ yarn start
15
+ ```
16
+
17
+ This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18
+
19
+ ### Build
20
+
21
+ ```
22
+ $ yarn build
23
+ ```
24
+
25
+ This command generates static content into the `build` directory and can be served using any static contents hosting service.
26
+
27
+ ### Deployment
28
+
29
+ Using SSH:
30
+
31
+ ```
32
+ $ USE_SSH=true yarn deploy
33
+ ```
34
+
35
+ Not using SSH:
36
+
37
+ ```
38
+ $ GIT_USER=<Your GitHub username> yarn deploy
39
+ ```
40
+
41
+ If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
File without changes
@@ -0,0 +1,127 @@
1
+ import { themes as prismThemes } from "prism-react-renderer";
2
+ import type { Config } from "@docusaurus/types";
3
+ import type * as Preset from "@docusaurus/preset-classic";
4
+
5
+ // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6
+
7
+ const config: Config = {
8
+ title: "MyContext",
9
+ tagline: "Contexto MyContext",
10
+ favicon: "img/favicon.ico",
11
+
12
+ // Set the production url of your site here
13
+ url: "https://your-docusaurus-site.example.com",
14
+ // Set the /<baseUrl>/ pathname under which your site is served
15
+ // For GitHub pages deployment, it is often '/<projectName>/'
16
+ baseUrl: "/",
17
+
18
+ // GitHub pages deployment config.
19
+ // If you aren't using GitHub pages, you don't need these.
20
+ organizationName: "facebook", // Usually your GitHub org/user name.
21
+ projectName: "docusaurus", // Usually your repo name.
22
+
23
+ onBrokenLinks: "throw",
24
+ onBrokenMarkdownLinks: "warn",
25
+
26
+ // Even if you don't use internationalization, you can use this field to set
27
+ // useful metadata like html lang. For example, if your site is Chinese, you
28
+ // may want to replace "en" with "zh-Hans".
29
+ i18n: {
30
+ defaultLocale: "en",
31
+ locales: ["en"],
32
+ },
33
+
34
+ presets: [
35
+ [
36
+ "classic",
37
+ {
38
+ docs: {
39
+ sidebarPath: "./sidebars.ts",
40
+ // Please change this to your repo.
41
+ // Remove this to remove the "edit this page" links.
42
+ editUrl:
43
+ "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
44
+ },
45
+ theme: {
46
+ customCss: "./src/css/custom.css",
47
+ },
48
+ } satisfies Preset.Options,
49
+ ],
50
+ ],
51
+
52
+ themeConfig: {
53
+ // Replace with your project's social card
54
+ image: "img/docusaurus-social-card.jpg",
55
+ navbar: {
56
+ title: "Zenkiu-7 MyContext",
57
+ logo: {
58
+ alt: "My Site Logo",
59
+ src: "img/logo_imolko_azul.png",
60
+ },
61
+ items: [
62
+ {
63
+ type: "docSidebar",
64
+ sidebarId: "tutorialSidebar",
65
+ position: "left",
66
+ label: "Documentation",
67
+ },
68
+ {
69
+ href: "https://github.com/facebook/docusaurus",
70
+ label: "GitHub",
71
+ position: "right",
72
+ },
73
+ ],
74
+ },
75
+ footer: {
76
+ style: "dark",
77
+ links: [
78
+ {
79
+ title: "Docs",
80
+ items: [
81
+ {
82
+ label: "Aggregates",
83
+ to: "/docs/category/aggregates",
84
+ },
85
+ {
86
+ label: "Domain artifcats",
87
+ to: "/docs/category/domain-artifacts",
88
+ },
89
+ {
90
+ label: "Intro",
91
+ to: "/docs/intro",
92
+ },
93
+ ],
94
+ },
95
+ {
96
+ title: "Community",
97
+ items: [
98
+ {
99
+ label: "Stack Overflow",
100
+ href: "https://stackoverflow.com/questions/tagged/docusaurus",
101
+ },
102
+ {
103
+ label: "Discord",
104
+ href: "https://discordapp.com/invite/docusaurus",
105
+ },
106
+ {
107
+ label: "X",
108
+ href: "https://x.com/docusaurus",
109
+ },
110
+ ],
111
+ }
112
+ ],
113
+ copyright: `Copyright © ${new Date().getFullYear()} Imolko, Inc. Built with Docusaurus.`,
114
+ },
115
+ prism: {
116
+ theme: prismThemes.github,
117
+ darkTheme: prismThemes.dracula,
118
+ },
119
+ } satisfies Preset.ThemeConfig,
120
+
121
+ markdown: {
122
+ mermaid: true,
123
+ },
124
+ themes: ['@docusaurus/theme-mermaid'],
125
+ };
126
+
127
+ export default config;