-
Notifications
You must be signed in to change notification settings - Fork 23
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
[FEATURE] Add JSDoc build functionalities #42
Conversation
By writing a resource, the FileSystem adapter drains its content stream. Therefore the There is this undocumented contract that whoever reads from a Resources stream has to provide a new readable stream via |
I think 1. is closer to the expected behavior, I'll try to prepare a ui5-fs PR for that soon. |
Started working on the discussed ui5-fs fix in SAP/ui5-fs#22 |
Blocker should be resolved with SAP/ui5-fs#22 |
26f25fd
to
996c711
Compare
Rebased |
996c711
to
92e32ef
Compare
Implementation ConceptJSDoc generation UI5 Tooling integration.pdf Additional Implementation Details
CC: @tommyvinhlam |
92e32ef
to
e7680f3
Compare
2489edd
to
7ac62c7
Compare
7ac62c7
to
399af06
Compare
Not sure anymore whether the project name should be included in the temporary path directly. At least we should remove all alpha-num characters to prevent directory traversal Edit: Done with 0d4a77f |
b93d4bd depends on SAP/ui5-fs#112 |
Example from sap.ui.core: ---
specVersion: "0.1"
type: library
metadata:
name: sap.ui.core
copyright: |-
OpenUI5
* (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
builder:
jsdoc:
excludes:
- "jquery-*"
- "sap-ui-*"
- "sap/ui/debug/**"
- "sap/ui/qunit/**"
- "sap/ui/thirdparty/**" |
Still not sure whether JSDoc exclude patterns should include the virtual base path ( This came to my mind when thinking about the definition of project-wide exclude patterns as requested in SAP/ui5-tooling#124. They should probably include the virtual paths to allow excluding resources of So even though the JSDoc build itself is only working on |
@RandomByte I would align this with the bundler, which also doesn't contain |
We had another discussion and tend to keep JSDoc exclude patterns aligned with the bundler patterns while use absolute virtual paths ( |
2707f80
to
5718c87
Compare
…on or .library resources are found Globs may return resources in random order, therefore choosing the first of many matches can lead to erratic results.
Prominent example: theme libraries
This prevents JSDoc errors in case no resources have written to the source path.
…located Prominent example: theme libraries
d91ea6e
to
8272acb
Compare
Rebased |
ed3cb45
to
652d0cd
Compare
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.
Looks good to me!
I've tried it out on OpenUI5 (together with the pending change there) and it worked quite well! |
As css files are required for a working SDK
They are not necessary in preview/dev scenarios
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.
👍
Note: the code is full of console.log just to track down an unexpected exit of the Node.js process.