-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update Adp writer deploy scripts #2362
base: main
Are you sure you want to change the base?
Changes from 5 commits
db47981
10ea50a
9bfc39c
b86b711
327a1ac
3fe6c68
66d4ec7
a3c9caa
633a480
edc0c85
f4aa2ec
2c7b570
9c1c8dc
74ad9fe
7d80f41
927cb2d
e799bb8
3e3107e
c5254a5
28da205
2b1a2b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,15 @@ | |
"@sap-ux/ui5-proxy-middleware": "^1.3.0", | ||
"@sap-ux/deploy-tooling": "^0.11.7"<%}%>, | ||
"@ui5/task-adaptation": "^1.3.0", | ||
"@ui5/cli": "^3.9.2" | ||
"@ui5/cli": "^3.9.2"<%if (locals.deploy) {%>, | ||
"rimraf": "^5.0.5"<%}%> | ||
}, | ||
"scripts": { | ||
"build": "ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest", | ||
"start": "<%= locals.options?.fioriTools ? 'fiori run' : 'ui5 serve' %> --open /test/flp.html#app-preview", | ||
"start-editor": "<%= locals.options?.fioriTools ? 'fiori run' : 'ui5 serve' %> --open /test/adaptation-editor.html"<%if (locals.deploy) {%>, | ||
"deploy": "ui5 build --config ui5-deploy.yaml --exclude-task <%= locals.options?.fioriTools ? 'deploy-to-abap' : 'abap-deploy-task' %> generateFlexChangesBundle generateComponentPreload --clean-dest && <%= locals.options?.fioriTools ? 'fiori deploy' : 'deploy' %> --config ui5-deploy.yaml", | ||
"undeploy": "<%= locals.options?.fioriTools ? 'fiori undeploy' : 'undeploy' %> --config ui5-deploy.yaml --lrep \"apps/<%= app.reference %>/appVariants/<%= app.id %>/\"", | ||
"deploy": "npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The deploy process should not generate an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You also need to add the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tobiasqueck in SAP Fiori tools, the package.json deploy script is appended as follows;
During the deploy task, there is a zip generated on the fly. However, a user can specify a path to an already generated zip which will obviously bypass this zip generation task. https://github.com/SAP/open-ux-tools/blob/main/packages/deploy-tooling/src/cli/archive.ts#L82 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked in "@sap-ux/abap-deploy-config-writer" module and it is always generating the same scripts like in this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well ... I still don't understand the usage of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tobiasqueck the archive remains if there is any exception thrown during the process! I think this is more of a cleanup task. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in a3c9caa |
||
"undeploy": "npm run build && fiori undeploy --config ui5-deploy.yaml", | ||
"deploy-test": "npm run build && fiori deploy --config ui5-deploy.yaml --testMode true"<%}%> | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,15 @@ Object { | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -108,6 +109,9 @@ builder: | |
languages: | ||
- sap: testId | ||
i18n: testKey | ||
connections: | ||
- url: http://sap.example | ||
ignoreCertErrors: false | ||
", | ||
"state": "modified", | ||
}, | ||
|
@@ -131,14 +135,15 @@ Object { | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -222,6 +227,9 @@ builder: | |
languages: | ||
- sap: testId | ||
i18n: testKey | ||
connections: | ||
- url: http://sap.example | ||
ignoreCertErrors: false | ||
", | ||
"state": "modified", | ||
}, | ||
|
@@ -248,14 +256,15 @@ Object { | |
\\"@sap-ux/ui5-proxy-middleware\\": \\"^1.3.0\\", | ||
\\"@sap-ux/deploy-tooling\\": \\"^0.11.7\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"ui5 serve --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"ui5 serve --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task abap-deploy-task generateFlexChangesBundle generateComponentPreload --clean-dest && deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -419,14 +428,15 @@ Object { | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -758,14 +768,15 @@ dist/ | |
\\"@sap-ux/ui5-proxy-middleware\\": \\"^1.3.0\\", | ||
\\"@sap-ux/deploy-tooling\\": \\"^0.11.7\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"ui5 serve --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"ui5 serve --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task abap-deploy-task generateFlexChangesBundle generateComponentPreload --clean-dest && deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -892,14 +903,15 @@ dist/ | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -1134,14 +1146,15 @@ dist/ | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -1225,6 +1238,9 @@ builder: | |
languages: | ||
- sap: testId | ||
i18n: testKey | ||
connections: | ||
- url: http://sap.example | ||
ignoreCertErrors: false | ||
", | ||
"state": "modified", | ||
}, | ||
|
@@ -1288,14 +1304,15 @@ dist/ | |
\\"devDependencies\\": { | ||
\\"@sap/ux-ui5-tooling\\": \\"1\\", | ||
\\"@ui5/task-adaptation\\": \\"^1.3.0\\", | ||
\\"@ui5/cli\\": \\"^3.9.2\\" | ||
\\"@ui5/cli\\": \\"^3.9.2\\", | ||
\\"rimraf\\": \\"^5.0.5\\" | ||
}, | ||
\\"scripts\\": { | ||
\\"build\\": \\"ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest\\", | ||
\\"start\\": \\"fiori run --open /test/flp.html#app-preview\\", | ||
\\"start-editor\\": \\"fiori run --open /test/adaptation-editor.html\\", | ||
\\"deploy\\": \\"ui5 build --config ui5-deploy.yaml --exclude-task deploy-to-abap generateFlexChangesBundle generateComponentPreload --clean-dest && fiori deploy --config ui5-deploy.yaml\\", | ||
\\"undeploy\\": \\"fiori undeploy --config ui5-deploy.yaml --lrep \\\\\\"apps/the.original.app/appVariants/my.test.app/\\\\\\"\\", | ||
\\"deploy\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip\\", | ||
\\"undeploy\\": \\"npm run build && fiori undeploy --config ui5-deploy.yaml\\", | ||
\\"deploy-test\\": \\"npm run build && fiori deploy --config ui5-deploy.yaml --testMode true\\" | ||
} | ||
} | ||
|
@@ -1379,6 +1396,9 @@ builder: | |
languages: | ||
- sap: testId | ||
i18n: testKey | ||
connections: | ||
- url: http://sap.example | ||
ignoreCertErrors: false | ||
", | ||
"state": "modified", | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you always add this please, so that projects are ready for usage everywhere.
Even if you run in AppStudio, you have the url and auth type. The url is part of the destination configuration and the authtype is always
reentranceTicket
since we only add the task for ABAP cloud systems.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For BAS we don't need this configuration, because we are using destinations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A project generated in BAS and then checked into e.g. github, could be checked out in VSCode and it should also work there as well. Just because it is generated in BAS, does not necessarily mean it only used in BAS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in a3c9caa