Skip to content

Commit

Permalink
feat!: use namespace with underscores (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Mar 12, 2023
1 parent 6cfc2c1 commit 96093b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions dev/replace-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ const develop = process.argv.includes("--develop");
// Get the version from the parsed data
const version = util.getVersionDots()
const versionShort = util.getVersionDots().replaceAll(".", "")
const versionUnderscore = util.getVersionDots().replaceAll(".", "_")
const versionSlash = util.getVersionSlash()

// replace strings in publish folder
util.replaceYamlFileBuild(version,versionShort,versionSlash)
util.replaceYamlFileBuild(versionUnderscore,versionShort,versionUnderscore)
// create ui5.yaml with current version
util.replaceYamlFileComponent(versionSlash)
util.replaceYamlFileDeploy(version,versionShort)
util.replaceYamlFileComponent(versionUnderscore)
util.replaceYamlFileDeploy(versionUnderscore,versionUnderscore)
// replace in docs
util.replaceSomething("docs/pages/GettingStartedTEMPLATE.md", "docs/pages/GettingStarted.md",["**/docs/pages/GettingStarted.md"],[/XXXnamespaceXXX/g, /XXXnamespaceSlashXXX/g],[version, versionSlash])
util.replaceSomething("docs/pages/GettingStartedTEMPLATE.md", "docs/pages/GettingStarted.md",["**/docs/pages/GettingStarted.md"],[/XXXnamespaceXXX/g, /XXXnamespaceSlashXXX/g],[versionUnderscore, versionUnderscore])


if (!develop) {
let ui5Apps = ["ordersv2fe", "ordersv2fenondraft", "ordersv2freestyle", "ordersv4fe", "ordersv4fpm"];
util.replaceVersionInExamples(versionSlash, version, ui5Apps);
util.replaceVersionInExamples(versionUnderscore, versionUnderscore, ui5Apps);
}
2 changes: 1 addition & 1 deletion dev/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function replaceYamlFileDeploy(version, versionShort) {
ui5Build.metadata.name = `cc.excelUpload.${version}`
ui5Build.builder.customTasks.forEach(task => {
if (task.name === 'deploy-to-abap') {
task.configuration.app.name = `Z_EXLUP_${versionShort}`
task.configuration.app.name = `Z_XUP_${versionShort}`
}
});

Expand Down
2 changes: 1 addition & 1 deletion ui5-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ builder:
username: env:USER
password: env:PW
app:
name: Z_EXLUP_v091
name: Z_XUP_v091
description: ''
package: Z_EXCELUPLOAD
transport: A4HK900057
Expand Down

0 comments on commit 96093b8

Please sign in to comment.