-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescript configuration for Fiori elements apps (#1286)
This PR enables typescript for both apps Travel Processor and Travel Analytics. Additionally, for the Travel Processor App, the following flexible programming model based extensions are added: - a custom section combining a message strip and a table building block. This replaces the standard booking table section - a controller extension: when saving, it is checked whether trees-4-tickets checkbox has been selected, a dialog is shown giving the user the option to do so before save continues. Other changes - Fix bad extraneous field in Travels.csv file - Show server stdout in Karma runs - Use `karma-ui5-transpile` to get TS working in Karma tests - Delete obsolete `app/*/package=lock.json` files - Unified double `karma.conf` files - Java 21 in pipeline - Drop Node 18 in pipeline - Remove obsolete `odata.test.js` which also caused problems with `ts-jest` - Remove obsolete `npm ci` calls in pipeline - Use `deploy -out` param in Maven build to not be disturbed by extra stdout ouput from `cds-ui5-plugin` - Replace parent pom by SpringBoot bom - Use latest SpringBoot 3.41 - Use latest CAP Java 3.5.0 --------- Co-authored-by: Christian Georgi <[email protected]> Co-authored-by: Austin Devine <[email protected]>
- Loading branch information
1 parent
4a0f92b
commit 2b0ac22
Showing
50 changed files
with
31,812 additions
and
39,054 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ _out | |
*.db | ||
connection.properties | ||
default-*.json | ||
schema.sql | ||
*.sql | ||
gen/ | ||
node_modules/ | ||
target/ | ||
|
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,34 @@ | ||
const puppeteer = require("puppeteer"), | ||
cap = require("./karma-cap-middleware"); | ||
|
||
process.env.CHROME_BIN = puppeteer.executablePath(); | ||
|
||
module.exports = async (config) => { | ||
// start the CAP server (either specify CLI arg --server=node or --server=java) | ||
let capMiddleware; | ||
if (config.server === "node") { | ||
capMiddleware = cap.node(); | ||
} else if (config.server === "java") { | ||
capMiddleware = cap.java(); | ||
} else { | ||
throw new Error(`Unknown server type: ${config.server}`); | ||
} | ||
|
||
config.set({ | ||
frameworks: ["ui5"], | ||
preprocessors: { | ||
"webapp/**/*.ts": ["ui5-transpile"], | ||
}, | ||
logLevel: "INFO", // log errors only. Change to "DEBUG" for more verbosity | ||
proxies: { | ||
"/base/webapp/": "/", | ||
}, | ||
ui5: { | ||
failOnEmptyTestPage: true, | ||
}, | ||
plugins: [...config.plugins, await capMiddleware], | ||
middleware: ["cap-proxy"], | ||
browsers: config.ci ? ["ChromeHeadless"] : ["Chrome"], | ||
singleRun: config.ci || config.singleRun || false | ||
}); | ||
}; |
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 |
---|---|---|
@@ -1,31 +1 @@ | ||
const puppeteer = require("puppeteer"), | ||
cap = require("../../karma-cap-middleware"); | ||
|
||
process.env.CHROME_BIN = puppeteer.executablePath(); | ||
|
||
module.exports = async (config) => { | ||
// start the CAP server (either specify CLI arg --server=node or --server=java) | ||
let capMiddleware; | ||
if (config.server === "node") { | ||
capMiddleware = cap.node(); | ||
} else if (config.server === "java") { | ||
capMiddleware = cap.java(); | ||
} else { | ||
throw new Error(`Unknown server type: ${config.server}`); | ||
} | ||
|
||
config.set({ | ||
frameworks: ["ui5"], | ||
logLevel: "INFO", // log errors only. Change to "DEBUG" for more verbosity | ||
proxies: { | ||
"/base/webapp/": "/", | ||
}, | ||
ui5: { | ||
failOnEmptyTestPage: true, | ||
}, | ||
plugins: [...config.plugins, await capMiddleware], | ||
middleware: ["cap-proxy"], | ||
browsers: config.ci ? ["ChromeHeadless"] : ["Chrome"], | ||
singleRun: config.ci || config.singleRun || false | ||
}); | ||
}; | ||
module.exports = require("../.karma/karma.conf.js") |
Oops, something went wrong.