Skip to content
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

--include-task=generateLibraryPreload didn't work #268

Closed
Victor716 opened this issue Oct 24, 2020 · 4 comments
Closed

--include-task=generateLibraryPreload didn't work #268

Victor716 opened this issue Oct 24, 2020 · 4 comments
Labels
help provided Consulting given or question answered

Comments

@Victor716
Copy link

Hi

I want to include the task --include-task=generateLibraryPreload

ui5 build preload --config=ui5.yaml --clean-dest --dest dist --include-task=generateLibraryPreload generateLibraryManifest

but the log didn't show anything about the tasks included

builder:builder Building project little.demo not including dependencies...
info builder:builder � (1/1) Building project little.demo
info builder:builder application little.demo � (1/8) Running task escapeNonAsciiCharacters...
info builder:builder application little.demo � (2/8) Running task replaceCopyright...
info builder:builder application little.demo � (3/8) Running task replaceVersion...
info builder:builder application little.demo � (4/8) Running task generateFlexChangesBundle...
info builder:builder application little.demo � (5/8) Running task generateComponentPreload...
info builder:builder application little.demo � (6/8) Running task createDebugFiles...
info builder:builder application little.demo � (7/8) Running task uglify...
info builder:builder application little.demo � (8/8) Running task generateVersionInfo...
info builder:builder Build succeeded in 588 ms

By the way, do u know any references about ui5 build standard tasks? I tried very hard but only find the docs. There's no concrete tutorials but simply some implicit codes. I'm so confused when using ui5 tooling.

Can u help me?

Victor

@RandomByte
Copy link
Member

Is your project of type library? There is no library-preload generation for application projects.

Yes, it's currently not easy to get a comprehensive list of the tasks available. We want to rework some of that in the future. Until then I think @matz3 started improving the documentation a bit? Apparently, I can't remember the details there.

@RandomByte RandomByte added the information required Further information is required label Oct 26, 2020
@Victor716
Copy link
Author

Victor716 commented Oct 27, 2020

Hi RandomByte,
Glad to hear from you. Yes, I'm having an application instead of library. I tried to
npm i sap.ui.m and the task ran. But this task didn't meet my expectation. I thought it would bundle all the controls that used in one module. Like, if sap.m.Text is used in the project, it would be bundled instead of using the whole sap.m module where it resides. Do u have any idea on my need?

Victor

@RandomByte
Copy link
Member

I thought it would bundle all the controls that used in one module.

I think what you are looking for might be the self-contained build. You can find a demo setup for that here: https://github.com/SAP/openui5-sample-app#building

@RandomByte RandomByte added help provided Consulting given or question answered and removed information required Further information is required labels Oct 29, 2020
@matz3
Copy link
Member

matz3 commented Nov 3, 2020

@RandomByte here's my current state of documenting the tasks: #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help provided Consulting given or question answered
Projects
None yet
Development

No branches or pull requests

3 participants