@sap-ux/adp-tooling 0.10.4 → 0.10.6
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.
|
@@ -56,10 +56,6 @@ function addXmlFragment(basePath, change, fs, logger) {
|
|
|
56
56
|
const { fragmentPath } = change.content;
|
|
57
57
|
const fullPath = (0, path_1.join)(basePath, project_access_1.DirName.Changes, fragmentPath);
|
|
58
58
|
try {
|
|
59
|
-
if (fs.exists(fullPath)) {
|
|
60
|
-
logger.info(`XML Fragment "${fragmentPath}" already exists.`);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
59
|
const fragmentTemplatePath = (0, path_1.join)(__dirname, '../../templates/rta', "fragment.xml" /* TemplateFileName.Fragment */);
|
|
64
60
|
fs.copy(fragmentTemplatePath, fullPath);
|
|
65
61
|
logger.info(`XML Fragment "${fragmentPath}" was created`);
|
package/dist/writer/index.js
CHANGED
|
@@ -92,9 +92,15 @@ function migrate(basePath, config, fs) {
|
|
|
92
92
|
fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
|
|
93
93
|
}
|
|
94
94
|
const fullConfig = setDefaults(config);
|
|
95
|
-
//
|
|
96
|
-
fs.copyTpl((0, path_1.join)(tmplPath, '
|
|
97
|
-
globOptions: { dot: true
|
|
95
|
+
// Copy the specified files to target project
|
|
96
|
+
fs.copyTpl((0, path_1.join)(tmplPath, '**/ui5.yaml'), (0, path_1.join)(basePath), fullConfig, undefined, {
|
|
97
|
+
globOptions: { dot: true }
|
|
98
|
+
});
|
|
99
|
+
fs.copyTpl((0, path_1.join)(tmplPath, '**/package.json'), (0, path_1.join)(basePath), fullConfig, undefined, {
|
|
100
|
+
globOptions: { dot: true }
|
|
101
|
+
});
|
|
102
|
+
fs.copyTpl((0, path_1.join)(tmplPath, '**/gitignore.tmpl'), (0, path_1.join)(basePath), fullConfig, undefined, {
|
|
103
|
+
globOptions: { dot: true },
|
|
98
104
|
processDestinationPath: (filePath) => filePath.replace(/gitignore.tmpl/g, '.gitignore')
|
|
99
105
|
});
|
|
100
106
|
// delete .che folder
|
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.10.
|
|
12
|
+
"version": "0.10.6",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|