This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from SAP/exclude-dest-file
Always exclude corresponding preload files
- Loading branch information
Showing
14 changed files
with
186 additions
and
2 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
9 changes: 9 additions & 0 deletions
9
test/preload/fixtures/app-same-dest/my/app/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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jQuery.sap.registerPreloadedModules({ | ||
"version": "2.0", | ||
"name": "my/app/Component-preload", | ||
"modules": { | ||
"my/app/Component.js": "/* © */\n\"use strict\";function myFunction(n,o){return n+o}/**\n* This is a copyright comment\n*/\n/* (c) */\n/* released under */\n/* license */\nconsole.log(\"myJS\");", | ||
"my/app/view/my.view.xml": "<my>XML</my>\n", | ||
"my/app/view/myHtmlPre.view.xml": "<my>XML</my>\n<!-- A comment in XML is the same as in HTML -->\n<html:pre> </html:pre>" | ||
} | ||
}); |
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,22 @@ | ||
/* © */ | ||
'use strict'; | ||
|
||
/** | ||
* This is a copyright comment | ||
*/ | ||
|
||
/* (c) */ | ||
|
||
/* released under */ | ||
/* normal comment */ | ||
/* license */ | ||
|
||
|
||
console.log('myJS'); | ||
|
||
/** | ||
* This is a little comment | ||
*/ | ||
function myFunction(longVariableName, longerVariableName) { | ||
return longVariableName + longerVariableName; | ||
} |
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,2 @@ | ||
<my>XML</my> | ||
<!-- A comment in XML is the same as in HTML --> |
3 changes: 3 additions & 0 deletions
3
test/preload/fixtures/app-same-dest/my/app/view/myHtmlPre.view.xml
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,3 @@ | ||
<my>XML</my> | ||
<!-- A comment in XML is the same as in HTML --> | ||
<html:pre> </html:pre> |
1 change: 1 addition & 0 deletions
1
test/preload/fixtures/library-same-dest/my/ui/lib/foo.properties
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 @@ | ||
FOO=BAR |
11 changes: 11 additions & 0 deletions
11
test/preload/fixtures/library-same-dest/my/ui/lib/library-preload.json
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,11 @@ | ||
{ | ||
"version": "2.0", | ||
"name": "my.ui.lib.library-preload", | ||
"modules": { | ||
"my/ui/lib/library.js": "jQuery.sap.require(\"sap.ui.core.library\"),jQuery.sap.declare(\"my.ui.lib.library\"),sap.ui.getCore().initLibrary({name:\"my.ui.lib\",version:\"0.0.0\",dependencies:[\"sap.ui.core\"]});", | ||
"my/ui/lib/myJS.js": "/* © */\n\"use strict\";function myFunction(n,o){return n+o}/**\n* This is a copyright comment\n*/\n/* (c) */\n/* released under */\n/* license */\nconsole.log(\"myJS\");", | ||
"my/ui/lib/my.view.xml": "<my>XML</my>\n", | ||
"my/ui/lib/myHtmlPre.view.xml": "<my>XML</my>\n<!-- A comment in XML is the same as in HTML -->\n<html:pre> </html:pre>", | ||
"my/ui/lib/foo.properties": "FOO=BAR\n" | ||
} | ||
} |
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,8 @@ | ||
jQuery.sap.require("sap.ui.core.library"); | ||
jQuery.sap.declare("my.ui.lib.library"); | ||
|
||
sap.ui.getCore().initLibrary({ | ||
name : "my.ui.lib", | ||
version: "0.0.0", | ||
dependencies : ["sap.ui.core"] | ||
}); |
2 changes: 2 additions & 0 deletions
2
test/preload/fixtures/library-same-dest/my/ui/lib/my.view.xml
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,2 @@ | ||
<my>XML</my> | ||
<!-- A comment in XML is the same as in HTML --> |
3 changes: 3 additions & 0 deletions
3
test/preload/fixtures/library-same-dest/my/ui/lib/myHtmlPre.view.xml
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,3 @@ | ||
<my>XML</my> | ||
<!-- A comment in XML is the same as in HTML --> | ||
<html:pre> </html:pre> |
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,22 @@ | ||
/* © */ | ||
'use strict'; | ||
|
||
/** | ||
* This is a copyright comment | ||
*/ | ||
|
||
/* (c) */ | ||
|
||
/* released under */ | ||
/* normal comment */ | ||
/* license */ | ||
|
||
|
||
console.log('myJS'); | ||
|
||
/** | ||
* This is a little comment | ||
*/ | ||
function myFunction(longVariableName, longerVariableName) { | ||
return longVariableName + longerVariableName; | ||
} |
3 changes: 3 additions & 0 deletions
3
test/preload/fixtures/library-same-dest/my/ui/lib/myJSON.json
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,3 @@ | ||
{ | ||
"my": "json" | ||
} |
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