Skip to content

Commit

Permalink
Refactor jsdoc processor internal files into lib dir
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Mar 7, 2019
1 parent 66893b7 commit 5c683c0
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 28 deletions.
23 changes: 0 additions & 23 deletions lib/processors/jsdoc/jsdoc-config-template.json

This file was deleted.

6 changes: 3 additions & 3 deletions lib/processors/jsdoc/jsdocGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const {resourceFactory} = require("@ui5/fs");
* @param {Array} [parameters.options.variants=["apijson"]] JSDoc variants to be built
* @param {boolean} [parameters.options.sdkBuild=true] Whether additional SDK specific
* api.json resources shall be generated
* @returns {Promise<module:@ui5/fs.Resource[]>} Promise resolving with
* @returns {Promise<module:@ui5/fs.Resource[]>} Promise resolving with newly created resources
*/
const jsdocGenerator = async function({sourcePath, targetPath, tmpPath, options} = {}) {
if (!sourcePath || !targetPath || !tmpPath || !options.projectName || !options.version) {
Expand Down Expand Up @@ -82,11 +82,11 @@ async function generateJsdocConfig({targetPath, tmpPath, namespace, projectName,
const jsdocPath = path.normalize(__dirname);

const config = `{
"plugins": ["${jsdocPath}/ui5/plugin.js"],
"plugins": ["${jsdocPath}/lib/ui5/plugin.js"],
"opts": {
"recurse": true,
"lenient": true,
"template": "${jsdocPath}/ui5/template",
"template": "${jsdocPath}/lib/ui5/template",
"ui5": {
"saveSymbols": true
},
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/lib/processors/jsdoc/jsdocGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ test("generateJsdocConfig", async (t) => {
"jsdoc");

t.deepEqual(res, `{
"plugins": ["${jsdocGeneratorPath}/ui5/plugin.js"],
"plugins": ["${jsdocGeneratorPath}/lib/ui5/plugin.js"],
"opts": {
"recurse": true,
"lenient": true,
"template": "${jsdocGeneratorPath}/ui5/template",
"template": "${jsdocGeneratorPath}/lib/ui5/template",
"ui5": {
"saveSymbols": true
},
Expand Down

0 comments on commit 5c683c0

Please sign in to comment.