@squiz/dxp-cli-next 5.16.1-develop.2 → 5.17.0-develop.2
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
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)();
|
|
@@ -105,7 +105,7 @@ const createAddProjectCommand = () => {
|
|
|
105
105
|
const templateDedupeConfigExample = path_1.default.join(stageConfigDir, dxp_porter_shared_1.Stage.templateDedupe, 'config.json.example');
|
|
106
106
|
yield promises_1.default.writeFile(templateDedupeConfigExample, `{
|
|
107
107
|
"sensitivity": INT,
|
|
108
|
-
"run":
|
|
108
|
+
"run": true,
|
|
109
109
|
}`);
|
|
110
110
|
(0, utils_1.logDebug)(`File created successfully at ${templateDedupeConfigExample}`);
|
|
111
111
|
// Default example configs for other stages
|