diff --git a/test/expected/build/application.a/dest-deps-excl/index.html b/test/expected/build/application.a/dest-deps-excl/index.html
new file mode 100644
index 000000000..1523b1dc3
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/index.html
@@ -0,0 +1,11 @@
+
+
+
+ Application A
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/a/.library b/test/expected/build/application.a/dest-deps-excl/resources/library/a/.library
new file mode 100644
index 000000000..cddfadd9a
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/a/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.a
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library A
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-RTL.css b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-RTL.css
new file mode 100644
index 000000000..5398b3f08
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-RTL.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 4px 3px 2px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-parameters.json b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-parameters.json
new file mode 100644
index 000000000..da3b7a52f
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library-parameters.json
@@ -0,0 +1 @@
+{"libraryAColor1":"#fafad2"}
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.css b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.css
new file mode 100644
index 000000000..ba056b3c0
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 2px 3px 4px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.source.less b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.source.less
new file mode 100644
index 000000000..ff0f1d5e3
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/a/themes/base/library.source.less
@@ -0,0 +1,6 @@
+@libraryAColor1: lightgoldenrodyellow;
+
+.library-a-foo {
+ color: @libraryAColor1;
+ padding: 1px 2px 3px 4px;
+}
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/b/.library b/test/expected/build/application.a/dest-deps-excl/resources/library/b/.library
new file mode 100644
index 000000000..8cfb124a9
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/b/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.b
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library B
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps-excl/resources/library/c/.library b/test/expected/build/application.a/dest-deps-excl/resources/library/c/.library
new file mode 100644
index 000000000..3c011ecd6
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/resources/library/c/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.c
+ SAP SE
+ ${copyright}
+ 1.0.0
+
+ Library C
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps-excl/test-dbg.js b/test/expected/build/application.a/dest-deps-excl/test-dbg.js
new file mode 100644
index 000000000..cb4595405
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/test-dbg.js
@@ -0,0 +1,9 @@
+sap.ui.define([
+ "library/d/some"
+], function(someObject) {
+ function test(paramA) {
+ var variableA = paramA;
+ console.log(variableA);
+ }
+ test();
+});
diff --git a/test/expected/build/application.a/dest-deps-excl/test-resources/LibraryC/Test.html b/test/expected/build/application.a/dest-deps-excl/test-resources/LibraryC/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-deps-excl/test-resources/library/a/Test.html b/test/expected/build/application.a/dest-deps-excl/test-resources/library/a/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-deps-excl/test-resources/library/b/Test.html b/test/expected/build/application.a/dest-deps-excl/test-resources/library/b/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-deps-excl/test.js b/test/expected/build/application.a/dest-deps-excl/test.js
new file mode 100644
index 000000000..fd8278c6e
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps-excl/test.js
@@ -0,0 +1 @@
+sap.ui.define(["library/d/some"],function(n){function o(n){var o=n;console.log(o)}o()});
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-deps/resources/library/a/.library b/test/expected/build/application.a/dest-deps/resources/library/a/.library
new file mode 100644
index 000000000..cddfadd9a
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/a/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.a
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library A
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-RTL.css b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-RTL.css
new file mode 100644
index 000000000..5398b3f08
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-RTL.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 4px 3px 2px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-parameters.json b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-parameters.json
new file mode 100644
index 000000000..da3b7a52f
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library-parameters.json
@@ -0,0 +1 @@
+{"libraryAColor1":"#fafad2"}
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.css b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.css
new file mode 100644
index 000000000..ba056b3c0
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 2px 3px 4px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.source.less b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.source.less
new file mode 100644
index 000000000..ff0f1d5e3
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/a/themes/base/library.source.less
@@ -0,0 +1,6 @@
+@libraryAColor1: lightgoldenrodyellow;
+
+.library-a-foo {
+ color: @libraryAColor1;
+ padding: 1px 2px 3px 4px;
+}
diff --git a/test/expected/build/application.a/dest-deps/resources/library/b/.library b/test/expected/build/application.a/dest-deps/resources/library/b/.library
new file mode 100644
index 000000000..8cfb124a9
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/b/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.b
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library B
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps/resources/library/c/.library b/test/expected/build/application.a/dest-deps/resources/library/c/.library
new file mode 100644
index 000000000..3c011ecd6
--- /dev/null
+++ b/test/expected/build/application.a/dest-deps/resources/library/c/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.c
+ SAP SE
+ ${copyright}
+ 1.0.0
+
+ Library C
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-deps/resources/library/d/manifest.json b/test/expected/build/application.a/dest-deps/resources/library/d/manifest.json
deleted file mode 100644
index 4ad3d1aef..000000000
--- a/test/expected/build/application.a/dest-deps/resources/library/d/manifest.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "_version": "1.9.0",
- "sap.app": {
- "id": "library.d",
- "type": "library",
- "embeds": [],
- "applicationVersion": {
- "version": "1.0.0"
- },
- "title": "Library D",
- "description": "Library D",
- "resources": "resources.json",
- "offline": true
- },
- "sap.ui": {
- "technology": "UI5",
- "supportedThemes": []
- },
- "sap.ui5": {
- "dependencies": {
- "minUI5Version": "1.0",
- "libs": {}
- },
- "library": {
- "i18n": false
- }
- }
-}
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-deps/test-resources/LibraryC/Test.html b/test/expected/build/application.a/dest-deps/test-resources/LibraryC/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-deps/test-resources/library/a/Test.html b/test/expected/build/application.a/dest-deps/test-resources/library/a/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-deps/test-resources/library/b/Test.html b/test/expected/build/application.a/dest-deps/test-resources/library/b/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-depself/resources/library/a/.library b/test/expected/build/application.a/dest-depself/resources/library/a/.library
new file mode 100644
index 000000000..cddfadd9a
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/a/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.a
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library A
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-RTL.css b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-RTL.css
new file mode 100644
index 000000000..5398b3f08
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-RTL.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 4px 3px 2px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-parameters.json b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-parameters.json
new file mode 100644
index 000000000..da3b7a52f
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library-parameters.json
@@ -0,0 +1 @@
+{"libraryAColor1":"#fafad2"}
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.css b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.css
new file mode 100644
index 000000000..ba056b3c0
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.css
@@ -0,0 +1,3 @@
+.library-a-foo{color:#fafad2;padding:1px 2px 3px 4px}
+/* Inline theming parameters */
+#sap-ui-theme-library\.a{background-image:url('data:text/plain;utf-8,%7B%22libraryAColor1%22%3A%22%23fafad2%22%7D')}
diff --git a/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.source.less b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.source.less
new file mode 100644
index 000000000..ff0f1d5e3
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/a/themes/base/library.source.less
@@ -0,0 +1,6 @@
+@libraryAColor1: lightgoldenrodyellow;
+
+.library-a-foo {
+ color: @libraryAColor1;
+ padding: 1px 2px 3px 4px;
+}
diff --git a/test/expected/build/application.a/dest-depself/resources/library/b/.library b/test/expected/build/application.a/dest-depself/resources/library/b/.library
new file mode 100644
index 000000000..8cfb124a9
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/b/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.b
+ SAP SE
+ Some fancy copyright ${currentYear}
+ 1.0.0
+
+ Library B
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-depself/resources/library/c/.library b/test/expected/build/application.a/dest-depself/resources/library/c/.library
new file mode 100644
index 000000000..3c011ecd6
--- /dev/null
+++ b/test/expected/build/application.a/dest-depself/resources/library/c/.library
@@ -0,0 +1,17 @@
+
+
+
+ library.c
+ SAP SE
+ ${copyright}
+ 1.0.0
+
+ Library C
+
+
+
+ library.d
+
+
+
+
diff --git a/test/expected/build/application.a/dest-depself/resources/library/d/manifest.json b/test/expected/build/application.a/dest-depself/resources/library/d/manifest.json
deleted file mode 100644
index 4ad3d1aef..000000000
--- a/test/expected/build/application.a/dest-depself/resources/library/d/manifest.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "_version": "1.9.0",
- "sap.app": {
- "id": "library.d",
- "type": "library",
- "embeds": [],
- "applicationVersion": {
- "version": "1.0.0"
- },
- "title": "Library D",
- "description": "Library D",
- "resources": "resources.json",
- "offline": true
- },
- "sap.ui": {
- "technology": "UI5",
- "supportedThemes": []
- },
- "sap.ui5": {
- "dependencies": {
- "minUI5Version": "1.0",
- "libs": {}
- },
- "library": {
- "i18n": false
- }
- }
-}
\ No newline at end of file
diff --git a/test/expected/build/application.a/dest-depself/test-resources/LibraryC/Test.html b/test/expected/build/application.a/dest-depself/test-resources/LibraryC/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-depself/test-resources/library/a/Test.html b/test/expected/build/application.a/dest-depself/test-resources/library/a/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/expected/build/application.a/dest-depself/test-resources/library/b/Test.html b/test/expected/build/application.a/dest-depself/test-resources/library/b/Test.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/lib/builder/builder.js b/test/lib/builder/builder.js
index 55f9754a6..8b1bcf5d4 100644
--- a/test/lib/builder/builder.js
+++ b/test/lib/builder/builder.js
@@ -16,6 +16,7 @@ const applicationGPath = path.join(__dirname, "..", "..", "fixtures", "applicati
const applicationHPath = path.join(__dirname, "..", "..", "fixtures", "application.h");
const applicationIPath = path.join(__dirname, "..", "..", "fixtures", "application.i");
const applicationJPath = path.join(__dirname, "..", "..", "fixtures", "application.j");
+const collectionPath = path.join(__dirname, "..", "..", "fixtures", "collection");
const libraryDPath = path.join(__dirname, "..", "..", "fixtures", "library.d");
const libraryEPath = path.join(__dirname, "..", "..", "fixtures", "library.e");
const libraryHPath = path.join(__dirname, "..", "..", "fixtures", "library.h");
@@ -115,7 +116,7 @@ test("Build application.a with dependencies", (t) => {
return builder.build({
tree: applicationATree,
destPath,
- excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters"],
+ excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters", "generateLibraryManifest"],
buildDependencies: true
}).then(() => {
return findFiles(expectedPath);
@@ -136,7 +137,7 @@ test("Build application.a with dependencies include", (t) => {
return builder.build({
tree: applicationATree,
destPath,
- excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters"],
+ excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters", "generateLibraryManifest"],
buildDependencies: true, includedDependencies: ["*"]
}).then(() => {
return findFiles(expectedPath);
@@ -152,12 +153,12 @@ test("Build application.a with dependencies include", (t) => {
test("Build application.a with dependencies exclude", (t) => {
const destPath = "./test/tmp/build/application.a/dest-deps-excl";
- const expectedPath = path.join("test", "expected", "build", "application.a", "dest");
+ const expectedPath = path.join("test", "expected", "build", "application.a", "dest-deps-excl");
return builder.build({
tree: applicationATree,
destPath,
- excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters"],
+ excludedTasks: ["generateComponentPreload", "generateStandaloneAppBundle", "generateVersionInfo", "generateLibraryPreload", "escapeNonAsciiCharacters", "generateLibraryManifest"],
buildDependencies: true, excludedDependencies: ["library.d"]
}).then(() => {
return findFiles(expectedPath);
@@ -199,7 +200,7 @@ test("Build application.a with dependencies self-contained", (t) => {
return builder.build({
tree: applicationATree,
destPath,
- excludedTasks: ["generateComponentPreload", "generateVersionInfo", "escapeNonAsciiCharacters"],
+ excludedTasks: ["generateComponentPreload", "generateVersionInfo", "escapeNonAsciiCharacters", "generateLibraryManifest"],
buildDependencies: true,
selfContained: true
}).then(() => {
@@ -630,7 +631,7 @@ const applicationATree = {
{
"id": "library.a",
"version": "1.0.0",
- "path": path.join(applicationAPath, "node_modules", "collection", "library.a"),
+ "path": path.join(collectionPath, "library.a"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
@@ -656,7 +657,7 @@ const applicationATree = {
{
"id": "library.b",
"version": "1.0.0",
- "path": path.join(applicationAPath, "node_modules", "collection", "library.b"),
+ "path": path.join(collectionPath, "library.b"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",
@@ -682,7 +683,7 @@ const applicationATree = {
{
"id": "library.c",
"version": "1.0.0",
- "path": path.join(applicationAPath, "node_modules", "collection", "library.c"),
+ "path": path.join(collectionPath, "library.c"),
"dependencies": [],
"_level": 1,
"specVersion": "0.1",