@ui5/task-adaptation 1.6.2 → 1.6.4-rc.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/CHANGELOG.md +42 -3
- package/dist/adapters/abapAdapter.d.ts +2 -4
- package/dist/adapters/abapAdapter.js +5 -16
- package/dist/adapters/adapter.d.ts +3 -1
- package/dist/adapters/adapter.js +15 -1
- package/dist/adapters/cfAdapter.js +3 -12
- package/dist/adapters/commands/command.d.ts +3 -8
- package/dist/adapters/commands/command.js +5 -7
- package/dist/adapters/commands/downloadAnnotationsCommand.d.ts +2 -4
- package/dist/adapters/commands/downloadAnnotationsCommand.js +2 -6
- package/dist/adapters/commands/xsAppJsonEnhanceRoutesCommand.js +5 -24
- package/dist/adapters/previewAdapter.d.ts +10 -2
- package/dist/adapters/previewAdapter.js +14 -1
- package/dist/annotations/abapAnnotationManager.d.ts +17 -0
- package/dist/{annotationManager.js → annotations/abapAnnotationManager.js} +12 -10
- package/dist/annotations/annotationManager.d.ts +3 -0
- package/dist/annotations/annotationManager.js +2 -0
- package/dist/annotations/localAnnotationManager.d.ts +4 -0
- package/dist/annotations/localAnnotationManager.js +7 -0
- package/dist/annotations/serviceRequestor.d.ts +3 -3
- package/dist/annotations/serviceRequestor.js +4 -4
- package/dist/bundle.js +119 -2
- package/dist/index.js +6 -7
- package/dist/landscapeConfiguration.d.ts +9 -0
- package/dist/landscapeConfiguration.js +65 -0
- package/dist/model/configuration.d.ts +2 -0
- package/dist/previewManager.d.ts +4 -3
- package/dist/previewManager.js +15 -15
- package/dist/repositories/{abapRepoManager.d.ts → abapRepository.d.ts} +5 -3
- package/dist/repositories/{abapRepoManager.js → abapRepository.js} +17 -4
- package/dist/repositories/html5Repository.d.ts +18 -0
- package/dist/repositories/{html5RepoManager.js → html5Repository.js} +58 -27
- package/dist/repositories/localRepository.d.ts +16 -0
- package/dist/repositories/localRepository.js +62 -0
- package/dist/repositories/repository.d.ts +8 -0
- package/dist/repositories/repository.js +2 -0
- package/dist/util/cf/xsAppJsonUtil.d.ts +2 -1
- package/dist/util/cf/xsAppJsonUtil.js +19 -0
- package/dist/util/commonUtil.d.ts +1 -0
- package/dist/util/commonUtil.js +3 -0
- package/dist/util/fsUtil.d.ts +2 -0
- package/dist/util/fsUtil.js +34 -0
- package/package.json +6 -3
- package/scripts/publish.ts +256 -0
- package/scripts/test-integration-prep.sh +4 -0
- package/dist/annotationManager.d.ts +0 -17
- package/dist/processors/abapProcessor.d.ts +0 -18
- package/dist/processors/abapProcessor.js +0 -43
- package/dist/processors/cfProcessor.d.ts +0 -14
- package/dist/processors/cfProcessor.js +0 -46
- package/dist/processors/previewProcessor.d.ts +0 -8
- package/dist/processors/previewProcessor.js +0 -11
- package/dist/processors/processor.d.ts +0 -10
- package/dist/processors/processor.js +0 -39
- package/dist/repositories/html5RepoManager.d.ts +0 -12
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import AbapProcessor from "./abapProcessor.js";
|
|
2
|
-
import AbapRepoManager from "../repositories/abapRepoManager.js";
|
|
3
|
-
import AnnotationManager from "../annotationManager.js";
|
|
4
|
-
import CFProcessor from "./cfProcessor.js";
|
|
5
|
-
import PreviewProcessor from "./previewProcessor.js";
|
|
6
|
-
export function determineProcessor(configuration) {
|
|
7
|
-
const abapRepoManager = new AbapRepoManager(configuration);
|
|
8
|
-
const annotationManager = new AnnotationManager(configuration, abapRepoManager);
|
|
9
|
-
const processors = [
|
|
10
|
-
new CFProcessor(configuration),
|
|
11
|
-
new AbapProcessor(configuration, abapRepoManager, annotationManager)
|
|
12
|
-
];
|
|
13
|
-
if (isPreviewMode()) {
|
|
14
|
-
const processor = new PreviewProcessor(configuration);
|
|
15
|
-
processor.validateConfiguration();
|
|
16
|
-
return processor;
|
|
17
|
-
}
|
|
18
|
-
let processor = processors.find(processor => processor.getConfigurationType() === configuration.type);
|
|
19
|
-
if (processor) {
|
|
20
|
-
processor.validateConfiguration();
|
|
21
|
-
return processor;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
for (const processor of processors) {
|
|
25
|
-
try {
|
|
26
|
-
processor.validateConfiguration();
|
|
27
|
-
return processor;
|
|
28
|
-
}
|
|
29
|
-
catch (_error) {
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
throw new Error("ui5.yaml configuration should correspond either ABAP or SAP BTP landscape");
|
|
35
|
-
}
|
|
36
|
-
function isPreviewMode() {
|
|
37
|
-
return process.env.ADP_BUILDER_MODE === "preview";
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=processor.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IConfiguration, IReuseLibInfo } from "./../model/types.js";
|
|
2
|
-
export default class HTML5RepoManager {
|
|
3
|
-
static getBaseAppFiles(configuration: IConfiguration): Promise<Map<string, string>>;
|
|
4
|
-
static getMetadata(configuration: IConfiguration): Promise<any>;
|
|
5
|
-
static getReuseLibFiles(configuration: IConfiguration, lib: IReuseLibInfo): Promise<Map<string, string>>;
|
|
6
|
-
private static getHtml5RepoInfo;
|
|
7
|
-
private static getHTML5Credentials;
|
|
8
|
-
private static getToken;
|
|
9
|
-
private static requestMetadata;
|
|
10
|
-
private static getAppZipEntries;
|
|
11
|
-
private static download;
|
|
12
|
-
}
|