@squiz/dxp-cli-next 5.16.1-develop.1 → 5.17.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/dev-mode.js +8 -1
- package/package.json +2 -2
package/lib/cmp/dev-mode.js
CHANGED
|
@@ -38,13 +38,20 @@ The logs are currently \`bunyan\` formatted and should be piped into the bunyan
|
|
|
38
38
|
.choices(['human', 'json'])
|
|
39
39
|
.default('human'))
|
|
40
40
|
.addOption(new commander_1.Option('-nb, --no-browser', 'Disables launching browser when starting the server'))
|
|
41
|
+
.addOption(new commander_1.Option('-e, --edge-components', 'For developing components of type "edge"'))
|
|
41
42
|
.action((source, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
43
|
const input = {
|
|
43
44
|
port: options.port,
|
|
44
45
|
loggingFormat: options.loggingFormat,
|
|
45
46
|
noBrowser: !options.browser,
|
|
46
47
|
};
|
|
47
|
-
|
|
48
|
+
console.log(options);
|
|
49
|
+
if (options.edgeComponents) {
|
|
50
|
+
yield (0, component_cli_lib_1.startEdgeDevelopmentRender)(source, input);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
yield (0, component_cli_lib_1.startDevelopmentRender)(source, input);
|
|
54
|
+
}
|
|
48
55
|
}));
|
|
49
56
|
exports.buildDevModeCommand = buildDevModeCommand;
|
|
50
57
|
const devModeCommand = (0, exports.buildDevModeCommand)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/dxp-cli-next",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.0-develop.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://gitlab.squiz.net/dxp/dxp-cli-next"
|
|
6
6
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@apidevtools/swagger-parser": "10.1.0",
|
|
43
|
-
"@squiz/component-cli-lib": "1.
|
|
43
|
+
"@squiz/component-cli-lib": "1.67.0",
|
|
44
44
|
"@squiz/dxp-porter-shared": "0.4.0",
|
|
45
45
|
"axios": "1.1.3",
|
|
46
46
|
"cli-color": "2.0.3",
|