@interopio/iocd-cli 0.0.7 → 0.0.8
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 +41 -9
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/services/app.service.js +22 -45
- package/dist/services/app.service.js.map +1 -1
- package/dist/services/config/config.service.js +4 -12
- package/dist/services/config/config.service.js.map +1 -1
- package/dist/services/create.service.js +2 -2
- package/dist/services/create.service.js.map +1 -1
- package/dist/services/installer/electronForge.js +57 -14
- package/dist/services/installer/electronForge.js.map +1 -1
- package/dist/services/license.service.js +7 -8
- package/dist/services/license.service.js.map +1 -1
- package/dist/services/template.service.js +7 -2
- package/dist/services/template.service.js.map +1 -1
- package/dist/templates/ioconnect-desktop/package.json +2 -1
- package/dist/utils/path.js +17 -5
- package/dist/utils/path.js.map +1 -1
- package/dist/{sentry.js → utils/sentry.js} +3 -1
- package/dist/utils/sentry.js.map +1 -0
- package/package.json +1 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/commands/apps.command.d.ts +0 -3
- package/dist/commands/apps.command.d.ts.map +0 -1
- package/dist/commands/build.command.d.ts +0 -3
- package/dist/commands/build.command.d.ts.map +0 -1
- package/dist/commands/components.command.d.ts +0 -3
- package/dist/commands/components.command.d.ts.map +0 -1
- package/dist/commands/create.command.d.ts +0 -3
- package/dist/commands/create.command.d.ts.map +0 -1
- package/dist/commands/dev.command.d.ts +0 -4
- package/dist/commands/dev.command.d.ts.map +0 -1
- package/dist/commands/license.command.d.ts +0 -3
- package/dist/commands/license.command.d.ts.map +0 -1
- package/dist/commands/modifications.command.d.ts +0 -3
- package/dist/commands/modifications.command.d.ts.map +0 -1
- package/dist/commands/setup.command.d.ts +0 -4
- package/dist/commands/setup.command.d.ts.map +0 -1
- package/dist/sentry.d.ts +0 -2
- package/dist/sentry.d.ts.map +0 -1
- package/dist/sentry.js.map +0 -1
- package/dist/services/app-builder.service.d.ts +0 -2
- package/dist/services/app-builder.service.d.ts.map +0 -1
- package/dist/services/app.service.d.ts +0 -75
- package/dist/services/app.service.d.ts.map +0 -1
- package/dist/services/components/component.config.d.ts +0 -11
- package/dist/services/components/component.config.d.ts.map +0 -1
- package/dist/services/components/component.d.ts +0 -17
- package/dist/services/components/component.d.ts.map +0 -1
- package/dist/services/components/components.registry.d.ts +0 -40
- package/dist/services/components/components.registry.d.ts.map +0 -1
- package/dist/services/components/components.service.d.ts +0 -25
- package/dist/services/components/components.service.d.ts.map +0 -1
- package/dist/services/components/file.helper.d.ts +0 -12
- package/dist/services/components/file.helper.d.ts.map +0 -1
- package/dist/services/components/platform.utils.d.ts +0 -149
- package/dist/services/components/platform.utils.d.ts.map +0 -1
- package/dist/services/components/stores/github.store.d.ts +0 -34
- package/dist/services/components/stores/github.store.d.ts.map +0 -1
- package/dist/services/components/stores/local.store.d.ts +0 -70
- package/dist/services/components/stores/local.store.d.ts.map +0 -1
- package/dist/services/components/stores/s3.store.d.ts +0 -99
- package/dist/services/components/stores/s3.store.d.ts.map +0 -1
- package/dist/services/components/stores/store.d.ts +0 -12
- package/dist/services/components/stores/store.d.ts.map +0 -1
- package/dist/services/components/version.selector.d.ts +0 -4
- package/dist/services/components/version.selector.d.ts.map +0 -1
- package/dist/services/config/cli.config.d.ts +0 -64
- package/dist/services/config/cli.config.d.ts.map +0 -1
- package/dist/services/config/config.service.d.ts +0 -14
- package/dist/services/config/config.service.d.ts.map +0 -1
- package/dist/services/create.service.d.ts +0 -58
- package/dist/services/create.service.d.ts.map +0 -1
- package/dist/services/dev.service.d.ts +0 -2
- package/dist/services/dev.service.d.ts.map +0 -1
- package/dist/services/installer/electronBuilder.d.ts +0 -2
- package/dist/services/installer/electronBuilder.d.ts.map +0 -1
- package/dist/services/installer/electronForge.d.ts +0 -4
- package/dist/services/installer/electronForge.d.ts.map +0 -1
- package/dist/services/installer/installer.service.d.ts +0 -5
- package/dist/services/installer/installer.service.d.ts.map +0 -1
- package/dist/services/installer/macOS.helper.d.ts +0 -3
- package/dist/services/installer/macOS.helper.d.ts.map +0 -1
- package/dist/services/installer/prerequisites.d.ts +0 -2
- package/dist/services/installer/prerequisites.d.ts.map +0 -1
- package/dist/services/installer/windows.helper.d.ts +0 -10
- package/dist/services/installer/windows.helper.d.ts.map +0 -1
- package/dist/services/license.service.d.ts +0 -105
- package/dist/services/license.service.d.ts.map +0 -1
- package/dist/services/modifications/macOS.helper.d.ts +0 -13
- package/dist/services/modifications/macOS.helper.d.ts.map +0 -1
- package/dist/services/modifications/modifications.service.d.ts +0 -2
- package/dist/services/modifications/modifications.service.d.ts.map +0 -1
- package/dist/services/modifications/windows.helper.d.ts +0 -2
- package/dist/services/modifications/windows.helper.d.ts.map +0 -1
- package/dist/services/template.service.d.ts +0 -116
- package/dist/services/template.service.d.ts.map +0 -1
- package/dist/templates/auto-tests/README.md +0 -31
- package/dist/templates/auto-tests/playwright.config.js +0 -19
- package/dist/templates/groups/apps/groups/src/reportWebVitals.ts +0 -15
- package/dist/utils/colors.d.ts +0 -57
- package/dist/utils/colors.d.ts.map +0 -1
- package/dist/utils/deep.merge.d.ts +0 -5
- package/dist/utils/deep.merge.d.ts.map +0 -1
- package/dist/utils/delay.d.ts +0 -2
- package/dist/utils/delay.d.ts.map +0 -1
- package/dist/utils/electron.builder.config.helper.d.ts +0 -6
- package/dist/utils/electron.builder.config.helper.d.ts.map +0 -1
- package/dist/utils/ensure.iocd.exists.d.ts +0 -2
- package/dist/utils/ensure.iocd.exists.d.ts.map +0 -1
- package/dist/utils/error.handler.d.ts +0 -31
- package/dist/utils/error.handler.d.ts.map +0 -1
- package/dist/utils/file.d.ts +0 -10
- package/dist/utils/file.d.ts.map +0 -1
- package/dist/utils/find.package.dir.d.ts +0 -2
- package/dist/utils/find.package.dir.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -19
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/nextSteps.d.ts +0 -2
- package/dist/utils/nextSteps.d.ts.map +0 -1
- package/dist/utils/pacakge.json.helper.d.ts +0 -13
- package/dist/utils/pacakge.json.helper.d.ts.map +0 -1
- package/dist/utils/path.d.ts +0 -19
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/version.d.ts +0 -2
- package/dist/utils/version.d.ts.map +0 -1
- /package/dist/templates/ioconnect-desktop/{forge.config.js → config/forge.config.js} +0 -0
- /package/dist/templates/ioconnect-desktop/{iocd.cli.config.json → config/iocd.cli.config.json} +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
export interface TemplateOptions {
|
|
2
|
-
productSlug: string;
|
|
3
|
-
productName: string;
|
|
4
|
-
company: string;
|
|
5
|
-
copyright: string;
|
|
6
|
-
version: string;
|
|
7
|
-
folderName: string;
|
|
8
|
-
targetDirectory: string;
|
|
9
|
-
templateApplications: string[];
|
|
10
|
-
initialComponents: string[];
|
|
11
|
-
}
|
|
12
|
-
export interface TemplateVariable {
|
|
13
|
-
key: string;
|
|
14
|
-
value: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface TemplateMetadata {
|
|
18
|
-
name: string;
|
|
19
|
-
displayName?: string;
|
|
20
|
-
description: string;
|
|
21
|
-
version: string;
|
|
22
|
-
type: 'base' | 'application' | 'tests';
|
|
23
|
-
setupUI?: {
|
|
24
|
-
text?: string;
|
|
25
|
-
separate?: boolean;
|
|
26
|
-
selected?: boolean;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* TemplateService handles the generation of io.Connect Desktop projects using a modular template system.
|
|
31
|
-
*
|
|
32
|
-
* This service supports two types of templates:
|
|
33
|
-
* - Base templates: Core project structure and essential files (e.g., ioconnect-desktop)
|
|
34
|
-
* - Feature templates: Optional functionality modules that extend the base template
|
|
35
|
-
*
|
|
36
|
-
* The service processes templates by:
|
|
37
|
-
* 1. Copying base template files to the target directory
|
|
38
|
-
* 2. Applying variable substitutions ({{variable}} patterns)
|
|
39
|
-
* 3. Conditionally applying feature templates based on user selection:
|
|
40
|
-
* - Validates that requested features exist as separate template directories
|
|
41
|
-
* - Only processes features that are explicitly selected by the user
|
|
42
|
-
* - Each feature template contains its own template.json with type: "feature"
|
|
43
|
-
* - Features are independent and can be combined in any combination
|
|
44
|
-
* 4. Merging feature-specific files into the project structure:
|
|
45
|
-
* - Feature templates overlay their files onto the base project structure
|
|
46
|
-
* - Files from features are copied to their corresponding paths in the target
|
|
47
|
-
* - Directory structures are preserved (e.g., modifications/iocd/assets/feature/)
|
|
48
|
-
* - No conflicts occur since features target different subdirectories
|
|
49
|
-
* - Variable substitution is applied to feature files just like base template files
|
|
50
|
-
*
|
|
51
|
-
* Key capabilities:
|
|
52
|
-
* - Template discovery and validation from filesystem
|
|
53
|
-
* - Variable interpolation for dynamic content generation
|
|
54
|
-
* - Modular feature system for extensible project setup
|
|
55
|
-
* - Comprehensive error handling and logging
|
|
56
|
-
* - Support for nested directory structures and file copying
|
|
57
|
-
*/
|
|
58
|
-
export declare class TemplateService {
|
|
59
|
-
private logger;
|
|
60
|
-
private templatesPath;
|
|
61
|
-
constructor();
|
|
62
|
-
/**
|
|
63
|
-
* Get the path to embedded templates
|
|
64
|
-
*/
|
|
65
|
-
getTemplatesPath(): string;
|
|
66
|
-
/**
|
|
67
|
-
* List available templates
|
|
68
|
-
*/
|
|
69
|
-
getAvailableTemplates(): string[];
|
|
70
|
-
/**
|
|
71
|
-
* Check if a template exists
|
|
72
|
-
*/
|
|
73
|
-
templateExists(templateName: string): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Generate a project from a template
|
|
76
|
-
*/
|
|
77
|
-
generateProject(templateName: string, options: TemplateOptions): Promise<void>;
|
|
78
|
-
/** Add a new template application to an already created seed project */
|
|
79
|
-
addTemplateApplication(appName: string): Promise<void>;
|
|
80
|
-
/** Adds initialComponents to the iocd.cli.config.json -> components.list object in the target directory */
|
|
81
|
-
private updateComponentsConfig;
|
|
82
|
-
/**
|
|
83
|
-
* Prepare template variables for replacement
|
|
84
|
-
*/
|
|
85
|
-
private prepareTemplateVariables;
|
|
86
|
-
/**
|
|
87
|
-
* Generate NPM-compatible package name from product name
|
|
88
|
-
*/
|
|
89
|
-
private generatePackageName;
|
|
90
|
-
/**
|
|
91
|
-
* Recursively copy template files with variable replacement
|
|
92
|
-
*/
|
|
93
|
-
private copyTemplateFiles;
|
|
94
|
-
/**
|
|
95
|
-
* Copy a single file with variable replacement
|
|
96
|
-
*/
|
|
97
|
-
private copyFileWithReplacement;
|
|
98
|
-
private copyFileNoReplacement;
|
|
99
|
-
/**
|
|
100
|
-
* Process feature-specific templates
|
|
101
|
-
*/
|
|
102
|
-
private processApplicationsTemplates;
|
|
103
|
-
/**
|
|
104
|
-
* Escape special regex characters
|
|
105
|
-
*/
|
|
106
|
-
private escapeRegExp;
|
|
107
|
-
/**
|
|
108
|
-
* Get template information
|
|
109
|
-
*/
|
|
110
|
-
getTemplateInfo(templateName: string): TemplateMetadata;
|
|
111
|
-
/**
|
|
112
|
-
* Get available application templates with their metadata
|
|
113
|
-
*/
|
|
114
|
-
getAvailableApplicationTemplates(): TemplateMetadata[];
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=template.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.service.d.ts","sourceRoot":"","sources":["../../src/services/template.service.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAA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;IACI,gCAAgC,IAAI,gBAAgB,EAAE;CAa9D"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Auto Tests Template
|
|
2
|
-
|
|
3
|
-
This template adds automated testing capabilities to your io.Connect Desktop project.
|
|
4
|
-
|
|
5
|
-
## Included Files
|
|
6
|
-
|
|
7
|
-
- `tests/basic.test.js` - Basic test structure using Playwright
|
|
8
|
-
- `playwright.config.js` - Playwright configuration file
|
|
9
|
-
|
|
10
|
-
## Setup Instructions
|
|
11
|
-
|
|
12
|
-
After applying this template, you'll need to:
|
|
13
|
-
|
|
14
|
-
1. Install Playwright dependencies:
|
|
15
|
-
```bash
|
|
16
|
-
npm install @playwright/test
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
2. Install browsers:
|
|
20
|
-
```bash
|
|
21
|
-
npx playwright install
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
3. Run tests:
|
|
25
|
-
```bash
|
|
26
|
-
npx playwright test
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Test Structure
|
|
30
|
-
|
|
31
|
-
The template provides a basic test structure that you can extend based on your application's specific testing needs.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
testDir: './tests',
|
|
3
|
-
timeout: 30000,
|
|
4
|
-
expect: {
|
|
5
|
-
timeout: 5000
|
|
6
|
-
},
|
|
7
|
-
use: {
|
|
8
|
-
browserName: 'chromium',
|
|
9
|
-
headless: false,
|
|
10
|
-
viewport: { width: 1280, height: 720 },
|
|
11
|
-
ignoreHTTPSErrors: true,
|
|
12
|
-
},
|
|
13
|
-
projects: [
|
|
14
|
-
{
|
|
15
|
-
name: 'chromium',
|
|
16
|
-
use: { browserName: 'chromium' },
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReportHandler } from 'web-vitals';
|
|
2
|
-
|
|
3
|
-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
4
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
5
|
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
6
|
-
getCLS(onPerfEntry);
|
|
7
|
-
getFID(onPerfEntry);
|
|
8
|
-
getFCP(onPerfEntry);
|
|
9
|
-
getLCP(onPerfEntry);
|
|
10
|
-
getTTFB(onPerfEntry);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default reportWebVitals;
|
package/dist/utils/colors.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ANSI color utility for terminal output
|
|
3
|
-
* Replaces chalk dependency with native ANSI escape codes
|
|
4
|
-
*/
|
|
5
|
-
export declare const red: (text: string) => string;
|
|
6
|
-
export declare const green: (text: string) => string;
|
|
7
|
-
export declare const yellow: (text: string) => string;
|
|
8
|
-
export declare const blue: (text: string) => string;
|
|
9
|
-
export declare const magenta: (text: string) => string;
|
|
10
|
-
export declare const cyan: (text: string) => string;
|
|
11
|
-
export declare const white: (text: string) => string;
|
|
12
|
-
export declare const gray: (text: string) => string;
|
|
13
|
-
export declare const grey: (text: string) => string;
|
|
14
|
-
export declare const black: (text: string) => string;
|
|
15
|
-
export declare const bgRed: (text: string) => string;
|
|
16
|
-
export declare const bgGreen: (text: string) => string;
|
|
17
|
-
export declare const bgYellow: (text: string) => string;
|
|
18
|
-
export declare const bgBlue: (text: string) => string;
|
|
19
|
-
export declare const bgMagenta: (text: string) => string;
|
|
20
|
-
export declare const bgCyan: (text: string) => string;
|
|
21
|
-
export declare const bgWhite: (text: string) => string;
|
|
22
|
-
export declare const bgBlack: (text: string) => string;
|
|
23
|
-
export declare const bold: (text: string) => string;
|
|
24
|
-
export declare const dim: (text: string) => string;
|
|
25
|
-
export declare const italic: (text: string) => string;
|
|
26
|
-
export declare const underline: (text: string) => string;
|
|
27
|
-
export declare const strikethrough: (text: string) => string;
|
|
28
|
-
export declare const bgCyanBlack: (text: string) => string;
|
|
29
|
-
declare const colors: {
|
|
30
|
-
red: (text: string) => string;
|
|
31
|
-
green: (text: string) => string;
|
|
32
|
-
yellow: (text: string) => string;
|
|
33
|
-
blue: (text: string) => string;
|
|
34
|
-
magenta: (text: string) => string;
|
|
35
|
-
cyan: (text: string) => string;
|
|
36
|
-
white: (text: string) => string;
|
|
37
|
-
gray: (text: string) => string;
|
|
38
|
-
grey: (text: string) => string;
|
|
39
|
-
black: (text: string) => string;
|
|
40
|
-
bgRed: (text: string) => string;
|
|
41
|
-
bgGreen: (text: string) => string;
|
|
42
|
-
bgYellow: (text: string) => string;
|
|
43
|
-
bgBlue: (text: string) => string;
|
|
44
|
-
bgMagenta: (text: string) => string;
|
|
45
|
-
bgWhite: (text: string) => string;
|
|
46
|
-
bgBlack: (text: string) => string;
|
|
47
|
-
bold: (text: string) => string;
|
|
48
|
-
dim: (text: string) => string;
|
|
49
|
-
italic: (text: string) => string;
|
|
50
|
-
underline: (text: string) => string;
|
|
51
|
-
strikethrough: (text: string) => string;
|
|
52
|
-
bgCyan: {
|
|
53
|
-
black: (text: string) => string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export default colors;
|
|
57
|
-
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwEH,eAAO,MAAM,GAAG,GAAI,MAAM,MAAM,KAAG,MAAoC,CAAC;AACxE,eAAO,MAAM,KAAK,GAAI,MAAM,MAAM,KAAG,MAAsC,CAAC;AAC5E,eAAO,MAAM,MAAM,GAAI,MAAM,MAAM,KAAG,MAAuC,CAAC;AAC9E,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,KAAG,MAAqC,CAAC;AAC1E,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,MAAw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AG,MAAM;kBACb,MAAM,KAAG,MAAM;mBACd,MAAM,KAAG,MAAM;iBACjB,MAAM,KAAG,MAAM;oBACZ,MAAM,KAAG,MAAM;iBAClB,MAAM,KAAG,MAAM;kBACd,MAAM,KAAG,MAAM;iBAChB,MAAM,KAAG,MAAM;iBACf,MAAM,KAAG,MAAM;kBACd,MAAM,KAAG,MAAM;kBAGf,MAAM,KAAG,MAAM;oBACb,MAAM,KAAG,MAAM;qBACd,MAAM,KAAG,MAAM;mBACjB,MAAM,KAAG,MAAM;sBACZ,MAAM,KAAG,MAAM;oBAEjB,MAAM,KAAG,MAAM;oBACf,MAAM,KAAG,MAAM;iBAGlB,MAAM,KAAG,MAAM;gBAChB,MAAM,KAAG,MAAM;mBACZ,MAAM,KAAG,MAAM;sBACZ,MAAM,KAAG,MAAM;0BACX,MAAM,KAAG,MAAM;;sBAGjB,MAAM,KAAG,MAAM;;CAgChD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deep.merge.d.ts","sourceRoot":"","sources":["../../src/utils/deep.merge.ts"],"names":[],"mappings":"AAAC;;EAEE;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,GAAG,CAcvD"}
|
package/dist/utils/delay.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/utils/delay.ts"],"names":[],"mappings":"AAAA,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electron.builder.config.helper.d.ts","sourceRoot":"","sources":["../../src/utils/electron.builder.config.helper.ts"],"names":[],"mappings":"AAGA,qBAAa,2BAA2B;IACtC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAgD;IACzE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAa;IAElC,MAAM,CAAC,SAAS,IAAI,GAAG;CAWxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure.iocd.exists.d.ts","sourceRoot":"","sources":["../../src/utils/ensure.iocd.exists.ts"],"names":[],"mappings":"AAIA,wBAAgB,yBAAyB,SAoBxC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum ErrorCode {
|
|
2
|
-
GENERAL = 1,
|
|
3
|
-
INVALID_CONFIG = 2,
|
|
4
|
-
NETWORK_ERROR = 3,
|
|
5
|
-
FILE_SYSTEM_ERROR = 4,
|
|
6
|
-
COMPONENT_ERROR = 5,
|
|
7
|
-
VALIDATION_ERROR = 6,
|
|
8
|
-
PERMISSION_ERROR = 7,
|
|
9
|
-
NOT_FOUND = 8,
|
|
10
|
-
BUILD_ERROR = 9
|
|
11
|
-
}
|
|
12
|
-
export interface CLIErrorOptions {
|
|
13
|
-
code?: ErrorCode;
|
|
14
|
-
cause?: Error;
|
|
15
|
-
suggestions?: string[];
|
|
16
|
-
showLogPath?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare class CLIError extends Error {
|
|
19
|
-
readonly code: ErrorCode;
|
|
20
|
-
readonly cause?: Error | undefined;
|
|
21
|
-
readonly suggestions: string[];
|
|
22
|
-
readonly showLogPath: boolean;
|
|
23
|
-
constructor(message: string, options?: CLIErrorOptions);
|
|
24
|
-
}
|
|
25
|
-
export declare class ErrorHandler {
|
|
26
|
-
private static logger;
|
|
27
|
-
static handle(error: Error | CLIError): Promise<void>;
|
|
28
|
-
static wrap(fn: () => Promise<any>): Promise<any>;
|
|
29
|
-
private static sendToSentry;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=error.handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.handler.d.ts","sourceRoot":"","sources":["../../src/utils/error.handler.ts"],"names":[],"mappings":"AAQA,oBAAY,SAAS;IACnB,OAAO,IAAI;IACX,cAAc,IAAI;IAClB,aAAa,IAAI;IACjB,iBAAiB,IAAI;IACrB,eAAe,IAAI;IACnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,SAAS,IAAI;IACb,WAAW,IAAI;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,IAAI,EAAE,SAAS,CAAC;IAChC,SAAyB,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACnD,SAAgB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtC,SAAgB,WAAW,EAAE,OAAO,CAAC;gBAEzB,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB;CAQ3D;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,MAAM,CAAwB;WAEzB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ;WAwCpC,IAAI,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAOxD,OAAO,CAAC,MAAM,CAAC,YAAY;CAkC5B"}
|
package/dist/utils/file.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class FileUtils {
|
|
2
|
-
static exists(filePath: string): Promise<boolean>;
|
|
3
|
-
static ensureDir(dirPath: string): Promise<void>;
|
|
4
|
-
static copyFile(src: string, dest: string): Promise<void>;
|
|
5
|
-
static removeFile(filePath: string): Promise<void>;
|
|
6
|
-
static readJson<T>(filePath: string): T | null;
|
|
7
|
-
static writeJson(filePath: string, data: any): Promise<void>;
|
|
8
|
-
static writeFile(filePath: string, content: string): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=file.d.ts.map
|
package/dist/utils/file.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;WAEP,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;WAS1C,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAIzC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAIlD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;WAIjC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;WAIrD,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.package.dir.d.ts","sourceRoot":"","sources":["../../src/utils/find.package.dir.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,WAe9B"}
|
package/dist/utils/logger.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class Logger {
|
|
2
|
-
private static instance;
|
|
3
|
-
private logger;
|
|
4
|
-
private logPath;
|
|
5
|
-
private constructor();
|
|
6
|
-
printLogLocation(): void;
|
|
7
|
-
static getInstance(): Logger;
|
|
8
|
-
private setupLogging;
|
|
9
|
-
info(message: string, ...args: unknown[]): void;
|
|
10
|
-
debug(message: string, ...args: unknown[]): void;
|
|
11
|
-
warn(message: string, ...args: unknown[]): void;
|
|
12
|
-
error(message: string, ...args: unknown[]): void;
|
|
13
|
-
flush(): void;
|
|
14
|
-
getLogPath(): string;
|
|
15
|
-
setVerbose(verbose: boolean): void;
|
|
16
|
-
shutdown(): void;
|
|
17
|
-
static reset(): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAQA,qBAAa,MAAM;IAEjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAChC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO;IAKA,gBAAgB;WAIT,WAAW,IAAI,MAAM;IAOnC,OAAO,CAAC,YAAY;IA2Fb,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,KAAK,IAAI,IAAI;IAMb,UAAU,IAAI,MAAM;IAIpB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAQlC,QAAQ,IAAI,IAAI;WAIT,KAAK,IAAI,IAAI;CAM5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nextSteps.d.ts","sourceRoot":"","sources":["../../src/utils/nextSteps.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,QAGjD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class PackageJSONHelper {
|
|
2
|
-
private static packageJsonPath;
|
|
3
|
-
/** Returns the package.json of the CLI */
|
|
4
|
-
static getCliPackageJson(): any;
|
|
5
|
-
/** Returns the package.json of the project that runs the CLI. Sometimes this might be undefined if we use npx */
|
|
6
|
-
static getPackageJson(): {
|
|
7
|
-
version: string;
|
|
8
|
-
dependencies: any;
|
|
9
|
-
devDependencies: any;
|
|
10
|
-
peerDependencies: any;
|
|
11
|
-
} | undefined;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=pacakge.json.helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pacakge.json.helper.d.ts","sourceRoot":"","sources":["../../src/utils/pacakge.json.helper.ts"],"names":[],"mappings":"AAKA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,eAAe,CAAgC;IAE9D,0CAA0C;IAC1C,MAAM,CAAC,iBAAiB,IAAI,GAAG;IAQ/B,iHAAiH;IACjH,MAAM,CAAC,cAAc,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,GAAG,CAAC;QAAC,eAAe,EAAE,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAA;KAAE,GAAG,SAAS;CAUzH"}
|
package/dist/utils/path.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class PathUtils {
|
|
2
|
-
/** Returns the root directory path of the project (not the cli) */
|
|
3
|
-
static getRootDir(): string;
|
|
4
|
-
static getComponentsDir(): string;
|
|
5
|
-
static getModificationsDir(): string;
|
|
6
|
-
static getDistDir(): string;
|
|
7
|
-
static getConfigDir(): string;
|
|
8
|
-
static getComponentDir(componentName: "iocd" | "bbg3" | "_temp"): string;
|
|
9
|
-
static getModificationDir(componentName: string): string;
|
|
10
|
-
/** On iocd root dir. Note that on mac os this is Contents inside the app bundle (and not the app bundle itself) */
|
|
11
|
-
static getIOCDDir(): string;
|
|
12
|
-
static getIOCDResourcesDir(): string;
|
|
13
|
-
static getIOCDAssetsDir(): string;
|
|
14
|
-
static getIOCDConfigDir(): string;
|
|
15
|
-
static getIOCDExePath(): string;
|
|
16
|
-
/** MacOS only - gets the path to the .app bundle */
|
|
17
|
-
static getIOCDAppBundlePath(): string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=path.d.ts.map
|
package/dist/utils/path.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAElB,mEAAmE;IACnE,MAAM,CAAC,UAAU,IAAI,MAAM;IAI3B,MAAM,CAAC,gBAAgB,IAAI,MAAM;IAIjC,MAAM,CAAC,mBAAmB,IAAI,MAAM;IAIpC,MAAM,CAAC,UAAU,IAAI,MAAM;IAI3B,MAAM,CAAC,YAAY,IAAI,MAAM;IAI7B,MAAM,CAAC,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM;IAIxE,MAAM,CAAC,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAIxD,mHAAmH;IACnH,MAAM,CAAC,UAAU,IAAI,MAAM;IAQ3B,MAAM,CAAC,mBAAmB,IAAI,MAAM;IAapC,MAAM,CAAC,gBAAgB;IAIvB,MAAM,CAAC,gBAAgB;IAIvB,MAAM,CAAC,cAAc;IAYrB,oDAAoD;IACpD,MAAM,CAAC,oBAAoB;CAM9B"}
|
package/dist/utils/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,UAW5D"}
|
|
File without changes
|
/package/dist/templates/ioconnect-desktop/{iocd.cli.config.json → config/iocd.cli.config.json}
RENAMED
|
File without changes
|