-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Support build minification excludes (#653)
Supports the build configuration "minification excludes" introduced in specVersion 2.6. This allows to exclude JavaScript resources from minification (tasks: uglify and createDebugFiles). JIRA: CPOUI5FOUNDATION-405
- Loading branch information
1 parent
b4d7763
commit 0aa2301
Showing
41 changed files
with
390 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Application L</title> | ||
<script id="sap-ui-bootstrap" src="test.js"> | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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 @@ | ||
function hello(l){console.log("hello "+l)}hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/application.l/dest/subdir/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/application.l/dest/subdir/thirdparty/File1-dbg.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
1 change: 1 addition & 0 deletions
1
test/expected/build/application.l/dest/subdir/thirdparty/File1.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 @@ | ||
function hello(l){console.log("hello "+l)}hello("world"); |
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 @@ | ||
sap.ui.define([], function() { | ||
function test(paramA) { | ||
var variableA = paramA; | ||
console.log(variableA); | ||
} | ||
test(); | ||
}); |
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 @@ | ||
sap.ui.define([],function(){function n(n){var o=n;console.log(o)}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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
11 changes: 11 additions & 0 deletions
11
test/expected/build/library.l/dest/resources/library/l/.library
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 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<library xmlns="http://www.sap.com/sap.ui.library.xsd" > | ||
|
||
<name>library.l</name> | ||
<vendor>SAP SE</vendor> | ||
<copyright>Some fancy copyright</copyright> | ||
<version>1.0.0</version> | ||
|
||
<documentation>Library L</documentation> | ||
|
||
</library> |
16 changes: 16 additions & 0 deletions
16
test/expected/build/library.l/dest/resources/library/l/some-dbg.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,16 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/ | ||
|
||
sap.ui.define([], | ||
function() { | ||
"use strict"; | ||
|
||
/** | ||
* @alias library.l | ||
* @namespace | ||
* @public | ||
*/ | ||
var SomeFunction = function() {}; | ||
|
||
}, /* bExport= */ true); |
4 changes: 4 additions & 0 deletions
4
test/expected/build/library.l/dest/resources/library/l/some.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,4 @@ | ||
/*! | ||
* Some fancy copyright | ||
*/ | ||
sap.ui.define([],function(){"use strict";var i=function(){}},true); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/library.l/dest/resources/library/l/subdir/index-dbg.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
1 change: 1 addition & 0 deletions
1
test/expected/build/library.l/dest/resources/library/l/subdir/index.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 @@ | ||
function hello(l){console.log("hello "+l)}hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/library.l/dest/resources/library/l/subdir/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/library.l/dest/resources/library/l/subdir/thirdparty/File1-dbg.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
1 change: 1 addition & 0 deletions
1
test/expected/build/library.l/dest/resources/library/l/subdir/thirdparty/File1.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 @@ | ||
function hello(l){console.log("hello "+l)}hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/library.l/dest/resources/library/l/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/expected/build/library.l/dest/resources/library/l/thirdparty/File1.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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,10 @@ | ||
{ | ||
"name": "application.l", | ||
"version": "1.0.0", | ||
"description": "Simple SAPUI5 based application", | ||
"main": "index.html", | ||
"dependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
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 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Application L</title> | ||
<script id="sap-ui-bootstrap" src="test.js"> | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/application.l/webapp/subdir/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/application.l/webapp/subdir/thirdparty/File1.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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 @@ | ||
sap.ui.define([], function() { | ||
function test(paramA) { | ||
var variableA = paramA; | ||
console.log(variableA); | ||
} | ||
test(); | ||
}); |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<library xmlns="http://www.sap.com/sap.ui.library.xsd" > | ||
|
||
<name>library.l</name> | ||
<vendor>SAP SE</vendor> | ||
<copyright>${copyright}</copyright> | ||
<version>${version}</version> | ||
|
||
<documentation>Library L</documentation> | ||
|
||
</library> |
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,16 @@ | ||
/*! | ||
* ${copyright} | ||
*/ | ||
|
||
sap.ui.define([], | ||
function() { | ||
"use strict"; | ||
|
||
/** | ||
* @alias library.l | ||
* @namespace | ||
* @public | ||
*/ | ||
var SomeFunction = function() {}; | ||
|
||
}, /* bExport= */ true); |
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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/library.l/main/src/library/l/subdir/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/library.l/main/src/library/l/subdir/thirdparty/File1.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/library.l/main/src/library/l/thirdparty/File0.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
5 changes: 5 additions & 0 deletions
5
test/fixtures/library.l/main/src/library/l/thirdparty/File1.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,5 @@ | ||
// hello world | ||
function hello(name) { | ||
console.log("hello " + name); | ||
} | ||
hello("world"); |
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 @@ | ||
{ | ||
"name": "library.l", | ||
"version": "1.0.0", | ||
"description": "Simple SAPUI5 based library for testing minification excludes", | ||
"dependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
Oops, something went wrong.