Skip to content

Commit

Permalink
[INTERNAL] Update npm dependencies
Browse files Browse the repository at this point in the history
- Update UI5 Tooling modules to 2.x
- Update karma-ui5 to 2.x
- Set new required minimum Node.js version to 10
- Update README pointing to new OpenUI5 consumption via UI5 Tooling

JIRA: CPOUI5FOUNDATION-181
Change-Id: I95a993fde1b1aa6bd2771c526de452f72f8e0116
  • Loading branch information
RandomByte committed Apr 22, 2020
1 parent 83b21bb commit 8c298fb
Show file tree
Hide file tree
Showing 6 changed files with 2,698 additions and 948 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
sudo: false
node_js:
- "8"
- "10"

before_script:
- npm install -g grunt-cli
Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ Get it!
Go to the [download page](http://openui5.org/download.html) and get the complete UI5 runtime
and the UI5 SDK containing the documentation and many example apps as well as the complete runtime.

You can also consume [every OpenUI5 library](https://www.npmjs.com/org/openui5) individually via [npm](https://docs.npmjs.com/getting-started/what-is-npm), for example:
```sh
npm install @openui5/sap.ui.core @openui5/sap.m @openui5/themelib_sap_belize [...]
```
You can also consume OpenUI5 using the [UI5 Tooling](https://sap.github.io/ui5-tooling/). **Get started [here](https://sap.github.io/ui5-tooling/pages/GettingStarted/)!**

The UI5 distribution via Bower is stopped with 1.60+, as Bower itself is now [deprecated](https://github.com/bower/bower/issues/2298).

⚠️ **Note**: Contrary to the bower releases, the npm releases do not contain library preload files. The npm packages only contain the raw source files of the OpenUI5 libraries.
Alternatively, you can also download [every OpenUI5 library](https://www.npmjs.com/org/openui5) individually via [npm](https://docs.npmjs.com/getting-started/what-is-npm), for example: `npm install @openui5/sap.ui.core @openui5/sap.m @openui5/themelib_sap_belize [...]`.

Preload packages for components and libraries can be built using the [UI5 Tooling](https://github.com/SAP/ui5-tooling).

See also: [CLI guideline](https://github.com/SAP/ui5-cli#cli-usage)

See also: [CLI guideline](https://github.com/SAP/ui5-cli#cli-usage).

Get started!
------------
Expand Down
2 changes: 1 addition & 1 deletion lib/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = function(config) {
// Also CSP headers are not set for HTML files of the current project
// TODO: This is just a workaround. Find a better solution...
"middleware:sap.ui.core-cspMiddleware": ["factory", function() {
var cspMiddlewareFactory = require("@ui5/server").middlewareRepository.getMiddleware("csp");
var cspMiddlewareFactory = require("@ui5/server").middlewareRepository.getMiddleware("csp").middleware;
// Config copied from @ui5/server/lib/middleware/MiddlewareManager.js
var cspMiddleware = cspMiddlewareFactory("sap-ui-xx-csp-policy", {
allowDynamicPolicySelection: true,
Expand Down
Loading

0 comments on commit 8c298fb

Please sign in to comment.