@imolko/ultra-ddd 1.0.17-beta → 1.0.18-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 (176) hide show
  1. package/README.md +9 -1
  2. package/dist-browser/scripts/get-event/constants.d.ts +3 -6
  3. package/dist-browser/scripts/get-event/constants.d.ts.map +1 -1
  4. package/dist-browser/scripts/get-event/constants.js +7 -6
  5. package/dist-browser/scripts/get-event/constants.js.map +1 -1
  6. package/dist-browser/scripts/get-event/copy-tsconfig.d.ts +2 -1
  7. package/dist-browser/scripts/get-event/copy-tsconfig.d.ts.map +1 -1
  8. package/dist-browser/scripts/get-event/copy-tsconfig.js +5 -3
  9. package/dist-browser/scripts/get-event/copy-tsconfig.js.map +1 -1
  10. package/dist-browser/scripts/get-event/generate-track-events.d.ts +3 -3
  11. package/dist-browser/scripts/get-event/generate-track-events.d.ts.map +1 -1
  12. package/dist-browser/scripts/get-event/generate-track-events.js +16 -8
  13. package/dist-browser/scripts/get-event/generate-track-events.js.map +1 -1
  14. package/dist-browser/scripts/get-event/generate.d.ts +3 -1
  15. package/dist-browser/scripts/get-event/generate.d.ts.map +1 -1
  16. package/dist-browser/scripts/get-event/generate.js +17 -12
  17. package/dist-browser/scripts/get-event/generate.js.map +1 -1
  18. package/dist-browser/scripts/get-event/get-argv.d.ts +12 -0
  19. package/dist-browser/scripts/get-event/get-argv.d.ts.map +1 -0
  20. package/dist-browser/scripts/get-event/get-argv.js +20 -0
  21. package/dist-browser/scripts/get-event/get-argv.js.map +1 -0
  22. package/dist-browser/scripts/get-event/templates/tsconfig.event-track.d.ts +7 -1
  23. package/dist-browser/scripts/get-event/templates/tsconfig.event-track.d.ts.map +1 -1
  24. package/dist-browser/scripts/get-event/templates/tsconfig.event-track.js +17 -5
  25. package/dist-browser/scripts/get-event/templates/tsconfig.event-track.js.map +1 -1
  26. package/dist-browser/scripts/helpers/add-import.d.ts.map +1 -0
  27. package/dist-browser/scripts/helpers/add-import.js.map +1 -0
  28. package/dist-browser/scripts/helpers/create-root-file.d.ts.map +1 -0
  29. package/dist-browser/scripts/{get-event/helpers → helpers}/create-root-file.js +1 -1
  30. package/dist-browser/scripts/helpers/create-root-file.js.map +1 -0
  31. package/dist-browser/scripts/helpers/ensure-dirs.d.ts +7 -0
  32. package/dist-browser/scripts/helpers/ensure-dirs.d.ts.map +1 -0
  33. package/dist-browser/scripts/helpers/ensure-dirs.js +28 -0
  34. package/dist-browser/scripts/helpers/ensure-dirs.js.map +1 -0
  35. package/dist-browser/scripts/helpers/exists-file.d.ts.map +1 -0
  36. package/dist-browser/scripts/helpers/exists-file.js.map +1 -0
  37. package/dist-browser/scripts/helpers/get-directories.d.ts.map +1 -0
  38. package/dist-browser/scripts/helpers/get-directories.js.map +1 -0
  39. package/dist-browser/scripts/helpers/get-event-domain.d.ts.map +1 -0
  40. package/dist-browser/scripts/helpers/get-event-domain.js.map +1 -0
  41. package/dist-browser/scripts/helpers/get-file.d.ts.map +1 -0
  42. package/dist-browser/scripts/helpers/get-file.js.map +1 -0
  43. package/dist-browser/scripts/helpers/get-names.d.ts.map +1 -0
  44. package/dist-browser/scripts/helpers/get-names.js.map +1 -0
  45. package/dist-browser/scripts/{get-event/helpers → helpers}/index.d.ts +1 -0
  46. package/dist-browser/scripts/helpers/index.d.ts.map +1 -0
  47. package/dist-browser/scripts/{get-event/helpers → helpers}/index.js +1 -0
  48. package/dist-browser/scripts/helpers/index.js.map +1 -0
  49. package/dist-browser/scripts/helpers/update-gitignore.d.ts +7 -0
  50. package/dist-browser/scripts/helpers/update-gitignore.d.ts.map +1 -0
  51. package/dist-browser/scripts/{get-event/helpers → helpers}/update-gitignore.js +7 -9
  52. package/dist-browser/scripts/helpers/update-gitignore.js.map +1 -0
  53. package/dist-node/scripts/get-event/constants.d.ts +3 -6
  54. package/dist-node/scripts/get-event/constants.d.ts.map +1 -1
  55. package/dist-node/scripts/get-event/constants.js +8 -7
  56. package/dist-node/scripts/get-event/constants.js.map +1 -1
  57. package/dist-node/scripts/get-event/copy-tsconfig.d.ts +2 -1
  58. package/dist-node/scripts/get-event/copy-tsconfig.d.ts.map +1 -1
  59. package/dist-node/scripts/get-event/copy-tsconfig.js +5 -3
  60. package/dist-node/scripts/get-event/copy-tsconfig.js.map +1 -1
  61. package/dist-node/scripts/get-event/generate-track-events.d.ts +3 -3
  62. package/dist-node/scripts/get-event/generate-track-events.d.ts.map +1 -1
  63. package/dist-node/scripts/get-event/generate-track-events.js +15 -7
  64. package/dist-node/scripts/get-event/generate-track-events.js.map +1 -1
  65. package/dist-node/scripts/get-event/generate.d.ts +3 -1
  66. package/dist-node/scripts/get-event/generate.d.ts.map +1 -1
  67. package/dist-node/scripts/get-event/generate.js +16 -11
  68. package/dist-node/scripts/get-event/generate.js.map +1 -1
  69. package/dist-node/scripts/get-event/get-argv.d.ts +12 -0
  70. package/dist-node/scripts/get-event/get-argv.d.ts.map +1 -0
  71. package/dist-node/scripts/get-event/get-argv.js +24 -0
  72. package/dist-node/scripts/get-event/get-argv.js.map +1 -0
  73. package/dist-node/scripts/get-event/templates/tsconfig.event-track.d.ts +7 -1
  74. package/dist-node/scripts/get-event/templates/tsconfig.event-track.d.ts.map +1 -1
  75. package/dist-node/scripts/get-event/templates/tsconfig.event-track.js +17 -5
  76. package/dist-node/scripts/get-event/templates/tsconfig.event-track.js.map +1 -1
  77. package/dist-node/scripts/helpers/add-import.d.ts.map +1 -0
  78. package/dist-node/scripts/helpers/add-import.js.map +1 -0
  79. package/dist-node/scripts/helpers/create-root-file.d.ts.map +1 -0
  80. package/dist-node/scripts/{get-event/helpers → helpers}/create-root-file.js +1 -1
  81. package/dist-node/scripts/helpers/create-root-file.js.map +1 -0
  82. package/dist-node/scripts/helpers/ensure-dirs.d.ts +7 -0
  83. package/dist-node/scripts/helpers/ensure-dirs.d.ts.map +1 -0
  84. package/dist-node/scripts/helpers/ensure-dirs.js +55 -0
  85. package/dist-node/scripts/helpers/ensure-dirs.js.map +1 -0
  86. package/dist-node/scripts/helpers/exists-file.d.ts.map +1 -0
  87. package/dist-node/scripts/helpers/exists-file.js.map +1 -0
  88. package/dist-node/scripts/helpers/get-directories.d.ts.map +1 -0
  89. package/dist-node/scripts/helpers/get-directories.js.map +1 -0
  90. package/dist-node/scripts/helpers/get-event-domain.d.ts.map +1 -0
  91. package/dist-node/scripts/helpers/get-event-domain.js.map +1 -0
  92. package/dist-node/scripts/helpers/get-file.d.ts.map +1 -0
  93. package/dist-node/scripts/helpers/get-file.js.map +1 -0
  94. package/dist-node/scripts/helpers/get-names.d.ts.map +1 -0
  95. package/dist-node/scripts/helpers/get-names.js.map +1 -0
  96. package/dist-node/scripts/{get-event/helpers → helpers}/index.d.ts +1 -0
  97. package/dist-node/scripts/helpers/index.d.ts.map +1 -0
  98. package/dist-node/scripts/{get-event/helpers → helpers}/index.js +1 -0
  99. package/dist-node/scripts/helpers/index.js.map +1 -0
  100. package/dist-node/scripts/helpers/update-gitignore.d.ts +7 -0
  101. package/dist-node/scripts/helpers/update-gitignore.d.ts.map +1 -0
  102. package/dist-node/scripts/{get-event/helpers → helpers}/update-gitignore.js +7 -9
  103. package/dist-node/scripts/helpers/update-gitignore.js.map +1 -0
  104. package/package.json +1 -1
  105. package/dist-browser/scripts/get-event/helpers/add-import.d.ts.map +0 -1
  106. package/dist-browser/scripts/get-event/helpers/add-import.js.map +0 -1
  107. package/dist-browser/scripts/get-event/helpers/create-root-file.d.ts.map +0 -1
  108. package/dist-browser/scripts/get-event/helpers/create-root-file.js.map +0 -1
  109. package/dist-browser/scripts/get-event/helpers/exists-file.d.ts.map +0 -1
  110. package/dist-browser/scripts/get-event/helpers/exists-file.js.map +0 -1
  111. package/dist-browser/scripts/get-event/helpers/get-directories.d.ts.map +0 -1
  112. package/dist-browser/scripts/get-event/helpers/get-directories.js.map +0 -1
  113. package/dist-browser/scripts/get-event/helpers/get-event-domain.d.ts.map +0 -1
  114. package/dist-browser/scripts/get-event/helpers/get-event-domain.js.map +0 -1
  115. package/dist-browser/scripts/get-event/helpers/get-file.d.ts.map +0 -1
  116. package/dist-browser/scripts/get-event/helpers/get-file.js.map +0 -1
  117. package/dist-browser/scripts/get-event/helpers/get-names.d.ts.map +0 -1
  118. package/dist-browser/scripts/get-event/helpers/get-names.js.map +0 -1
  119. package/dist-browser/scripts/get-event/helpers/index.d.ts.map +0 -1
  120. package/dist-browser/scripts/get-event/helpers/index.js.map +0 -1
  121. package/dist-browser/scripts/get-event/helpers/update-gitignore.d.ts +0 -2
  122. package/dist-browser/scripts/get-event/helpers/update-gitignore.d.ts.map +0 -1
  123. package/dist-browser/scripts/get-event/helpers/update-gitignore.js.map +0 -1
  124. package/dist-browser/scripts/get-event/index.d.ts +0 -4
  125. package/dist-browser/scripts/get-event/index.d.ts.map +0 -1
  126. package/dist-browser/scripts/get-event/index.js +0 -4
  127. package/dist-browser/scripts/get-event/index.js.map +0 -1
  128. package/dist-node/scripts/get-event/helpers/add-import.d.ts.map +0 -1
  129. package/dist-node/scripts/get-event/helpers/add-import.js.map +0 -1
  130. package/dist-node/scripts/get-event/helpers/create-root-file.d.ts.map +0 -1
  131. package/dist-node/scripts/get-event/helpers/create-root-file.js.map +0 -1
  132. package/dist-node/scripts/get-event/helpers/exists-file.d.ts.map +0 -1
  133. package/dist-node/scripts/get-event/helpers/exists-file.js.map +0 -1
  134. package/dist-node/scripts/get-event/helpers/get-directories.d.ts.map +0 -1
  135. package/dist-node/scripts/get-event/helpers/get-directories.js.map +0 -1
  136. package/dist-node/scripts/get-event/helpers/get-event-domain.d.ts.map +0 -1
  137. package/dist-node/scripts/get-event/helpers/get-event-domain.js.map +0 -1
  138. package/dist-node/scripts/get-event/helpers/get-file.d.ts.map +0 -1
  139. package/dist-node/scripts/get-event/helpers/get-file.js.map +0 -1
  140. package/dist-node/scripts/get-event/helpers/get-names.d.ts.map +0 -1
  141. package/dist-node/scripts/get-event/helpers/get-names.js.map +0 -1
  142. package/dist-node/scripts/get-event/helpers/index.d.ts.map +0 -1
  143. package/dist-node/scripts/get-event/helpers/index.js.map +0 -1
  144. package/dist-node/scripts/get-event/helpers/update-gitignore.d.ts +0 -2
  145. package/dist-node/scripts/get-event/helpers/update-gitignore.d.ts.map +0 -1
  146. package/dist-node/scripts/get-event/helpers/update-gitignore.js.map +0 -1
  147. package/dist-node/scripts/get-event/index.d.ts +0 -4
  148. package/dist-node/scripts/get-event/index.d.ts.map +0 -1
  149. package/dist-node/scripts/get-event/index.js +0 -20
  150. package/dist-node/scripts/get-event/index.js.map +0 -1
  151. /package/dist-browser/scripts/{get-event/helpers → helpers}/add-import.d.ts +0 -0
  152. /package/dist-browser/scripts/{get-event/helpers → helpers}/add-import.js +0 -0
  153. /package/dist-browser/scripts/{get-event/helpers → helpers}/create-root-file.d.ts +0 -0
  154. /package/dist-browser/scripts/{get-event/helpers → helpers}/exists-file.d.ts +0 -0
  155. /package/dist-browser/scripts/{get-event/helpers → helpers}/exists-file.js +0 -0
  156. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-directories.d.ts +0 -0
  157. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-directories.js +0 -0
  158. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-event-domain.d.ts +0 -0
  159. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-event-domain.js +0 -0
  160. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-file.d.ts +0 -0
  161. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-file.js +0 -0
  162. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-names.d.ts +0 -0
  163. /package/dist-browser/scripts/{get-event/helpers → helpers}/get-names.js +0 -0
  164. /package/dist-node/scripts/{get-event/helpers → helpers}/add-import.d.ts +0 -0
  165. /package/dist-node/scripts/{get-event/helpers → helpers}/add-import.js +0 -0
  166. /package/dist-node/scripts/{get-event/helpers → helpers}/create-root-file.d.ts +0 -0
  167. /package/dist-node/scripts/{get-event/helpers → helpers}/exists-file.d.ts +0 -0
  168. /package/dist-node/scripts/{get-event/helpers → helpers}/exists-file.js +0 -0
  169. /package/dist-node/scripts/{get-event/helpers → helpers}/get-directories.d.ts +0 -0
  170. /package/dist-node/scripts/{get-event/helpers → helpers}/get-directories.js +0 -0
  171. /package/dist-node/scripts/{get-event/helpers → helpers}/get-event-domain.d.ts +0 -0
  172. /package/dist-node/scripts/{get-event/helpers → helpers}/get-event-domain.js +0 -0
  173. /package/dist-node/scripts/{get-event/helpers → helpers}/get-file.d.ts +0 -0
  174. /package/dist-node/scripts/{get-event/helpers → helpers}/get-file.js +0 -0
  175. /package/dist-node/scripts/{get-event/helpers → helpers}/get-names.d.ts +0 -0
  176. /package/dist-node/scripts/{get-event/helpers → helpers}/get-names.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"copy-tsconfig.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAsB,YAAY,kBAGjC"}
1
+ {"version":3,"file":"copy-tsconfig.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,iBAGpD"}
@@ -4,13 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.copyTsConfig = void 0;
7
- const helpers_1 = require("./helpers");
7
+ const helpers_1 = require("../helpers");
8
+ const constants_1 = require("./constants");
8
9
  const tsconfig_event_track_1 = __importDefault(require("./templates/tsconfig.event-track"));
9
10
  /**
10
11
  * Copia el archivo tsconfig
12
+ * @param {string} outputPath Url del directorio de salida
11
13
  */
12
- async function copyTsConfig() {
13
- const content = tsconfig_event_track_1.default;
14
+ async function copyTsConfig(outputPath) {
15
+ const content = (0, tsconfig_event_track_1.default)(constants_1.TRACK_FILE_NAME, outputPath);
14
16
  (0, helpers_1.createRootFile)("./", content, "tsconfig.event-track.json");
15
17
  }
16
18
  exports.copyTsConfig = copyTsConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"copy-tsconfig.js","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":";;;;;;AACA,uCAAoD;AACpD,4FAAgE;AAEhE;;GAEG;AACI,KAAK,UAAU,YAAY;IAChC,MAAM,OAAO,GAAG,8BAAgB,CAAC;IACjC,IAAA,wBAAc,EAAC,IAAI,EAAE,OAAO,EAAE,2BAA2B,CAAC,CAAC;AAC7D,CAAC;AAHD,oCAGC"}
1
+ {"version":3,"file":"copy-tsconfig.js","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":";;;;;;AAAA,wCAA4C;AAC5C,2CAA8C;AAC9C,4FAAgE;AAEhE;;;GAGG;AACI,KAAK,UAAU,YAAY,CAAC,UAAkB;IACnD,MAAM,OAAO,GAAG,IAAA,8BAAgB,EAAC,2BAAe,EAAE,UAAU,CAAC,CAAC;IAC9D,IAAA,wBAAc,EAAC,IAAI,EAAE,OAAO,EAAE,2BAA2B,CAAC,CAAC;AAC7D,CAAC;AAHD,oCAGC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Traquear eventos
3
- * @param {string} outputPath Carpeta de salida
3
+ * @param {string} outputPath Ruta de la carpeta de salida
4
4
  * @param {string} contextName Nombre del contexto
5
- * @param {string} eventFolder Carpeta en donde se alojan los eventos
5
+ * @param {string} folderName Nombre de la carpeta de eventos
6
6
  */
7
- export declare function trackEvents(outputPath: string, contextName: string, eventFolder?: string): Promise<void>;
7
+ export declare function trackEvents(outputPath: string, contextName?: string, folderName?: string): Promise<void>;
8
8
  //# sourceMappingURL=generate-track-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-track-events.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/generate-track-events.ts"],"names":[],"mappings":"AA4BA;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,MAAqB,iBA4BnC"}
1
+ {"version":3,"file":"generate-track-events.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/generate-track-events.ts"],"names":[],"mappings":"AA4BA;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,WAAW,GAAE,MAAwB,EACrC,UAAU,GAAE,MAAoB,iBAkCjC"}
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.trackEvents = void 0;
7
- const helpers_1 = require("./helpers");
7
+ const helpers_1 = require("../helpers");
8
8
  const constants_1 = require("./constants");
9
9
  const track_template_1 = __importDefault(require("./templates/track.template"));
10
10
  const TEMPLATE = `
@@ -27,24 +27,32 @@ function addArtifacts(texto, artifacName, folder) {
27
27
  }
28
28
  /**
29
29
  * Traquear eventos
30
- * @param {string} outputPath Carpeta de salida
30
+ * @param {string} outputPath Ruta de la carpeta de salida
31
31
  * @param {string} contextName Nombre del contexto
32
- * @param {string} eventFolder Carpeta en donde se alojan los eventos
32
+ * @param {string} folderName Nombre de la carpeta de eventos
33
33
  */
34
- async function trackEvents(outputPath, contextName, eventFolder = constants_1.DEFAULT_PATH) {
34
+ async function trackEvents(outputPath, contextName = constants_1.DEFAULT_CONTEXT, folderName = constants_1.FOLDER_NAME) {
35
+ // Ruta de la carpeta de eventos
36
+ const eventFolder = `${outputPath}/${folderName}`;
37
+ // Asegura que exista el directorio de eventos
38
+ (0, helpers_1.ensureDirs)(eventFolder);
39
+ // Lista de eventos
35
40
  const artifacts = (0, helpers_1.getEventDomain)(eventFolder);
41
+ // Contenido de la plantilla
36
42
  let templateContent = track_template_1.default;
43
+ // Reemplazamos el nombre del contexto en la plantilla
37
44
  templateContent = templateContent.replace("<%= context-name %>", contextName.trim());
45
+ // Reemplazamos los eventos en la plantilla
38
46
  for (const artifac of artifacts) {
39
47
  const artifacNames = (0, helpers_1.getNames)(artifac.name);
40
- templateContent = (0, helpers_1.addImports)(templateContent, [`${artifacNames.className}`], `./${constants_1.DEFAULT_FOLDER}/${artifac.name}`);
48
+ templateContent = (0, helpers_1.addImports)(templateContent, [`${artifacNames.className}`], `./${folderName}/${artifac.name}`);
41
49
  let artifactTemplate = TEMPLATE.replace(/<Artifac>/g, `${artifacNames.className}`);
42
- templateContent = addArtifacts(templateContent, artifac.name, constants_1.DEFAULT_FOLDER);
50
+ templateContent = addArtifacts(templateContent, artifac.name, folderName);
43
51
  templateContent = templateContent.replace("// flag", artifactTemplate);
44
52
  }
45
53
  // console.log("\ntemplateContent", templateContent);
46
54
  /** Crear archivo en la raiz */
47
- (0, helpers_1.createRootFile)(outputPath, templateContent, 'track-events-script.ts');
55
+ (0, helpers_1.createRootFile)(outputPath, templateContent, constants_1.TRACK_FILE_NAME);
48
56
  }
49
57
  exports.trackEvents = trackEvents;
50
58
  //# sourceMappingURL=generate-track-events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-track-events.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate-track-events.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0F;AAC1F,2CAA2D;AAC3D,gFAAkD;AAElD,MAAM,QAAQ,GAAG;;;;;;UAMP,CAAC;AAEX;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,KAAa,EACb,WAAmB,EACnB,MAAc;IAEd,MAAM,IAAI,GAAG,IAAI,WAAW,QAAQ,MAAM,IAAI,WAAW,IAAI,CAAC;IAC9D,OAAO,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,GAAG,IAAI,wBAAwB,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,UAAkB,EAClB,WAAmB,EACnB,cAAsB,wBAAY;IAElC,MAAM,SAAS,GAAG,IAAA,wBAAc,EAAC,WAAW,CAAC,CAAC;IAC9C,IAAI,eAA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3
+ * Metodo para generar el script para obtener el esquema de los eventos
4
+ * Genera el script track-events-script.ts y genera el siguiente archivo de configuracion tsconfig.event-track.json
5
+ * Agrega al gitignore los archivos y carpetas que no debe rastrear
4
6
  */
5
7
  export declare function main(): Promise<void>;
6
8
  //# sourceMappingURL=generate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";AAMA;;GAEG;AACH,wBAAsB,IAAI,kBASzB"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";AAMA;;;;GAIG;AACH,wBAAsB,IAAI,kBAWzB"}
@@ -2,21 +2,26 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.main = void 0;
5
- const constants_1 = require("./constants");
6
- const copy_tsconfig_1 = require("./copy-tsconfig");
5
+ const get_argv_1 = require("./get-argv");
7
6
  const generate_track_events_1 = require("./generate-track-events");
8
- const helpers_1 = require("./helpers");
7
+ const copy_tsconfig_1 = require("./copy-tsconfig");
8
+ const helpers_1 = require("../helpers");
9
9
  /**
10
- * Metodo para listar y crear un json con
10
+ * Metodo para generar el script para obtener el esquema de los eventos
11
+ * Genera el script track-events-script.ts y genera el siguiente archivo de configuracion tsconfig.event-track.json
12
+ * Agrega al gitignore los archivos y carpetas que no debe rastrear
11
13
  */
12
14
  async function main() {
13
- let [, , outputPath, contextName, eventFolder] = process.argv;
14
- outputPath = outputPath ? outputPath : constants_1.ROOT_PATH;
15
- contextName = contextName ? contextName : constants_1.DEFAULT_CONTEXT;
16
- eventFolder = eventFolder ? eventFolder : constants_1.DEFAULT_PATH;
17
- await (0, generate_track_events_1.trackEvents)(outputPath, contextName, eventFolder);
18
- await (0, copy_tsconfig_1.copyTsConfig)();
19
- (0, helpers_1.updateGitignore)();
15
+ // Constant list of folders and files to add to .gitignore
16
+ const pathsToIgnore = [
17
+ "**/event-schemes",
18
+ "**/schemes",
19
+ "track-events-script.ts",
20
+ ];
21
+ const { outputPath, contextName, folderName } = (0, get_argv_1.getArgv)();
22
+ await (0, generate_track_events_1.trackEvents)(outputPath, contextName, folderName);
23
+ await (0, copy_tsconfig_1.copyTsConfig)(outputPath);
24
+ (0, helpers_1.updateGitignore)(pathsToIgnore);
20
25
  }
21
26
  exports.main = main;
22
27
  main();
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";;;;AACA,2CAAuE;AACvE,mDAA+C;AAC/C,mEAAsD;AACtD,uCAA4C;AAE5C;;GAEG;AACI,KAAK,UAAU,IAAI;IACxB,IAAI,CAAC,EAAE,AAAD,EAAG,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAE9D,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,qBAAS,CAAC;IACjD,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,2BAAe,CAAC;IAC1D,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,wBAAY,CAAC;IACvD,MAAM,IAAA,mCAAW,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IACxD,MAAM,IAAA,4BAAY,GAAE,CAAC;IACrB,IAAA,yBAAe,GAAE,CAAC;AACpB,CAAC;AATD,oBASC;AACD,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";;;;AACA,yCAAqC;AACrC,mEAAsD;AACtD,mDAA+C;AAC/C,wCAA6C;AAE7C;;;;GAIG;AACI,KAAK,UAAU,IAAI;IACxB,0DAA0D;IAC1D,MAAM,aAAa,GAAG;QACpB,kBAAkB;QAClB,YAAY;QACZ,wBAAwB;KACzB,CAAC;IACF,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAA,kBAAO,GAAE,CAAC;IAC1D,MAAM,IAAA,mCAAW,EAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IACvD,MAAM,IAAA,4BAAY,EAAC,UAAU,CAAC,CAAC;IAC/B,IAAA,yBAAe,EAAC,aAAa,CAAC,CAAC;AACjC,CAAC;AAXD,oBAWC;AACD,IAAI,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface EventsPath {
2
+ outputPath: string;
3
+ contextName: string;
4
+ folderName: string;
5
+ }
6
+ /**
7
+ * Retorna las rutas necesarias para el script
8
+ * @returns
9
+ */
10
+ export declare function getArgv(): EventsPath;
11
+ export {};
12
+ //# sourceMappingURL=get-argv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-argv.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/get-argv.ts"],"names":[],"mappings":"AAEA,UAAU,UAAU;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,OAAO,IAAI,UAAU,CAapC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getArgv = void 0;
4
+ const constants_1 = require("./constants");
5
+ /**
6
+ * Retorna las rutas necesarias para el script
7
+ * @returns
8
+ */
9
+ function getArgv() {
10
+ let [, , outputPath, contextName, folderName] = process.argv;
11
+ // Ruta de salida: por defecto vale ./src
12
+ outputPath = outputPath ? outputPath : constants_1.OUTPUT_PATH;
13
+ // Nombre del contexto
14
+ contextName = contextName ? contextName : constants_1.DEFAULT_CONTEXT;
15
+ // Nombre de la carpeta en donde estan los eventos
16
+ folderName = folderName ? folderName : constants_1.FOLDER_NAME;
17
+ return {
18
+ outputPath,
19
+ contextName,
20
+ folderName,
21
+ };
22
+ }
23
+ exports.getArgv = getArgv;
24
+ //# sourceMappingURL=get-argv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-argv.js","sourceRoot":"","sources":["../../../src/scripts/get-event/get-argv.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAWxE;;;GAGG;AACH,SAAgB,OAAO;IACrB,IAAI,CAAC,EAAE,AAAD,EAAG,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAC7D,yCAAyC;IACzC,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAW,CAAC;IACnD,sBAAsB;IACtB,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,2BAAe,CAAC;IAC1D,kDAAkD;IAClD,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAW,CAAC;IACnD,OAAO;QACL,UAAU;QACV,WAAW;QACX,UAAU;KACX,CAAC;AACJ,CAAC;AAbD,0BAaC"}
@@ -1,3 +1,9 @@
1
- declare const tsconfigString: string;
1
+ /**
2
+ * Retorna el tsconfig
3
+ * @param {string} route Ruta de la raiz
4
+ * @param {string} fileName Nombre del archvio
5
+ * @returns {string} JSON del tsconfig
6
+ */
7
+ declare const tsconfigString: (fileName: string, route?: string) => string;
2
8
  export default tsconfigString;
3
9
  //# sourceMappingURL=tsconfig.event-track.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsconfig.event-track.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/templates/tsconfig.event-track.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,EAAE,MAqCpB,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"tsconfig.event-track.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/templates/tsconfig.event-track.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,QAAA,MAAM,cAAc,aAAc,MAAM,UAAS,MAAM,KAAY,MAqCjE,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,11 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tsconfigString = `{
3
+ /**
4
+ * Elimina de la ruta los elementos del inicio ./
5
+ * @param {string} route
6
+ * @returns {string}
7
+ */
8
+ const getRoute = (route) => route.startsWith("./") ? route.substring(2) : route;
9
+ /**
10
+ * Retorna el tsconfig
11
+ * @param {string} route Ruta de la raiz
12
+ * @param {string} fileName Nombre del archvio
13
+ * @returns {string} JSON del tsconfig
14
+ */
15
+ const tsconfigString = (fileName, route = 'src') => `{
4
16
  "compilerOptions": {
5
17
  "module": "CommonJS",
6
18
  "target": "ES2020",
7
19
  "outDir": "event-schemes",
8
- "rootDir": "src",
20
+ "rootDir": "${getRoute(route)}",
9
21
  "declaration": true,
10
22
  "sourceMap": true,
11
23
  "strict": true,
@@ -14,20 +26,20 @@ const tsconfigString = `{
14
26
  "skipLibCheck": true,
15
27
  "noEmitOnError": true
16
28
  },
17
- "include": ["src/**/*"],
29
+ "include": ["${getRoute(route)}/**/*"],
18
30
  "exclude": ["node_modules", "dist"],
19
31
  "esbuild": {
20
32
  "platform": "node",
21
33
  "bundle": false,
22
34
  "format": "cjs",
23
- "entryPoints": ["src/track-events-script.ts"],
35
+ "entryPoints": ["${getRoute(route)}/${fileName}"],
24
36
  "outdir": "event-schemes",
25
37
  "sourcemap": true,
26
38
  "outExtension": {
27
39
  ".js": ".js"
28
40
  },
29
41
  "generatePackageJson": true,
30
- "assets": ["src/assets"]
42
+ "assets": ["${getRoute(route)}/assets"]
31
43
  },
32
44
  "configurations": {
33
45
  "development": {
@@ -1 +1 @@
1
- {"version":3,"file":"tsconfig.event-track.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/templates/tsconfig.event-track.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC7B,CAAC;AAEH,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"tsconfig.event-track.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/templates/tsconfig.event-track.ts"],"names":[],"mappings":";;AAAA;;;;GAIG;AACH,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAExF;;;;;GAKG;AACH,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,QAAgB,KAAK,EAAW,EAAE,CAAC;;;;;kBAK3D,QAAQ,CAAC,KAAK,CAAC;;;;;;;;;iBAShB,QAAQ,CAAC,KAAK,CAAC;;;;;;uBAMT,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ;;;;;;;kBAOhC,QAAQ,CAAC,KAAK,CAAC;;;;;;;;;;EAU/B,CAAC;AAEH,kBAAe,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-import.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/add-import.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAiCnF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-import.js","sourceRoot":"","sources":["../../../src/scripts/helpers/add-import.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAClC,MAAM,8BAA8B,GAAG,CAAC,IAAY,EAAE,eAAuB,EAAE,EAAE,CAC/E,sDAAsD,IAAI,mEAAmE,eAAe,UAAU,CAAC;AACzJ,MAAM,+BAA+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,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAanF"}
@@ -35,7 +35,7 @@ const path = __importStar(require("path"));
35
35
  function createRootFile(outputPath, content, fileName) {
36
36
  // Usar process.cwd() para obtener la raíz del proyecto
37
37
  const srcFolderPath = process.cwd();
38
- // Crear la carpeta dentro de src si no existe
38
+ // Crear la carpeta si no existe
39
39
  const schemasFolderPath = path.join(srcFolderPath, outputPath);
40
40
  if (!fs.existsSync(schemasFolderPath)) {
41
41
  fs.mkdirSync(schemasFolderPath);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-root-file.js","sourceRoot":"","sources":["../../../src/scripts/helpers/create-root-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,UAAkB,EAAE,OAAe,EAAE,QAAgB;IAClF,uDAAuD;IACvD,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAEpC,gCAAgC;IAChC,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC/D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,qBAAqB,iBAAiB,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IACxD,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;AAChD,CAAC;AAbD,wCAaC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Comprueba y crea directorios a lo largo de una ruta determinada si no existen.
3
+ *
4
+ * @param {string} dirPath La ruta del directorio a comprobar y crear.
5
+ */
6
+ export declare function ensureDirs(dirPath: string): void;
7
+ //# sourceMappingURL=ensure-dirs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-dirs.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/ensure-dirs.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAmBhD"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ensureDirs = void 0;
27
+ const fs = __importStar(require("fs"));
28
+ const path = __importStar(require("path"));
29
+ /**
30
+ * Comprueba y crea directorios a lo largo de una ruta determinada si no existen.
31
+ *
32
+ * @param {string} dirPath La ruta del directorio a comprobar y crear.
33
+ */
34
+ function ensureDirs(dirPath) {
35
+ const dirs = dirPath.split(path.sep); // Split path into directory segments
36
+ let currentPath = '';
37
+ for (const dir of dirs) {
38
+ currentPath = path.join(currentPath, dir);
39
+ if (!fs.existsSync(currentPath)) {
40
+ try {
41
+ fs.mkdirSync(currentPath);
42
+ console.log(`Created dir: ${currentPath}`);
43
+ }
44
+ catch (err) {
45
+ console.error(`Error creating dir ${currentPath}:`, err);
46
+ return; // Stop if there's an error
47
+ }
48
+ }
49
+ else {
50
+ console.log(`Dir exists: ${currentPath}`);
51
+ }
52
+ }
53
+ }
54
+ exports.ensureDirs = ensureDirs;
55
+ //# sourceMappingURL=ensure-dirs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-dirs.js","sourceRoot":"","sources":["../../../src/scripts/helpers/ensure-dirs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B;;;;GAIG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,qCAAqC;IAC3E,IAAI,WAAW,GAAG,EAAE,CAAC;IAErB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAE1C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC;gBACH,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;gBAC1B,OAAO,CAAC,GAAG,CAAC,gBAAgB,WAAW,EAAE,CAAC,CAAC;YAC7C,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,sBAAsB,WAAW,GAAG,EAAE,GAAG,CAAC,CAAC;gBACzD,OAAO,CAAC,2BAA2B;YACrC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;AACH,CAAC;AAnBD,gCAmBC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exists-file.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/exists-file.ts"],"names":[],"mappings":";AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,IAAI,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAEpD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exists-file.js","sourceRoot":"","sources":["../../../src/scripts/helpers/exists-file.ts"],"names":[],"mappings":";;;AAAA,2BAA0C;AAE1C;;;;GAIG;AACH,SAAgB,UAAU,CAAC,MAAgB;IACzC,OAAO,IAAA,eAAU,EAAC,MAAM,CAAC,CAAC;AAC5B,CAAC;AAFD,gCAEC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-directories.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/get-directories.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAe,MAAM,IAAI,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,CAIzD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-directories.js","sourceRoot":"","sources":["../../../src/scripts/helpers/get-directories.ts"],"names":[],"mappings":";;;AAAA,2BAA2C;AAE3C;;;;GAIG;AACH,SAAgB,cAAc,CAAC,MAAgB;IAC7C,OAAO,IAAA,gBAAW,EAAC,MAAM,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;SAChD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;SACxC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAJD,wCAIC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-domain.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/get-event-domain.ts"],"names":[],"mappings":"AAKA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAKD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CA4B/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-domain.js","sourceRoot":"","sources":["../../../src/scripts/helpers/get-event-domain.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,uDAAmD;AACnD,2CAAuC;AASvC,4BAA4B;AAC5B,MAAM,kBAAkB,GAAa,EAAE,CAAC;AAExC;;;;GAIG;AACH,SAAgB,cAAc,CAAC,MAAc;IAC3C,IAAI,WAAW,GAAG,IAAA,gCAAc,EAAC,GAAG,MAAM,EAAE,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAqB,EAAE,CAAC;IAEhD,IAAI,WAAW,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,WAAW,GAAG,WAAW,CAAC,MAAM,CAC9B,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC,CACvD,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;YAC9B,MAAM,OAAO,GAAG,IAAA,wBAAU,EAAC,GAAG,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC;YACxD,MAAM,aAAa,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,CAAC;YAEpC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,kBAAkB;gBAClB,SAAS;YACX,CAAC;YAED,kBAAkB,CAAC,IAAI,CAAC;gBACtB,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,aAAa,CAAC,SAAS;gBAC7B,QAAQ,EAAE,OAAO;aAClB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AA5BD,wCA4BC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-file.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/get-file.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBrD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-file.js","sourceRoot":"","sources":["../../../src/scripts/helpers/get-file.ts"],"names":[],"mappings":";;;AAAA,2BAAiD;AAEjD,SAAgB,OAAO,CAAC,IAAY;IAClC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAA,WAAM,EAAC,IAAI,EAAE,cAAS,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YACnC,IAAI,GAAG,EAAE,CAAC;gBACR,OAAO,CAAC,IAAI,CAAC,+BAA+B,IAAI,EAAE,CAAC,CAAC;gBACpD,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;gBAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;YACrB,CAAC;YACD,IAAA,aAAQ,EAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBACnC,IAAI,GAAG,EAAE,CAAC;oBACR,OAAO,CAAC,IAAI,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;oBAClD,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;oBAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;gBACrB,CAAC;gBACD,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAlBD,0BAkBC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-names.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/get-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAQA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-names.js","sourceRoot":"","sources":["../../../src/scripts/helpers/get-names.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,SAAgB,QAAQ,CAAC,IAAY;IAOnC,OAAO;QACL,IAAI;QACJ,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC;QAC5B,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC;QAClC,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC;QAClC,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC;AAdD,4BAcC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,GAAW;IAC9B,OAAO,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,CAAS;IAC/B,OAAO,CAAC;SACL,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC7E,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,CAAS;IAC/B,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,OAAO,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;SAC3C,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC;SAC/B,WAAW,EAAE,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,CAAC;SACL,OAAO,CAAC,mBAAmB,EAAE,OAAO,CAAC;SACrC,WAAW,EAAE;SACb,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,CAAS;IAC9B,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './add-import';
2
2
  export * from './create-root-file';
3
+ export * from './ensure-dirs';
3
4
  export * from './exists-file';
4
5
  export * from './get-directories';
5
6
  export * from './get-event-domain';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./add-import"), exports);
18
18
  __exportStar(require("./create-root-file"), exports);
19
+ __exportStar(require("./ensure-dirs"), exports);
19
20
  __exportStar(require("./exists-file"), exports);
20
21
  __exportStar(require("./get-directories"), exports);
21
22
  __exportStar(require("./get-event-domain"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scripts/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,6CAA2B;AAC3B,8CAA4B;AAC5B,qDAAmC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Function to update .gitignore
3
+ * @param {string[]} pathsToIgnore Lista de directorios o archivos a ignorar
4
+ * @returns {void} Modifica el gitignore
5
+ */
6
+ export declare function updateGitignore(pathsToIgnore: string[]): void;
7
+ //# sourceMappingURL=update-gitignore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-gitignore.d.ts","sourceRoot":"","sources":["../../../src/scripts/helpers/update-gitignore.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,CAiC7D"}
@@ -26,16 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.updateGitignore = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const path = __importStar(require("path"));
29
- // Constant list of folders and files to add to .gitignore
30
- const pathsToIgnore = [
31
- "**/event-schemes",
32
- "**/schemes",
33
- "track-events-script.ts"
34
- ];
35
- // Function to update .gitignore
36
- function updateGitignore() {
29
+ /**
30
+ * Function to update .gitignore
31
+ * @param {string[]} pathsToIgnore Lista de directorios o archivos a ignorar
32
+ * @returns {void} Modifica el gitignore
33
+ */
34
+ function updateGitignore(pathsToIgnore) {
37
35
  const gitignorePath = path.join(process.cwd(), ".gitignore");
38
- console.log(`Updating .gitignore in ${process.cwd()}...`);
36
+ console.log(`\nUpdating .gitignore in ${process.cwd()}...`);
39
37
  // Check if .gitignore exists
40
38
  if (!fs.existsSync(gitignorePath)) {
41
39
  console.error(".gitignore not found in the current project directory.");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-gitignore.js","sourceRoot":"","sources":["../../../src/scripts/helpers/update-gitignore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B;;;;GAIG;AACH,SAAgB,eAAe,CAAC,aAAuB;IACrD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;IAE7D,OAAO,CAAC,GAAG,CAAC,4BAA4B,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAE5D,6BAA6B;IAC7B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;QACxE,OAAO;IACT,CAAC;IAED,mCAAmC;IACnC,IAAI,gBAAgB,GAAG,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,IAAI,GAAG,CAC5B,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CACxD,CAAC;IAEF,yCAAyC;IACzC,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,gBAAgB,IAAI,KAAK,IAAI,EAAE,CAAC;YAChC,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,gDAAgD;IAChD,IAAI,QAAQ,EAAE,CAAC;QACb,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAC5D,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;AACH,CAAC;AAjCD,0CAiCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imolko/ultra-ddd",
3
- "version": "1.0.17-beta",
3
+ "version": "1.0.18-beta",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "results",
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-import.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/add-import.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAiCnF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-import.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/add-import.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAClC,MAAM,8BAA8B,GAAG,CAAC,IAAY,EAAE,eAAuB,EAAE,EAAE,CAC/E,sDAAsD,IAAI,mEAAmE,eAAe,UAAU,CAAC;AACzJ,MAAM,+BAA+B,GAAG,CAAC,eAAuB,EAAE,EAAE,CAClE,+FAA+F,eAAe,UAAU,CAAC;AAE3H;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,OAAe,EAAE,KAAe,EAAE,MAAc;IACzE,MAAM,eAAe,GAAG,MAAM;SAC3B,OAAO,CAAC,iBAAiB,EAAE,KAAK,CAAC;SACjC,OAAO,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;IAEvC,IAAI,UAAU,GAAG,OAAO,CAAC;IAEzB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,oBAAoB,GAAG,IAAI,MAAM,CACrC,8BAA8B,CAAC,IAAI,EAAE,eAAe,CAAC,CACtD,CAAC;QAEF,IAAI,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1C,wBAAwB;YACxB,SAAS;QACX,CAAC;QAED,MAAM,qBAAqB,GAAG,IAAI,MAAM,CACtC,+BAA+B,CAAC,eAAe,CAAC,CACjD,CAAC;QACF,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAEtD,IAAI,KAAK,EAAE,CAAC;YACV,UAAU,GAAG,UAAU,CAAC,OAAO,CAC7B,KAAK,CAAC,CAAC,CAAC,EACR,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAC9C,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,YAAY,IAAI,YAAY,MAAM,OAAO,UAAU,EAAE,CAAC;QACrE,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-root-file.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/create-root-file.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAanF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-root-file.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/create-root-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,UAAkB,EAAE,OAAe,EAAE,QAAgB;IAClF,uDAAuD;IACvD,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAEpC,8CAA8C;IAC9C,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC/D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,qBAAqB,iBAAiB,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IACxD,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;AAChD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exists-file.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/exists-file.ts"],"names":[],"mappings":";AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,IAAI,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAEpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exists-file.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/exists-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,IAAI,CAAC;AAE1C;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,MAAgB;IACzC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-directories.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-directories.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAe,MAAM,IAAI,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,CAIzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-directories.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-directories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,IAAI,CAAC;AAE3C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,MAAgB;IAC7C,OAAO,WAAW,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;SAChD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;SACxC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-event-domain.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-event-domain.ts"],"names":[],"mappings":"AAKA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAKD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CA4B/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-event-domain.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-event-domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,4BAA4B;AAC5B,MAAM,kBAAkB,GAAa,EAAE,CAAC;AAExC;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,IAAI,WAAW,GAAG,cAAc,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC;IAE9C,MAAM,kBAAkB,GAAqB,EAAE,CAAC;IAEhD,IAAI,WAAW,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,WAAW,GAAG,WAAW,CAAC,MAAM,CAC9B,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC,CACvD,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;YAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC;YACxD,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;YAEpC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,kBAAkB;gBAClB,SAAS;YACX,CAAC;YAED,kBAAkB,CAAC,IAAI,CAAC;gBACtB,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,aAAa,CAAC,SAAS;gBAC7B,QAAQ,EAAE,OAAO;aAClB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-file.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-file.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-file.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAEjD,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YACnC,IAAI,GAAG,EAAE,CAAC;gBACR,OAAO,CAAC,IAAI,CAAC,+BAA+B,IAAI,EAAE,CAAC,CAAC;gBACpD,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;gBAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;YACrB,CAAC;YACD,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBACnC,IAAI,GAAG,EAAE,CAAC;oBACR,OAAO,CAAC,IAAI,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;oBAClD,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;oBAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;gBACrB,CAAC;gBACD,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-names.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAQA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-names.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/get-names.ts"],"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,eAAe,EAAE,GAAG,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,CAAS;IAC9B,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function updateGitignore(): void;
2
- //# sourceMappingURL=update-gitignore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-gitignore.d.ts","sourceRoot":"","sources":["../../../../src/scripts/get-event/helpers/update-gitignore.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,SAiC9B"}