mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
cleanup actions
This commit is contained in:
parent
9f9f961efc
commit
a8289ee9bb
13
ci/app2bsp/package-lock.json
generated
13
ci/app2bsp/package-lock.json
generated
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"name": "fiori-launchpad-connector-onpremise",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "fiori-launchpad-connector-onpremise",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"name": "fiori-launchpad-connector-onpremise",
|
||||
"version": "1.0.0",
|
||||
"description": "Ein Projekt zum Kopieren von Dateien von source nach target21",
|
||||
"main": "run.js",
|
||||
"scripts": {
|
||||
"start": "node run.js"
|
||||
},
|
||||
"author": "Ihr Name",
|
||||
"license": "MIT",
|
||||
"dependencies": {}
|
||||
}
|
|
@ -1,89 +0,0 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const sourceDir = './app/webapp';
|
||||
const staticDir = './ci/app2bsp/static_files';
|
||||
const targetDir = './output';
|
||||
const prefix = 'z2ui5.wapa.';
|
||||
|
||||
function generateTargetFileName(sourcePath, baseDir) {
|
||||
const relativePath = path.relative(baseDir, sourcePath);
|
||||
const fileName = prefix + relativePath.replace(/\//g, '_-').replace(/\\/g, '_-').toLowerCase();
|
||||
return fileName;
|
||||
}
|
||||
|
||||
function copyFilesRecursively(source, target, baseDir, renameFiles = true) {
|
||||
fs.readdir(source, { withFileTypes: true }, (err, entries) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Lesen des Verzeichnisses:', err);
|
||||
return;
|
||||
}
|
||||
|
||||
entries.forEach(entry => {
|
||||
const sourcePath = path.join(source, entry.name);
|
||||
const targetFileName = renameFiles ? generateTargetFileName(sourcePath, baseDir) : entry.name;
|
||||
const targetPath = path.join(target, targetFileName);
|
||||
|
||||
if (entry.isDirectory()) {
|
||||
// Rekursiver Aufruf für Unterordner
|
||||
copyFilesRecursively(sourcePath, target, baseDir, renameFiles);
|
||||
} else if (entry.isFile()) {
|
||||
// Lese die Quelldatei
|
||||
fs.readFile(sourcePath, 'utf8', (err, data) => {
|
||||
if (err) {
|
||||
console.error(`Fehler beim Lesen der Quelldatei ${entry.name}:`, err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Erstelle den Zielordner, falls er nicht existiert
|
||||
fs.mkdir(path.dirname(targetPath), { recursive: true }, (err) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Erstellen des Zielordners:', err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Schreibe den Inhalt in die Zieldatei
|
||||
fs.writeFile(targetPath, data, 'utf8', (err) => {
|
||||
if (err) {
|
||||
console.error(`Fehler beim Schreiben der Zieldatei ${entry.name}:`, err);
|
||||
return;
|
||||
}
|
||||
console.log(`Datei ${entry.name} erfolgreich kopiert als ${targetFileName}.`);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function deleteFilesRecursively(directory) {
|
||||
if (fs.existsSync(directory)) {
|
||||
fs.readdirSync(directory).forEach((file) => {
|
||||
const curPath = path.join(directory, file);
|
||||
if (fs.lstatSync(curPath).isDirectory()) {
|
||||
deleteFilesRecursively(curPath);
|
||||
} else {
|
||||
fs.unlinkSync(curPath);
|
||||
}
|
||||
});
|
||||
fs.rmdirSync(directory);
|
||||
}
|
||||
}
|
||||
|
||||
// Lösche alle Dateien im Zielverzeichnis
|
||||
deleteFilesRecursively(targetDir);
|
||||
|
||||
// Erstelle das Zielverzeichnis, falls es nicht existiert
|
||||
fs.mkdir(targetDir, { recursive: true }, (err) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Erstellen des Zielverzeichnisses:', err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Starte den Kopiervorgang für den Quellordner
|
||||
copyFilesRecursively(sourceDir, targetDir, sourceDir);
|
||||
|
||||
// Starte den Kopiervorgang für den statischen Ordner ohne Umbenennung
|
||||
copyFilesRecursively(staticDir, targetDir, staticDir, false);
|
||||
});
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SMIM" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<URL>/SAP/BC/BSP/SAP/Z2UI5</URL>
|
||||
<FOLDER>X</FOLDER>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DEVC" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<DEVC>
|
||||
<CTEXT>abap2UI5</CTEXT>
|
||||
</DEVC>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SICF" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<URL>/sap/bc/ui5_ui5/sap/z2ui5/</URL>
|
||||
<ICFSERVICE>
|
||||
<ICF_NAME>Z2UI5</ICF_NAME>
|
||||
<ORIG_NAME>z2ui5</ORIG_NAME>
|
||||
</ICFSERVICE>
|
||||
<ICFDOCU>
|
||||
<ICF_NAME>Z2UI5</ICF_NAME>
|
||||
<ICF_LANGU>E</ICF_LANGU>
|
||||
<ICF_DOCU>test</ICF_DOCU>
|
||||
</ICFDOCU>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_SICF" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<URL>/sap/bc/bsp/sap/z2ui5/</URL>
|
||||
<ICFSERVICE>
|
||||
<ICF_NAME>Z2UI5</ICF_NAME>
|
||||
<ORIG_NAME>z2ui5</ORIG_NAME>
|
||||
</ICFSERVICE>
|
||||
<ICFDOCU>
|
||||
<ICF_NAME>Z2UI5</ICF_NAME>
|
||||
<ICF_LANGU>E</ICF_LANGU>
|
||||
<ICF_DOCU>test</ICF_DOCU>
|
||||
</ICFDOCU>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<UI5RepMapping version="1.0" xmlns="sap.ui5.tools.repository.mapping">
|
||||
<MappingEntries>
|
||||
|
||||
<MappingEntry
|
||||
path = "Component.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "Component.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "cc"
|
||||
is_folder = "X"
|
||||
internal_rep = ""
|
||||
internal_rep_path = "" />
|
||||
|
||||
<MappingEntry
|
||||
path = "cc/DebugTool.fragment.xml"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "cc/DebugTool.fragment.xml" />
|
||||
|
||||
<MappingEntry
|
||||
path = "cc/DebugTool.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "cc/DebugTool.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "cc/Server.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "cc/Server.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "controller"
|
||||
is_folder = "X"
|
||||
internal_rep = ""
|
||||
internal_rep_path = "" />
|
||||
|
||||
<MappingEntry
|
||||
path = "controller/App.controller.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "controller/App.controller.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "controller/View1.controller.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "controller/View1.controller.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "css"
|
||||
is_folder = "X"
|
||||
internal_rep = ""
|
||||
internal_rep_path = "" />
|
||||
|
||||
<MappingEntry
|
||||
path = "css/style.css"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "css/style.css" />
|
||||
|
||||
<MappingEntry
|
||||
path = "index.html"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "index.html" />
|
||||
|
||||
<MappingEntry
|
||||
path = "manifest.json"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "manifest.json" />
|
||||
|
||||
<MappingEntry
|
||||
path = "model"
|
||||
is_folder = "X"
|
||||
internal_rep = ""
|
||||
internal_rep_path = "" />
|
||||
|
||||
<MappingEntry
|
||||
path = "model/models.js"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "model/models.js" />
|
||||
|
||||
<MappingEntry
|
||||
path = "view"
|
||||
is_folder = "X"
|
||||
internal_rep = ""
|
||||
internal_rep_path = "" />
|
||||
|
||||
<MappingEntry
|
||||
path = "view/App.view.xml"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "view/App.view.xml" />
|
||||
|
||||
<MappingEntry
|
||||
path = "view/View1.view.xml"
|
||||
is_folder = ""
|
||||
internal_rep = "B"
|
||||
internal_rep_path = "view/View1.view.xml" />
|
||||
|
||||
</MappingEntries>
|
||||
</UI5RepMapping>
|
|
@ -1,162 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_WAPA" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<APPLCLAS>/UI5/CL_UI5_BSP_APPLICATION</APPLCLAS>
|
||||
<APPLEXT>Z2UI5</APPLEXT>
|
||||
<SECURITY>X</SECURITY>
|
||||
<ORIGLANG>E</ORIGLANG>
|
||||
<MODIFLANG>E</MODIFLANG>
|
||||
<TEXT>test</TEXT>
|
||||
</ATTRIBUTES>
|
||||
<PAGES>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CC/DEBUGTOOL.FRAGMENT.XML</PAGEKEY>
|
||||
<PAGENAME>cc/DebugTool.fragment.xml</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CC/DEBUGTOOL.JS</PAGEKEY>
|
||||
<PAGENAME>cc/DebugTool.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CC/SERVER.JS</PAGEKEY>
|
||||
<PAGENAME>cc/Server.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>COMPONENT.JS</PAGEKEY>
|
||||
<PAGENAME>Component.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CONTROLLER/APP.CONTROLLER.JS</PAGEKEY>
|
||||
<PAGENAME>controller/App.controller.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CONTROLLER/VIEW1.CONTROLLER.JS</PAGEKEY>
|
||||
<PAGENAME>controller/View1.controller.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>CSS/STYLE.CSS</PAGEKEY>
|
||||
<PAGENAME>css/style.css</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>INDEX.HTML</PAGEKEY>
|
||||
<PAGENAME>index.html</PAGENAME>
|
||||
<MIMETYPE>text/html</MIMETYPE>
|
||||
<IS_START_PAGE>X</IS_START_PAGE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>MANIFEST.JSON</PAGEKEY>
|
||||
<PAGENAME>manifest.json</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>MODEL/MODELS.JS</PAGEKEY>
|
||||
<PAGENAME>model/models.js</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>UI5REPOSITORYPATHMAPPING.XML</PAGEKEY>
|
||||
<PAGENAME>UI5RepositoryPathMapping.xml</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>VIEW/APP.VIEW.XML</PAGEKEY>
|
||||
<PAGENAME>view/App.view.xml</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
<item>
|
||||
<ATTRIBUTES>
|
||||
<APPLNAME>Z2UI5</APPLNAME>
|
||||
<PAGEKEY>VIEW/VIEW1.VIEW.XML</PAGEKEY>
|
||||
<PAGENAME>view/View1.view.xml</PAGENAME>
|
||||
<PAGETYPE>X</PAGETYPE>
|
||||
<LAYOUTLANGU>E</LAYOUTLANGU>
|
||||
<VERSION>A</VERSION>
|
||||
<LANGU>E</LANGU>
|
||||
</ATTRIBUTES>
|
||||
</item>
|
||||
</PAGES>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
Loading…
Reference in New Issue
Block a user