@interopio/iocd-cli 0.0.38 → 0.0.39
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 +22 -1
- package/dist/cli.js +0 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/setup.command.js +1 -7
- package/dist/commands/setup.command.js.map +1 -1
- package/dist/templates/ioconnect-desktop/README.md +22 -1
- package/dist/templates/ioconnect-desktop/package.json +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
- [Creating Custom Applications](#creating-custom-applications)
|
|
24
24
|
- [Managing Applications](#managing-applications)
|
|
25
25
|
- [Development](#development)
|
|
26
|
+
- [Installing or Updating components during development](#installing-or-updating-components-during-development)
|
|
26
27
|
- [Testing](#testing)
|
|
27
28
|
- [Running Tests](#running-tests)
|
|
28
29
|
- [Writing Tests](#writing-tests)
|
|
@@ -71,7 +72,7 @@ This seed project provides everything needed to build, test, and deploy your bra
|
|
|
71
72
|
### Creating Your Project
|
|
72
73
|
|
|
73
74
|
```bash
|
|
74
|
-
npx @interopio/iocd-cli create # Follow prompts to set up your project
|
|
75
|
+
npx @interopio/iocd-cli@latest create # Follow prompts to set up your project
|
|
75
76
|
```
|
|
76
77
|
|
|
77
78
|
### Installation
|
|
@@ -409,6 +410,26 @@ iocd dev
|
|
|
409
410
|
npm run dev
|
|
410
411
|
```
|
|
411
412
|
|
|
413
|
+
### Installing or Updating components during development
|
|
414
|
+
To install a component or update existing component while in development mode, use the following command:
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
# Update components
|
|
418
|
+
iocd components install <component-name>
|
|
419
|
+
|
|
420
|
+
# Or using npm script
|
|
421
|
+
npm run components-install <component-name>
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
This command will download and install the latest version of the specified component.
|
|
425
|
+
|
|
426
|
+
If you want to install a specific version, use:
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
iocd components install <component-name>@<version>
|
|
430
|
+
|
|
431
|
+
npm run components-install <component-name>@<version>
|
|
432
|
+
```
|
|
412
433
|
---
|
|
413
434
|
|
|
414
435
|
## Testing
|
package/dist/cli.js
CHANGED
|
@@ -84,7 +84,6 @@ program.addCommand(build_command_1.buildCommand);
|
|
|
84
84
|
program.addCommand(components_command_1.componentsCommand);
|
|
85
85
|
program.addCommand(apps_command_1.appsCommand);
|
|
86
86
|
program.addCommand(modifications_command_1.modificationsCommand);
|
|
87
|
-
program.addCommand(setup_command_1.initCommand);
|
|
88
87
|
program.addCommand(license_command_1.licenseCommand);
|
|
89
88
|
// global hook runs for all subcommands
|
|
90
89
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAE1D,yCAAoC;AACpC,2CAAwC;AACxC,yDAAqD;AACrD,8DAA0D;AAC1D,sEAAkE;AAClE,0DAAsD;AACtD,gEAA4D;AAC5D,4EAAwE;AACxE,4DAAwD;AACxD,wDAAoD;AACpD,0DAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAE1D,yCAAoC;AACpC,2CAAwC;AACxC,yDAAqD;AACrD,8DAA0D;AAC1D,sEAAkE;AAClE,0DAAsD;AACtD,gEAA4D;AAC5D,4E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AE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,MAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC3C,4BAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACpE,4BAAY,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,4BAAY,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;IAC3B,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.setupCommand =
|
|
39
|
+
exports.setupCommand = void 0;
|
|
40
40
|
const commander_1 = require("commander");
|
|
41
41
|
const logger_1 = require("../utils/logger");
|
|
42
42
|
const error_handler_1 = require("../utils/error.handler");
|
|
@@ -44,12 +44,6 @@ const components_service_1 = __importDefault(require("../services/components/com
|
|
|
44
44
|
const app_service_1 = __importDefault(require("../services/app.service"));
|
|
45
45
|
const clack = __importStar(require("@clack/prompts"));
|
|
46
46
|
const logger = logger_1.Logger.getInstance("setup.command");
|
|
47
|
-
exports.initCommand = new commander_1.Command('init')
|
|
48
|
-
.description('Initialize a new io.cd project in the current directory')
|
|
49
|
-
.action(() => {
|
|
50
|
-
logger.info('Init command called');
|
|
51
|
-
console.log('Initializing project - Phase 3 implementation required');
|
|
52
|
-
});
|
|
53
47
|
exports.setupCommand = new commander_1.Command('setup')
|
|
54
48
|
.description('Prepares the seed for first usage. This will install components, and install packages for all apps')
|
|
55
49
|
.action(async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.command.js","sourceRoot":"","sources":["../../src/commands/setup.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,4CAAyC;AACzC,0DAAsD;AACtD,mGAA0E;AAC1E,0EAAiD;AACjD,sDAAwC;
|
|
1
|
+
{"version":3,"file":"setup.command.js","sourceRoot":"","sources":["../../src/commands/setup.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,4CAAyC;AACzC,0DAAsD;AACtD,mGAA0E;AAC1E,0EAAiD;AACjD,sDAAwC;AAExC,MAAM,MAAM,GAAG,eAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;AAEtC,QAAA,YAAY,GAAG,IAAI,mBAAO,CAAC,OAAO,CAAC;KAC7C,WAAW,CAAC,oGAAoG,CAAC;KACjH,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QACtC,MAAM,iBAAiB,GAAG,4BAAiB,CAAC;QAE5C,2BAA2B;QAC3B,MAAM,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;QAE5C,iDAAiD;QACjD,MAAM,iBAAiB,CAAC,oBAAoB,EAAE,CAAC;QAE/C,gCAAgC;QAChC,MAAM,qBAAU,CAAC,cAAc,EAAE,CAAC;QAElC,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAC3C,kBAAkB;QAClB,KAAK,CAAC,IAAI,CACN,2DAA2D;YAC3D,sDAAsD,EACtD,YAAY,CACf,CAAA;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,4BAAY,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;IACtC,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
- [Creating Custom Applications](#creating-custom-applications)
|
|
24
24
|
- [Managing Applications](#managing-applications)
|
|
25
25
|
- [Development](#development)
|
|
26
|
+
- [Installing or Updating components during development](#installing-or-updating-components-during-development)
|
|
26
27
|
- [Testing](#testing)
|
|
27
28
|
- [Running Tests](#running-tests)
|
|
28
29
|
- [Writing Tests](#writing-tests)
|
|
@@ -71,7 +72,7 @@ This seed project provides everything needed to build, test, and deploy your bra
|
|
|
71
72
|
### Creating Your Project
|
|
72
73
|
|
|
73
74
|
```bash
|
|
74
|
-
npx @interopio/iocd-cli create # Follow prompts to set up your project
|
|
75
|
+
npx @interopio/iocd-cli@latest create # Follow prompts to set up your project
|
|
75
76
|
```
|
|
76
77
|
|
|
77
78
|
### Installation
|
|
@@ -409,6 +410,26 @@ iocd dev
|
|
|
409
410
|
npm run dev
|
|
410
411
|
```
|
|
411
412
|
|
|
413
|
+
### Installing or Updating components during development
|
|
414
|
+
To install a component or update existing component while in development mode, use the following command:
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
# Update components
|
|
418
|
+
iocd components install <component-name>
|
|
419
|
+
|
|
420
|
+
# Or using npm script
|
|
421
|
+
npm run components-install <component-name>
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
This command will download and install the latest version of the specified component.
|
|
425
|
+
|
|
426
|
+
If you want to install a specific version, use:
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
iocd components install <component-name>@<version>
|
|
430
|
+
|
|
431
|
+
npm run components-install <component-name>@<version>
|
|
432
|
+
```
|
|
412
433
|
---
|
|
413
434
|
|
|
414
435
|
## Testing
|