@sap-ux/adp-tooling 0.15.18 → 0.15.19
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/dist/types.d.ts +4 -0
- package/dist/writer/index.js +2 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -90,6 +90,10 @@ export interface AdpWriterConfig {
|
|
|
90
90
|
* Optional: if set to true then the generated project will support typescript
|
|
91
91
|
*/
|
|
92
92
|
enableTypeScript?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Optional: path to the template files to be used for generation
|
|
95
|
+
*/
|
|
96
|
+
templatePathOverwrite?: string;
|
|
93
97
|
};
|
|
94
98
|
}
|
|
95
99
|
/**
|
package/dist/writer/index.js
CHANGED
|
@@ -57,8 +57,9 @@ async function generate(basePath, config, fs) {
|
|
|
57
57
|
fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
|
|
58
58
|
}
|
|
59
59
|
const fullConfig = setDefaults(config);
|
|
60
|
+
const templatePath = config.options?.templatePathOverwrite ?? baseTmplPath;
|
|
60
61
|
(0, i18n_1.writeI18nModels)(basePath, fullConfig.app.i18nModels, fs);
|
|
61
|
-
(0, project_utils_1.writeTemplateToFolder)(
|
|
62
|
+
(0, project_utils_1.writeTemplateToFolder)(templatePath, (0, path_1.join)(basePath), fullConfig, fs);
|
|
62
63
|
await (0, project_utils_1.writeUI5DeployYaml)(basePath, fullConfig, fs);
|
|
63
64
|
await (0, project_utils_1.writeUI5Yaml)(basePath, fullConfig, fs);
|
|
64
65
|
return fs;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.15.
|
|
12
|
+
"version": "0.15.19",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|