Skip to content

Commit

Permalink
[FEATURE] manifest.json: Auto-fill supportedLocales
Browse files Browse the repository at this point in the history
JIRA: CPOUI5FOUNDATION-296
  • Loading branch information
flovogt committed Dec 7, 2023
1 parent c1d54a3 commit 26f5676
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/build/definitions/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export default function({project, taskUtil, getTask}) {
}
});

tasks.set("transformManifest", {});

tasks.set("generateFlexChangesBundle", {});

const bundles = project.getBundles();
Expand Down
2 changes: 2 additions & 0 deletions lib/build/definitions/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export default function({project, taskUtil, getTask}) {

tasks.set("generateLibraryManifest", {});

tasks.set("transformManifest", {});

const bundles = project.getBundles();
const existingBundleDefinitionNames =
bundles.map(({bundleDefinition}) => bundleDefinition.name).filter(Boolean);
Expand Down
6 changes: 6 additions & 0 deletions test/lib/build/TaskRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ test("_initTasks: Project of type 'application'", async (t) => {
"replaceCopyright",
"replaceVersion",
"minify",
"transformManifest",
"generateFlexChangesBundle",
"generateComponentPreload",
"generateStandaloneAppBundle",
Expand Down Expand Up @@ -242,6 +243,7 @@ test("_initTasks: Project of type 'library'", async (t) => {
"executeJsdocSdkTransformation",
"minify",
"generateLibraryManifest",
"transformManifest",
"generateComponentPreload",
"generateLibraryPreload",
"generateBundle",
Expand Down Expand Up @@ -271,6 +273,7 @@ test("_initTasks: Project of type 'library' (framework project)", async (t) => {
"executeJsdocSdkTransformation",
"minify",
"generateLibraryManifest",
"transformManifest",
"generateComponentPreload",
"generateLibraryPreload",
"generateBundle",
Expand Down Expand Up @@ -354,6 +357,7 @@ test("_initTasks: Custom tasks", async (t) => {
"replaceVersion",
"minify",
"myTask",
"transformManifest",
"generateFlexChangesBundle",
"generateComponentPreload",
"generateStandaloneAppBundle",
Expand Down Expand Up @@ -493,6 +497,7 @@ test("_initTasks: Multiple custom tasks with same name", async (t) => {
"myTask--3",
"myTask",
"myTask--2",
"transformManifest",
"generateFlexChangesBundle",
"generateComponentPreload",
"generateStandaloneAppBundle",
Expand Down Expand Up @@ -1282,6 +1287,7 @@ test("Custom task attached to a disabled task", async (t) => {
"replaceCopyright",
"replaceVersion",
"minify",
"transformManifest",
"generateFlexChangesBundle",
"generateComponentPreload",
"myTask",
Expand Down
3 changes: 3 additions & 0 deletions test/lib/build/definitions/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test("Standard build", (t) => {
]
}
},
transformManifest: {},
generateFlexChangesBundle: {},
generateComponentPreload: {
options: {
Expand Down Expand Up @@ -150,6 +151,7 @@ test("Standard build with legacy spec version", (t) => {
]
}
},
transformManifest: {},
generateFlexChangesBundle: {},
generateComponentPreload: {
options: {
Expand Down Expand Up @@ -258,6 +260,7 @@ test("Custom bundles", async (t) => {
]
}
},
transformManifest: {},
generateFlexChangesBundle: {},
generateComponentPreload: {
options: {
Expand Down
4 changes: 4 additions & 0 deletions test/lib/build/definitions/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ test("Standard build", async (t) => {
}
},
generateLibraryManifest: {},
transformManifest: {},
generateLibraryPreload: {
options: {
excludes: [], skipBundles: []
Expand Down Expand Up @@ -235,6 +236,7 @@ test("Standard build with legacy spec version", (t) => {
}
},
generateLibraryManifest: {},
transformManifest: {},
generateLibraryPreload: {
options: {
excludes: [], skipBundles: []
Expand Down Expand Up @@ -356,6 +358,7 @@ test("Custom bundles", async (t) => {
}
},
generateLibraryManifest: {},
transformManifest: {},
generateLibraryPreload: {
options: {
excludes: [],
Expand Down Expand Up @@ -683,6 +686,7 @@ test("Standard build: nulled taskFunction to skip tasks", (t) => {
}
},
generateLibraryManifest: {},
transformManifest: {},
generateLibraryPreload: {
options: {
excludes: [], skipBundles: []
Expand Down

0 comments on commit 26f5676

Please sign in to comment.