-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
Ensures valid build outputs also for projects using latest ES2023 syntax. Hashbangs e.g. '#!/usr/bin/env node' are allowed in source files but won't be included in bundles (e.g. Component-preload.js) by UI5 Tooling. JIRA: CPOUI5FOUNDATION-850
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sap.ui.define(["sap/ui/core/UIComponent", "sap/ui/core/mvc/View"], (UIComponent, View) => { | ||
"use strict"; | ||
return UIComponent.extend("application.m.Component", { | ||
metadata: { | ||
manifest: "json", | ||
interfaces: [ | ||
"sap.ui.core.IAsyncContentCreation" | ||
] | ||
}, | ||
createContent() { | ||
return View.create({ | ||
viewName: "module:application/m/MyView" | ||
}) | ||
} | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
sap.ui.define([ | ||
"sap/ui/core/mvc/View", | ||
"sap/m/Button" | ||
], (View, Button) => { | ||
"use strict"; | ||
return View.extend("application.m.MyView", { | ||
async createContent() { | ||
return new Button({ | ||
id: this.createId("myButton"), | ||
text: "My Button" | ||
}); | ||
} | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Application M</title> | ||
|
||
<script id="sap-ui-bootstrap" | ||
src="resources/sap-ui-core.js" | ||
data-sap-ui-xx-waitForTheme="true" | ||
data-sap-ui-theme="sap_horizon" | ||
data-sap-ui-resourceRoots='{ | ||
"application.m": "./" | ||
}' | ||
data-sap-ui-onInit="module:sap/ui/core/ComponentSupport" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-async="true"> | ||
</script> | ||
</head> | ||
|
||
<body class="sapUiBody"> | ||
<div data-sap-ui-component data-name="application.m" data-id="container" data-settings='{"id" : "m"}'></div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"_version": "1.21.0", | ||
"sap.app": { | ||
"id": "application.m", | ||
"type": "application", | ||
"applicationVersion": { | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"sap.ui5": { | ||
"contentDensities": { | ||
"compact": true, | ||
"cozy": true | ||
}, | ||
"dependencies": { | ||
"minUI5Version": "1.108.0", | ||
"libs": { | ||
"sap.ui.core": {}, | ||
"sap.m": {} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "application.m", | ||
"version": "1.0.0", | ||
"description": "Simple SAPUI5 based application", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
specVersion: "2.6" | ||
type: application | ||
metadata: | ||
name: application.m |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sap.ui.define(["sap/ui/core/UIComponent", "sap/ui/core/mvc/View"], (UIComponent, View) => { | ||
"use strict"; | ||
return UIComponent.extend("application.m.Component", { | ||
metadata: { | ||
manifest: "json", | ||
interfaces: [ | ||
"sap.ui.core.IAsyncContentCreation" | ||
] | ||
}, | ||
createContent() { | ||
return View.create({ | ||
viewName: "module:application/m/MyView" | ||
}) | ||
} | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
sap.ui.define([ | ||
"sap/ui/core/mvc/View", | ||
"sap/m/Button" | ||
], (View, Button) => { | ||
"use strict"; | ||
return View.extend("application.m.MyView", { | ||
async createContent() { | ||
return new Button({ | ||
id: this.createId("myButton"), | ||
text: "My Button" | ||
}); | ||
} | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Application M</title> | ||
|
||
<script id="sap-ui-bootstrap" | ||
src="resources/sap-ui-core.js" | ||
data-sap-ui-xx-waitForTheme="true" | ||
data-sap-ui-theme="sap_horizon" | ||
data-sap-ui-resourceRoots='{ | ||
"application.m": "./" | ||
}' | ||
data-sap-ui-onInit="module:sap/ui/core/ComponentSupport" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-async="true"> | ||
</script> | ||
</head> | ||
|
||
<body class="sapUiBody"> | ||
<div data-sap-ui-component data-name="application.m" data-id="container" data-settings='{"id" : "m"}'></div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"_version": "1.21.0", | ||
"sap.app": { | ||
"id": "application.m", | ||
"type": "application", | ||
"applicationVersion": { | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"sap.ui5": { | ||
"contentDensities": { | ||
"compact": true, | ||
"cozy": true | ||
}, | ||
"dependencies": { | ||
"minUI5Version": "1.108.0", | ||
"libs": { | ||
"sap.ui.core": {}, | ||
"sap.m": {} | ||
} | ||
} | ||
} | ||
} |