@squiz/dxp-cli-next 2.12.1 → 2.13.0-develop.1

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/lib/cmp/deploy.js CHANGED
@@ -18,12 +18,15 @@ const cli_color_1 = __importDefault(require("cli-color"));
18
18
  const deployCommand = new commander_1.Command()
19
19
  .name('deploy')
20
20
  .argument('<source>', 'folder/file path containing the template files to deploy')
21
- .addOption(new commander_1.Option('-url, --component-service-url <string>', 'Required: Url for the component service')
21
+ .addOption(new commander_1.Option('-cu, --component-service-url <string>', 'Required: Url for the component service')
22
22
  .env('COMPONENT_SERVICE_URL')
23
23
  .makeOptionMandatory(true))
24
+ .addOption(new commander_1.Option('-ru, --render-runtime-url <string>', 'Required: Url for the render runtime service')
25
+ .env('COMPONENT_RENDER_SERVICE_URL')
26
+ .makeOptionMandatory(true))
24
27
  .action((source, options, self) => __awaiter(void 0, void 0, void 0, function* () {
25
28
  try {
26
- return yield (0, component_cli_lib_1.uploadComponentFolder)(source, options.componentServiceUrl);
29
+ return yield (0, component_cli_lib_1.uploadComponentFolder)(source, options.componentServiceUrl, options.renderRuntimeUrl);
27
30
  }
28
31
  catch (error) {
29
32
  if (error.message) {
@@ -34,6 +34,7 @@ The logs are currently \`bunyan\` formatted and should be piped into the bunyan
34
34
  }
35
35
  return parsedPort;
36
36
  }))
37
+ .addOption(new commander_1.Option('-pf, --preview-file <number>', 'Filename to preview the component output').default('preview.html'))
37
38
  .action((source, options) => __awaiter(void 0, void 0, void 0, function* () {
38
39
  yield (0, component_cli_lib_1.startDevelopmentRender)(source, options);
39
40
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "2.12.1",
3
+ "version": "2.13.0-develop.1",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
6
6
  },
@@ -39,7 +39,7 @@
39
39
  "codecov"
40
40
  ],
41
41
  "dependencies": {
42
- "@squiz/component-cli-lib": "1.2.1-alpha.83",
42
+ "@squiz/component-cli-lib": "1.2.1-alpha.91",
43
43
  "@squiz/deployment-service-lib": "1.1.5-alpha.84",
44
44
  "cli-color": "2.0.3",
45
45
  "commander": "9.4.0",