diff --git a/package.json b/package.json index 8173bdb3d..1f4cf495f 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "text-summary" ], "exclude": [ - "lib/processors/jsdoc/lib/**", "docs/**", "jsdocs/**", "coverage/**", diff --git a/test/expected/build/library.j/dest/test-resources/library/j/designtime/apiref/api.json b/test/expected/build/library.j/dest/test-resources/library/j/designtime/apiref/api.json new file mode 100644 index 000000000..cb36ca1cb --- /dev/null +++ b/test/expected/build/library.j/dest/test-resources/library/j/designtime/apiref/api.json @@ -0,0 +1 @@ +{"$schema-ref":"http://schemas.sap.com/sapui5/designtime/api.json/1.0","version":"1.0.0","library":"library.j","symbols":[{"kind":"namespace","name":"library.j","basename":"j","resource":"library/j/some.js","module":"library/j/some","static":true,"visibility":"public","displayName":"library.j","nodes":[{"name":"library.j.aaa","description":"","href":"api/library.j.aaa"},{"name":"library.j.Foo","description":"

My super documentation of this class

","href":"api/library.j.Foo"}],"title":"namespace library.j","subTitle":""},{"kind":"class","name":"library.j.aaa","basename":"aaa","resource":"library/j/dependency-es6-2.js","module":"library/j/dependency-es6-2","export":"","static":true,"visibility":"public","since":"1.22","extends":"library.j.a","ui5-metamodel":true,"ui5-metadata":{"properties":[{"name":"MyProp","type":"boolean","defaultValue":false,"group":"undefined","visibility":"public","since":"1.46","description":"

MyProp property

Since: 1.46.

","methods":["getMyProp","setMyProp"]}]},"constructor":{"visibility":"public","parameters":[{"name":"sId","optional":true,"description":"

ID for the new control, generated automatically if no ID is given

","phoneName":"sId","depth":0,"types":[{"name":"string","linkEnabled":false}],"defaultValue":""},{"name":"mSettings","optional":true,"description":"

Initial settings for the new control

","phoneName":"mSettings","depth":0,"types":[{"name":"object","linkEnabled":false}],"defaultValue":""}],"description":"

Constructor for a new library.j.aaa.

","references":[],"codeExample":"
new library.j.aaa(sId?, mSettings?)
"},"methods":[{"name":"library.j.aaa.extend","visibility":"public","static":true,"returnValue":{"type":"function","description":"

Created class / constructor function

","types":[{"value":"function"}]},"parameters":[{"name":"sClassName","optional":false,"description":"

Name of the class being created

","types":[{"value":"string"}],"defaultValue":""},{"name":"oClassInfo","optional":true,"description":"

Object literal with information about the class

","types":[{"value":"object"}],"defaultValue":""},{"name":"FNMetaImpl","optional":true,"description":"

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

","types":[{"value":"function"}],"defaultValue":""}],"description":"

Creates a new subclass of class library.j.aaa with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in library.j.a.extend.

","href":"api/library.j.aaa#methods/library.j.aaa.extend","code":"
library.j.aaa.extend(sClassName, oClassInfo?, FNMetaImpl?) : function
"},{"name":"library.j.aaa.getMetadata","visibility":"public","static":true,"returnValue":{"type":"sap.ui.base.Metadata","description":"

Metadata object describing this class

","types":[{"value":"sap.ui.base.Metadata","href":"api/sap.ui.base.Metadata","linkEnabled":true}]},"description":"

Returns a metadata object for class library.j.aaa.

","href":"api/library.j.aaa#methods/library.j.aaa.getMetadata","code":"
library.j.aaa.getMetadata() : sap.ui.base.Metadata
"},{"name":"getMyProp","visibility":"public","since":"1.46","returnValue":{"type":"boolean","description":"

Value of property MyProp

","types":[{"value":"boolean"}]},"description":"

Gets current value of property MyProp.

MyProp property

Default value is false.

","href":"api/library.j.aaa#methods/getMyProp","code":"
getMyProp() : boolean
"},{"name":"setMyProp","visibility":"public","since":"1.46","returnValue":{"type":"this","description":"

Reference to this in order to allow method chaining

","types":[{"value":"this"}]},"parameters":[{"name":"bMyProp","optional":true,"defaultValue":false,"description":"

New value for property MyProp

","types":[{"value":"boolean"}]}],"description":"

Sets a new value for property MyProp.

MyProp property

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

","href":"api/library.j.aaa#methods/setMyProp","code":"
setMyProp(bMyProp?) : this
"}],"displayName":"library.j.aaa","title":"class library.j.aaa","subTitle":""},{"kind":"class","name":"library.j.Foo","basename":"Foo","resource":"library/j/dependency-es6-1.js","module":"library/j/dependency-es6-1","static":true,"visibility":"public","extends":"library.j.Bar","description":"

My super documentation of this class

","constructor":{"visibility":"public","references":[],"codeExample":"
new library.j.Foo()
"},"displayName":"library.j.Foo","title":"class library.j.Foo","subTitle":""},{"name":"library","displayName":"library","kind":"namespace","nodes":[{"name":"library.j","description":"","href":"api/library.j"}],"title":"namespace library","subTitle":""}]} \ No newline at end of file diff --git a/test/lib/builder/builder.js b/test/lib/builder/builder.js index da01e9586..c81f00bfa 100644 --- a/test/lib/builder/builder.js +++ b/test/lib/builder/builder.js @@ -890,8 +890,7 @@ test.serial("Build library.j with JSDoc build only", async (t) => { graph.setTaskRepository(taskRepository); await graph.build({ destPath, - includedTasks: ["generateJsdoc"], - excludedTasks: ["*"] + jsdoc: true }); const expectedFiles = await findFiles(expectedPath);