@imolko/ultra-ddd 1.0.17 → 1.0.18
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/README.md +9 -1
- package/dist-browser/scripts/get-event/constants.d.ts +3 -6
- package/dist-browser/scripts/get-event/constants.d.ts.map +1 -1
- package/dist-browser/scripts/get-event/constants.js +7 -6
- package/dist-browser/scripts/get-event/constants.js.map +1 -1
- package/dist-browser/scripts/get-event/copy-tsconfig.d.ts +2 -1
- package/dist-browser/scripts/get-event/copy-tsconfig.d.ts.map +1 -1
- package/dist-browser/scripts/get-event/copy-tsconfig.js +5 -3
- package/dist-browser/scripts/get-event/copy-tsconfig.js.map +1 -1
- package/dist-browser/scripts/get-event/generate-track-events.d.ts +3 -3
- package/dist-browser/scripts/get-event/generate-track-events.d.ts.map +1 -1
- package/dist-browser/scripts/get-event/generate-track-events.js +16 -8
- package/dist-browser/scripts/get-event/generate-track-events.js.map +1 -1
- package/dist-browser/scripts/get-event/generate.d.ts +3 -1
- package/dist-browser/scripts/get-event/generate.d.ts.map +1 -1
- package/dist-browser/scripts/get-event/generate.js +17 -12
- package/dist-browser/scripts/get-event/generate.js.map +1 -1
- package/dist-browser/scripts/get-event/get-argv.d.ts +12 -0
- package/dist-browser/scripts/get-event/get-argv.d.ts.map +1 -0
- package/dist-browser/scripts/get-event/get-argv.js +20 -0
- package/dist-browser/scripts/get-event/get-argv.js.map +1 -0
- package/dist-browser/scripts/get-event/templates/tsconfig.event-track.d.ts +7 -1
- package/dist-browser/scripts/get-event/templates/tsconfig.event-track.d.ts.map +1 -1
- package/dist-browser/scripts/get-event/templates/tsconfig.event-track.js +17 -5
- package/dist-browser/scripts/get-event/templates/tsconfig.event-track.js.map +1 -1
- package/dist-browser/scripts/helpers/add-import.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/add-import.js.map +1 -0
- package/dist-browser/scripts/helpers/create-root-file.d.ts.map +1 -0
- package/dist-browser/scripts/{get-event/helpers → helpers}/create-root-file.js +1 -1
- package/dist-browser/scripts/helpers/create-root-file.js.map +1 -0
- package/dist-browser/scripts/helpers/ensure-dirs.d.ts +7 -0
- package/dist-browser/scripts/helpers/ensure-dirs.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/ensure-dirs.js +28 -0
- package/dist-browser/scripts/helpers/ensure-dirs.js.map +1 -0
- package/dist-browser/scripts/helpers/exists-file.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/exists-file.js.map +1 -0
- package/dist-browser/scripts/helpers/get-directories.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/get-directories.js.map +1 -0
- package/dist-browser/scripts/helpers/get-event-domain.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/get-event-domain.js.map +1 -0
- package/dist-browser/scripts/helpers/get-file.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/get-file.js.map +1 -0
- package/dist-browser/scripts/helpers/get-names.d.ts.map +1 -0
- package/dist-browser/scripts/helpers/get-names.js.map +1 -0
- package/dist-browser/scripts/{get-event/helpers → helpers}/index.d.ts +1 -0
- package/dist-browser/scripts/helpers/index.d.ts.map +1 -0
- package/dist-browser/scripts/{get-event/helpers → helpers}/index.js +1 -0
- package/dist-browser/scripts/helpers/index.js.map +1 -0
- package/dist-browser/scripts/helpers/update-gitignore.d.ts +7 -0
- package/dist-browser/scripts/helpers/update-gitignore.d.ts.map +1 -0
- package/dist-browser/scripts/{get-event/helpers → helpers}/update-gitignore.js +7 -9
- package/dist-browser/scripts/helpers/update-gitignore.js.map +1 -0
- package/dist-node/scripts/get-event/constants.d.ts +3 -6
- package/dist-node/scripts/get-event/constants.d.ts.map +1 -1
- package/dist-node/scripts/get-event/constants.js +8 -7
- package/dist-node/scripts/get-event/constants.js.map +1 -1
- package/dist-node/scripts/get-event/copy-tsconfig.d.ts +2 -1
- package/dist-node/scripts/get-event/copy-tsconfig.d.ts.map +1 -1
- package/dist-node/scripts/get-event/copy-tsconfig.js +5 -3
- package/dist-node/scripts/get-event/copy-tsconfig.js.map +1 -1
- package/dist-node/scripts/get-event/generate-track-events.d.ts +3 -3
- package/dist-node/scripts/get-event/generate-track-events.d.ts.map +1 -1
- package/dist-node/scripts/get-event/generate-track-events.js +15 -7
- package/dist-node/scripts/get-event/generate-track-events.js.map +1 -1
- package/dist-node/scripts/get-event/generate.d.ts +3 -1
- package/dist-node/scripts/get-event/generate.d.ts.map +1 -1
- package/dist-node/scripts/get-event/generate.js +16 -11
- package/dist-node/scripts/get-event/generate.js.map +1 -1
- package/dist-node/scripts/get-event/get-argv.d.ts +12 -0
- package/dist-node/scripts/get-event/get-argv.d.ts.map +1 -0
- package/dist-node/scripts/get-event/get-argv.js +24 -0
- package/dist-node/scripts/get-event/get-argv.js.map +1 -0
- package/dist-node/scripts/get-event/templates/tsconfig.event-track.d.ts +7 -1
- package/dist-node/scripts/get-event/templates/tsconfig.event-track.d.ts.map +1 -1
- package/dist-node/scripts/get-event/templates/tsconfig.event-track.js +17 -5
- package/dist-node/scripts/get-event/templates/tsconfig.event-track.js.map +1 -1
- package/dist-node/scripts/helpers/add-import.d.ts.map +1 -0
- package/dist-node/scripts/helpers/add-import.js.map +1 -0
- package/dist-node/scripts/helpers/create-root-file.d.ts.map +1 -0
- package/dist-node/scripts/{get-event/helpers → helpers}/create-root-file.js +1 -1
- package/dist-node/scripts/helpers/create-root-file.js.map +1 -0
- package/dist-node/scripts/helpers/ensure-dirs.d.ts +7 -0
- package/dist-node/scripts/helpers/ensure-dirs.d.ts.map +1 -0
- package/dist-node/scripts/helpers/ensure-dirs.js +55 -0
- package/dist-node/scripts/helpers/ensure-dirs.js.map +1 -0
- package/dist-node/scripts/helpers/exists-file.d.ts.map +1 -0
- package/dist-node/scripts/helpers/exists-file.js.map +1 -0
- package/dist-node/scripts/helpers/get-directories.d.ts.map +1 -0
- package/dist-node/scripts/helpers/get-directories.js.map +1 -0
- package/dist-node/scripts/helpers/get-event-domain.d.ts.map +1 -0
- package/dist-node/scripts/helpers/get-event-domain.js.map +1 -0
- package/dist-node/scripts/helpers/get-file.d.ts.map +1 -0
- package/dist-node/scripts/helpers/get-file.js.map +1 -0
- package/dist-node/scripts/helpers/get-names.d.ts.map +1 -0
- package/dist-node/scripts/helpers/get-names.js.map +1 -0
- package/dist-node/scripts/{get-event/helpers → helpers}/index.d.ts +1 -0
- package/dist-node/scripts/helpers/index.d.ts.map +1 -0
- package/dist-node/scripts/{get-event/helpers → helpers}/index.js +1 -0
- package/dist-node/scripts/helpers/index.js.map +1 -0
- package/dist-node/scripts/helpers/update-gitignore.d.ts +7 -0
- package/dist-node/scripts/helpers/update-gitignore.d.ts.map +1 -0
- package/dist-node/scripts/{get-event/helpers → helpers}/update-gitignore.js +7 -9
- package/dist-node/scripts/helpers/update-gitignore.js.map +1 -0
- package/package.json +1 -1
- package/dist-browser/scripts/get-event/helpers/add-import.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/add-import.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/create-root-file.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/create-root-file.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/exists-file.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/exists-file.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-directories.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-directories.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-event-domain.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-event-domain.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-file.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-file.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-names.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/get-names.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/index.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/index.js.map +0 -1
- package/dist-browser/scripts/get-event/helpers/update-gitignore.d.ts +0 -2
- package/dist-browser/scripts/get-event/helpers/update-gitignore.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/helpers/update-gitignore.js.map +0 -1
- package/dist-browser/scripts/get-event/index.d.ts +0 -4
- package/dist-browser/scripts/get-event/index.d.ts.map +0 -1
- package/dist-browser/scripts/get-event/index.js +0 -4
- package/dist-browser/scripts/get-event/index.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/add-import.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/add-import.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/create-root-file.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/create-root-file.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/exists-file.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/exists-file.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-directories.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-directories.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-event-domain.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-event-domain.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-file.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-file.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-names.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/get-names.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/index.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/index.js.map +0 -1
- package/dist-node/scripts/get-event/helpers/update-gitignore.d.ts +0 -2
- package/dist-node/scripts/get-event/helpers/update-gitignore.d.ts.map +0 -1
- package/dist-node/scripts/get-event/helpers/update-gitignore.js.map +0 -1
- package/dist-node/scripts/get-event/index.d.ts +0 -4
- package/dist-node/scripts/get-event/index.d.ts.map +0 -1
- package/dist-node/scripts/get-event/index.js +0 -20
- package/dist-node/scripts/get-event/index.js.map +0 -1
- /package/dist-browser/scripts/{get-event/helpers → helpers}/add-import.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/add-import.js +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/create-root-file.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/exists-file.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/exists-file.js +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-directories.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-directories.js +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-event-domain.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-event-domain.js +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-file.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-file.js +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-names.d.ts +0 -0
- /package/dist-browser/scripts/{get-event/helpers → helpers}/get-names.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/add-import.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/add-import.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/create-root-file.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/exists-file.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/exists-file.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-directories.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-directories.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-event-domain.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-event-domain.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-file.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-file.js +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-names.d.ts +0 -0
- /package/dist-node/scripts/{get-event/helpers → helpers}/get-names.js +0 -0
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ npx generate-event-track
|
|
|
40
40
|
|
|
41
41
|
"generate-schemas": "node event-schemes/track-events-script.js",
|
|
42
42
|
|
|
43
|
-
"build-schemas": "npm run prepare-schemas && npm run generate-schemas"
|
|
43
|
+
"build-schemas": "npx generate-event-track && npm run prepare-schemas && npm run generate-schemas"
|
|
44
44
|
```
|
|
45
45
|
4. Crear un evento
|
|
46
46
|
5. Crear schemas de los eventos
|
|
@@ -48,6 +48,14 @@ npx generate-event-track
|
|
|
48
48
|
npm run build-schemas
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
Para el comando `npx generate-event-track`, estan disponibles las siguientes variables
|
|
52
|
+
|
|
53
|
+
| **Variable** | **Definición** | **Valor por defecto** |
|
|
54
|
+
|--------------|-----------------------------------------------------|-----------------------|
|
|
55
|
+
| outputPath | Ruta de salida | /src |
|
|
56
|
+
| contextName | Nombre del contexto | default |
|
|
57
|
+
| folderName | Nombre de la carpeta en donde se alojan los eventos | events |
|
|
58
|
+
|
|
51
59
|
## Relación entre Arquitectura Clean y DDD:
|
|
52
60
|
|
|
53
61
|
La `arquitectura clean` proporciona la estructura y los principios para organizar el código, mientras que `DDD` proporciona las técnicas para modelar el dominio del negocio.
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ruta de la raiz
|
|
3
|
-
*/
|
|
4
1
|
export declare const DEFAULT_CONTEXT = "default";
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
2
|
+
export declare const OUTPUT_PATH = "./src";
|
|
3
|
+
export declare const FOLDER_NAME = "events";
|
|
4
|
+
export declare const TRACK_FILE_NAME = "track-events-script.ts";
|
|
8
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,YAAY,CAAC;AAEzC,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Ruta de la raiz
|
|
3
|
-
*/
|
|
1
|
+
// Nombre del contexto
|
|
4
2
|
export const DEFAULT_CONTEXT = "default";
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
|
|
3
|
+
// Ruta de la raiz: por defecto vale ./src
|
|
4
|
+
export const OUTPUT_PATH = "./src";
|
|
5
|
+
// Nombre de la carpeta en donde estan los eventos
|
|
6
|
+
export const FOLDER_NAME = "events";
|
|
7
|
+
// Nombre del archivo con el script de eventos
|
|
8
|
+
export const TRACK_FILE_NAME = 'track-events-script.ts';
|
|
8
9
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;AACzC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AACnC,kDAAkD;AAClD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AACpC,8CAA8C;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copia el archivo tsconfig
|
|
3
|
+
* @param {string} outputPath Url del directorio de salida
|
|
3
4
|
*/
|
|
4
|
-
export declare function copyTsConfig(): Promise<void>;
|
|
5
|
+
export declare function copyTsConfig(outputPath: string): Promise<void>;
|
|
5
6
|
//# sourceMappingURL=copy-tsconfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-tsconfig.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":"AAIA
|
|
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"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { createRootFile } from "
|
|
1
|
+
import { createRootFile } from "../helpers";
|
|
2
|
+
import { TRACK_FILE_NAME } from "./constants";
|
|
2
3
|
import tsconfigTemplate from "./templates/tsconfig.event-track";
|
|
3
4
|
/**
|
|
4
5
|
* Copia el archivo tsconfig
|
|
6
|
+
* @param {string} outputPath Url del directorio de salida
|
|
5
7
|
*/
|
|
6
|
-
export async function copyTsConfig() {
|
|
7
|
-
const content = tsconfigTemplate;
|
|
8
|
+
export async function copyTsConfig(outputPath) {
|
|
9
|
+
const content = tsconfigTemplate(TRACK_FILE_NAME, outputPath);
|
|
8
10
|
createRootFile("./", content, "tsconfig.event-track.json");
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=copy-tsconfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-tsconfig.js","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"copy-tsconfig.js","sourceRoot":"","sources":["../../../src/scripts/get-event/copy-tsconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAEhE;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,UAAkB;IACnD,MAAM,OAAO,GAAG,gBAAgB,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IAC9D,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,2BAA2B,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Traquear eventos
|
|
3
|
-
* @param {string} outputPath
|
|
3
|
+
* @param {string} outputPath Ruta de la carpeta de salida
|
|
4
4
|
* @param {string} contextName Nombre del contexto
|
|
5
|
-
* @param {string}
|
|
5
|
+
* @param {string} folderName Nombre de la carpeta de eventos
|
|
6
6
|
*/
|
|
7
|
-
export declare function trackEvents(outputPath: string, contextName
|
|
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,
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addImports, createRootFile, getEventDomain, getNames } from "
|
|
2
|
-
import {
|
|
1
|
+
import { addImports, createRootFile, ensureDirs, getEventDomain, getNames } from "../helpers";
|
|
2
|
+
import { DEFAULT_CONTEXT, FOLDER_NAME, TRACK_FILE_NAME } from "./constants";
|
|
3
3
|
import template from './templates/track.template';
|
|
4
4
|
const TEMPLATE = `
|
|
5
5
|
try {
|
|
@@ -21,23 +21,31 @@ function addArtifacts(texto, artifacName, folder) {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Traquear eventos
|
|
24
|
-
* @param {string} outputPath
|
|
24
|
+
* @param {string} outputPath Ruta de la carpeta de salida
|
|
25
25
|
* @param {string} contextName Nombre del contexto
|
|
26
|
-
* @param {string}
|
|
26
|
+
* @param {string} folderName Nombre de la carpeta de eventos
|
|
27
27
|
*/
|
|
28
|
-
export async function trackEvents(outputPath, contextName,
|
|
28
|
+
export async function trackEvents(outputPath, contextName = DEFAULT_CONTEXT, folderName = FOLDER_NAME) {
|
|
29
|
+
// Ruta de la carpeta de eventos
|
|
30
|
+
const eventFolder = `${outputPath}/${folderName}`;
|
|
31
|
+
// Asegura que exista el directorio de eventos
|
|
32
|
+
ensureDirs(eventFolder);
|
|
33
|
+
// Lista de eventos
|
|
29
34
|
const artifacts = getEventDomain(eventFolder);
|
|
35
|
+
// Contenido de la plantilla
|
|
30
36
|
let templateContent = template;
|
|
37
|
+
// Reemplazamos el nombre del contexto en la plantilla
|
|
31
38
|
templateContent = templateContent.replace("<%= context-name %>", contextName.trim());
|
|
39
|
+
// Reemplazamos los eventos en la plantilla
|
|
32
40
|
for (const artifac of artifacts) {
|
|
33
41
|
const artifacNames = getNames(artifac.name);
|
|
34
|
-
templateContent = addImports(templateContent, [`${artifacNames.className}`], `./${
|
|
42
|
+
templateContent = addImports(templateContent, [`${artifacNames.className}`], `./${folderName}/${artifac.name}`);
|
|
35
43
|
let artifactTemplate = TEMPLATE.replace(/<Artifac>/g, `${artifacNames.className}`);
|
|
36
|
-
templateContent = addArtifacts(templateContent, artifac.name,
|
|
44
|
+
templateContent = addArtifacts(templateContent, artifac.name, folderName);
|
|
37
45
|
templateContent = templateContent.replace("// flag", artifactTemplate);
|
|
38
46
|
}
|
|
39
47
|
// console.log("\ntemplateContent", templateContent);
|
|
40
48
|
/** Crear archivo en la raiz */
|
|
41
|
-
createRootFile(outputPath, templateContent,
|
|
49
|
+
createRootFile(outputPath, templateContent, TRACK_FILE_NAME);
|
|
42
50
|
}
|
|
43
51
|
//# 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,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"generate-track-events.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate-track-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,QAAQ,MAAM,4BAA4B,CAAC;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;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,UAAkB,EAClB,cAAsB,eAAe,EACrC,aAAqB,WAAW;IAEhC,gCAAgC;IAChC,MAAM,WAAW,GAAG,GAAG,UAAU,IAAI,UAAU,EAAE,CAAC;IAClD,8CAA8C;IAC9C,UAAU,CAAC,WAAW,CAAC,CAAC;IACxB,mBAAmB;IACnB,MAAM,SAAS,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IAC9C,4BAA4B;IAC5B,IAAI,eAAe,GAAG,QAAQ,CAAC;IAC/B,sDAAsD;IACtD,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC,qBAAqB,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IACrF,2CAA2C;IAC3C,KAAK,MAAM,OAAO,IAAI,SAAS,EAAE,CAAC;QAChC,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5C,eAAe,GAAG,UAAU,CAC1B,eAAe,EACf,CAAC,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,EAC7B,KAAK,UAAU,IAAI,OAAO,CAAC,IAAI,EAAE,CAClC,CAAC;QAEF,IAAI,gBAAgB,GAAG,QAAQ,CAAC,OAAO,CACrC,YAAY,EACZ,GAAG,YAAY,CAAC,SAAS,EAAE,CAC5B,CAAC;QAEF,eAAe,GAAG,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;QAEzE,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACzE,CAAC;IACD,qDAAqD;IAErD,+BAA+B;IAC/B,cAAc,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Metodo para
|
|
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
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";AAMA;;;;GAIG;AACH,wBAAsB,IAAI,kBAWzB"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { updateGitignore } from
|
|
2
|
+
import { getArgv } from "./get-argv";
|
|
3
|
+
import { trackEvents } from "./generate-track-events";
|
|
4
|
+
import { copyTsConfig } from "./copy-tsconfig";
|
|
5
|
+
import { updateGitignore } from "../helpers";
|
|
6
6
|
/**
|
|
7
|
-
* Metodo para
|
|
7
|
+
* Metodo para generar el script para obtener el esquema de los eventos
|
|
8
|
+
* Genera el script track-events-script.ts y genera el siguiente archivo de configuracion tsconfig.event-track.json
|
|
9
|
+
* Agrega al gitignore los archivos y carpetas que no debe rastrear
|
|
8
10
|
*/
|
|
9
11
|
export async function main() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
// Constant list of folders and files to add to .gitignore
|
|
13
|
+
const pathsToIgnore = [
|
|
14
|
+
"**/event-schemes",
|
|
15
|
+
"**/schemes",
|
|
16
|
+
"track-events-script.ts",
|
|
17
|
+
];
|
|
18
|
+
const { outputPath, contextName, folderName } = getArgv();
|
|
19
|
+
await trackEvents(outputPath, contextName, folderName);
|
|
20
|
+
await copyTsConfig(outputPath);
|
|
21
|
+
updateGitignore(pathsToIgnore);
|
|
17
22
|
}
|
|
18
23
|
main();
|
|
19
24
|
//# sourceMappingURL=generate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/scripts/get-event/generate.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,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,OAAO,EAAE,CAAC;IAC1D,MAAM,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IACvD,MAAM,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,eAAe,CAAC,aAAa,CAAC,CAAC;AACjC,CAAC;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,20 @@
|
|
|
1
|
+
import { DEFAULT_CONTEXT, FOLDER_NAME, OUTPUT_PATH } from "./constants";
|
|
2
|
+
/**
|
|
3
|
+
* Retorna las rutas necesarias para el script
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export function getArgv() {
|
|
7
|
+
let [, , outputPath, contextName, folderName] = process.argv;
|
|
8
|
+
// Ruta de salida: por defecto vale ./src
|
|
9
|
+
outputPath = outputPath ? outputPath : OUTPUT_PATH;
|
|
10
|
+
// Nombre del contexto
|
|
11
|
+
contextName = contextName ? contextName : DEFAULT_CONTEXT;
|
|
12
|
+
// Nombre de la carpeta en donde estan los eventos
|
|
13
|
+
folderName = folderName ? folderName : FOLDER_NAME;
|
|
14
|
+
return {
|
|
15
|
+
outputPath,
|
|
16
|
+
contextName,
|
|
17
|
+
folderName,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# 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,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAWxE;;;GAGG;AACH,MAAM,UAAU,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,WAAW,CAAC;IACnD,sBAAsB;IACtB,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC;IAC1D,kDAAkD;IAClD,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IACnD,OAAO;QACL,UAAU;QACV,WAAW;QACX,UAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
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":"
|
|
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,9 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Elimina de la ruta los elementos del inicio ./
|
|
3
|
+
* @param {string} route
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
const getRoute = (route) => route.startsWith("./") ? route.substring(2) : route;
|
|
7
|
+
/**
|
|
8
|
+
* Retorna el tsconfig
|
|
9
|
+
* @param {string} route Ruta de la raiz
|
|
10
|
+
* @param {string} fileName Nombre del archvio
|
|
11
|
+
* @returns {string} JSON del tsconfig
|
|
12
|
+
*/
|
|
13
|
+
const tsconfigString = (fileName, route = 'src') => `{
|
|
2
14
|
"compilerOptions": {
|
|
3
15
|
"module": "CommonJS",
|
|
4
16
|
"target": "ES2020",
|
|
5
17
|
"outDir": "event-schemes",
|
|
6
|
-
"rootDir": "
|
|
18
|
+
"rootDir": "${getRoute(route)}",
|
|
7
19
|
"declaration": true,
|
|
8
20
|
"sourceMap": true,
|
|
9
21
|
"strict": true,
|
|
@@ -12,20 +24,20 @@ const tsconfigString = `{
|
|
|
12
24
|
"skipLibCheck": true,
|
|
13
25
|
"noEmitOnError": true
|
|
14
26
|
},
|
|
15
|
-
"include": ["
|
|
27
|
+
"include": ["${getRoute(route)}/**/*"],
|
|
16
28
|
"exclude": ["node_modules", "dist"],
|
|
17
29
|
"esbuild": {
|
|
18
30
|
"platform": "node",
|
|
19
31
|
"bundle": false,
|
|
20
32
|
"format": "cjs",
|
|
21
|
-
"entryPoints": ["
|
|
33
|
+
"entryPoints": ["${getRoute(route)}/${fileName}"],
|
|
22
34
|
"outdir": "event-schemes",
|
|
23
35
|
"sourcemap": true,
|
|
24
36
|
"outExtension": {
|
|
25
37
|
".js": ".js"
|
|
26
38
|
},
|
|
27
39
|
"generatePackageJson": true,
|
|
28
|
-
"assets": ["
|
|
40
|
+
"assets": ["${getRoute(route)}/assets"]
|
|
29
41
|
},
|
|
30
42
|
"configurations": {
|
|
31
43
|
"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,
|
|
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,eAAe,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+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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-root-file.d.ts","sourceRoot":"","sources":["../../../src/scripts/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"}
|
|
@@ -9,7 +9,7 @@ import * as path from "path";
|
|
|
9
9
|
export function createRootFile(outputPath, content, fileName) {
|
|
10
10
|
// Usar process.cwd() para obtener la raíz del proyecto
|
|
11
11
|
const srcFolderPath = process.cwd();
|
|
12
|
-
// Crear la carpeta
|
|
12
|
+
// Crear la carpeta si no existe
|
|
13
13
|
const schemasFolderPath = path.join(srcFolderPath, outputPath);
|
|
14
14
|
if (!fs.existsSync(schemasFolderPath)) {
|
|
15
15
|
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,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,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"}
|
|
@@ -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,28 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
/**
|
|
4
|
+
* Comprueba y crea directorios a lo largo de una ruta determinada si no existen.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} dirPath La ruta del directorio a comprobar y crear.
|
|
7
|
+
*/
|
|
8
|
+
export function ensureDirs(dirPath) {
|
|
9
|
+
const dirs = dirPath.split(path.sep); // Split path into directory segments
|
|
10
|
+
let currentPath = '';
|
|
11
|
+
for (const dir of dirs) {
|
|
12
|
+
currentPath = path.join(currentPath, dir);
|
|
13
|
+
if (!fs.existsSync(currentPath)) {
|
|
14
|
+
try {
|
|
15
|
+
fs.mkdirSync(currentPath);
|
|
16
|
+
console.log(`Created dir: ${currentPath}`);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
console.error(`Error creating dir ${currentPath}:`, err);
|
|
20
|
+
return; // Stop if there's an error
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
console.log(`Dir exists: ${currentPath}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# 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,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,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"}
|
|
@@ -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,OAAO,EAAE,UAAU,EAAY,MAAM,IAAI,CAAC;AAE1C;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,MAAgB;IACzC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -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,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"}
|
|
@@ -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,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"}
|
|
@@ -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,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"}
|
|
@@ -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,MAAM,UAAU,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;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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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"}
|
|
@@ -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"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as fs from 'fs';
|
|
2
2
|
import * as path from 'path';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Function to update .gitignore
|
|
10
|
-
export function updateGitignore() {
|
|
3
|
+
/**
|
|
4
|
+
* Function to update .gitignore
|
|
5
|
+
* @param {string[]} pathsToIgnore Lista de directorios o archivos a ignorar
|
|
6
|
+
* @returns {void} Modifica el gitignore
|
|
7
|
+
*/
|
|
8
|
+
export function updateGitignore(pathsToIgnore) {
|
|
11
9
|
const gitignorePath = path.join(process.cwd(), ".gitignore");
|
|
12
|
-
console.log(
|
|
10
|
+
console.log(`\nUpdating .gitignore in ${process.cwd()}...`);
|
|
13
11
|
// Check if .gitignore exists
|
|
14
12
|
if (!fs.existsSync(gitignorePath)) {
|
|
15
13
|
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,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,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"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ruta de la raiz
|
|
3
|
-
*/
|
|
4
1
|
export declare const DEFAULT_CONTEXT = "default";
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
2
|
+
export declare const OUTPUT_PATH = "./src";
|
|
3
|
+
export declare const FOLDER_NAME = "events";
|
|
4
|
+
export declare const TRACK_FILE_NAME = "track-events-script.ts";
|
|
8
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,YAAY,CAAC;AAEzC,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
* Ruta de la raiz
|
|
6
|
-
*/
|
|
3
|
+
exports.TRACK_FILE_NAME = exports.FOLDER_NAME = exports.OUTPUT_PATH = exports.DEFAULT_CONTEXT = void 0;
|
|
4
|
+
// Nombre del contexto
|
|
7
5
|
exports.DEFAULT_CONTEXT = "default";
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
|
|
6
|
+
// Ruta de la raiz: por defecto vale ./src
|
|
7
|
+
exports.OUTPUT_PATH = "./src";
|
|
8
|
+
// Nombre de la carpeta en donde estan los eventos
|
|
9
|
+
exports.FOLDER_NAME = "events";
|
|
10
|
+
// Nombre del archivo con el script de eventos
|
|
11
|
+
exports.TRACK_FILE_NAME = 'track-events-script.ts';
|
|
11
12
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/scripts/get-event/constants.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACT,QAAA,eAAe,GAAG,SAAS,CAAC;AACzC,0CAA0C;AAC7B,QAAA,WAAW,GAAG,OAAO,CAAC;AACnC,kDAAkD;AACrC,QAAA,WAAW,GAAG,QAAQ,CAAC;AACpC,8CAA8C;AACjC,QAAA,eAAe,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copia el archivo tsconfig
|
|
3
|
+
* @param {string} outputPath Url del directorio de salida
|
|
3
4
|
*/
|
|
4
|
-
export declare function copyTsConfig(): Promise<void>;
|
|
5
|
+
export declare function copyTsConfig(outputPath: string): Promise<void>;
|
|
5
6
|
//# sourceMappingURL=copy-tsconfig.d.ts.map
|