-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Build DepCache files (*-h2-preload.js) for HTTP/2 support
- implement a new bundle section type 'depcache' in the lbt builder - ignore pseudo-dependencies 'require', 'module' and 'exports' in the dependency analyzer (so that they don't appear in the dependency cache) - add configuration in the library and component preload bundlers to create bundles with the new section types in parallel to the existing preload bundles (using an '-h2-preload' suffix) - configure fixture applications g,h,i,j and fixture libraries e,h,i,j to use evo bundle format by adding a dependency to the sap.ui.core substitute fixture (sap.ui.core-evo) - add the newly introduced h2-preload bundles to the set of expected files in all fixtures that are used with one of the module bundling tasks
- Loading branch information
1 parent
53908c8
commit 00ee973
Showing
30 changed files
with
365 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/expected/build/application.g/cachebuster/Component-h2-preload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ui5-bundle application/g/Component-h2-preload.js | ||
sap.ui.require.preload({ | ||
"application/g/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g","type":"application","applicationVersion":{"version":"1.0.0"},"embeds":["embedded"],"title":"{{title}}"},"customCopyrightString":"Some fancy copyright"}' | ||
}); | ||
sap.ui.loader.config({depCacheUI5:{ | ||
"application/g/Component.js": ["sap/ui/core/UIComponent.js"], | ||
"application/g/subcomponentA/Component.js": ["sap/ui/core/UIComponent.js"], | ||
"application/g/subcomponentB/Component.js": ["sap/ui/core/UIComponent.js"] | ||
}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/expected/build/application.g/dest/Component-h2-preload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ui5-bundle application/g/Component-h2-preload.js | ||
sap.ui.require.preload({ | ||
"application/g/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g","type":"application","applicationVersion":{"version":"1.0.0"},"embeds":["embedded"],"title":"{{title}}"},"customCopyrightString":"Some fancy copyright"}' | ||
}); | ||
sap.ui.loader.config({depCacheUI5:{ | ||
"application/g/Component.js": ["sap/ui/core/UIComponent.js"] | ||
}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
//@ui5-bundle application/g/Component-preload.js | ||
jQuery.sap.registerPreloadedModules({ | ||
"version":"2.0", | ||
"modules":{ | ||
sap.ui.require.preload({ | ||
"application/g/Component.js":function(){sap.ui.define(["sap/ui/core/UIComponent"],function(n){"use strict";return n.extend("application.g.Component",{metadata:{manifest:"json"}})}); | ||
}, | ||
"application/g/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g","type":"application","applicationVersion":{"version":"1.0.0"},"embeds":["embedded"],"title":"{{title}}"},"customCopyrightString":"Some fancy copyright"}' | ||
}}); | ||
}); |
7 changes: 7 additions & 0 deletions
7
test/expected/build/application.g/dest/subcomponentA/Component-h2-preload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ui5-bundle application/g/subcomponentA/Component-h2-preload.js | ||
sap.ui.require.preload({ | ||
"application/g/subcomponentA/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g.subcomponentA","type":"application","applicationVersion":{"version":"1.2.2"},"embeds":["embedded"],"title":"{{title}}"}}' | ||
}); | ||
sap.ui.loader.config({depCacheUI5:{ | ||
"application/g/subcomponentA/Component.js": ["sap/ui/core/UIComponent.js"] | ||
}}); |
6 changes: 2 additions & 4 deletions
6
test/expected/build/application.g/dest/subcomponentA/Component-preload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
//@ui5-bundle application/g/subcomponentA/Component-preload.js | ||
jQuery.sap.registerPreloadedModules({ | ||
"version":"2.0", | ||
"modules":{ | ||
sap.ui.require.preload({ | ||
"application/g/subcomponentA/Component.js":function(){sap.ui.define(["sap/ui/core/UIComponent"],function(n){"use strict";return n.extend("application.g.subcomponentA.Component",{metadata:{manifest:"json"}})}); | ||
}, | ||
"application/g/subcomponentA/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g.subcomponentA","type":"application","applicationVersion":{"version":"1.2.2"},"embeds":["embedded"],"title":"{{title}}"}}' | ||
}}); | ||
}); |
7 changes: 7 additions & 0 deletions
7
test/expected/build/application.g/dest/subcomponentB/Component-h2-preload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//@ui5-bundle application/g/subcomponentB/Component-h2-preload.js | ||
sap.ui.require.preload({ | ||
"application/g/subcomponentB/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"application.g.subcomponentB","type":"application","applicationVersion":{"version":"1.2.2"},"embeds":["embedded"],"title":"{{title}}"}}' | ||
}); | ||
sap.ui.loader.config({depCacheUI5:{ | ||
"application/g/subcomponentB/Component.js": ["sap/ui/core/UIComponent.js"] | ||
}}); |
Oops, something went wrong.