-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update leafmodule preventing module duplication
Update leafmodule tag to prevent current behaviour of module duplication due to creating multiple module tage with the same name. Update leafmodule tag to instead add memberof tags to all relevant jsdoc comments in a given file, thus adding all documented symbols to the desired module without duplication. Resolves following issues discussed in jsdoc: - jsdoc/jsdoc#515 - jsdoc/jsdoc#1002
- Loading branch information
1 parent
b57985a
commit 307c12d
Showing
10 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<p align="center"> | ||
<img width="605" src="https://img.shields.io/badge/submodule-changelog-inactive?style=for-the-badge&labelColor=BAC99C&color=779966&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAB+1BMVEW6yZxBWEF4mmfp5+IAAACvraodJhnBzLKZsYItMSaLlnQ6OTjF0K0wQjDj49lzfWGbrIVXVlXd39AWGBLo5uBec1c7TDMFBQQCAgLm5d/l5N23xpmvvpMLDQvi4tfX3MfBzaYICge+y6Kko5+froaFkG82NjUfIB3Dz6q7yZ6isYmaqIKUpX9PTk1HXkZEW0MQEg7Z3cvS0MvV2sTR2L/O1bzM1La0w5equpCmtYyRn3uOmXd7j2xja1NQZkpIR0Y9PDs6TzpFSjk2SDQiLR8jJR4UFRPh39rg4dTb2dTLysW+vLjJ0rK2tbDEz6uTkY6RkIyIh4SDgn+JlHN6hGdpaGZ0lmRohVlbWlhWbU9fZ09LYklJXj49QjMuPSonJiYfKR0RGBHf4NPW1NDW2szJyMPN1bjDzbe7ubWwrquuramxwaWqqaWenJmxwZV/fXuJpnl8e3iClXFycW6Bi2x7nGptbGp3iml1iWhug2NjYmBpfV9tjF1veF1leVtpclhZb1NbdU5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yt9i1qA8ntrA2/94AFahmDj1LtT1l46K00CSRwHkMRxAEkcB5DEcQBJHAeQxHEASRwHkMRxAEkcB5DEgSCOAwjiOIAgjgMI4jiAII4DCOI4wK926IAGAAAAYdDev7RBkAiEe0C4B4R7QLgHhHtAuAeEe0C4B4TjAwbHl6wa3DF73AAAAABJRU5ErkJggg=="> | ||
</p> | ||
|
||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [1.2.0] - 2017-03-15 | ||
|
||
Here we would have the update steps for 1.2.4 for people to follow. | ||
|
||
Add link to browse at this commit and view tag on github | ||
|
||
### Added | ||
|
||
### Changed | ||
|
||
- [PROJECTNAME-ZZZZ](http://tickets.projectname.com/browse/PROJECTNAME-ZZZZ) PATCH Drupal.org is now used for composer. | ||
|
||
### Fixed | ||
|
||
- [PROJECTNAME-TTTT](http://tickets.projectname.com/browse/PROJECTNAME-TTTT) PATCH Add logic to runsheet teaser delete to delete corresponding schedule cards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"use strict";var e=require("jsdoc/env"),a=require("path");function n(e,n){this.conf.submodule??={};const{pwd:t,conf:{submodule:{roots:s,ignore:o},source:i}}=this,c=Object.entries(s||{}).sort(((e,a)=>a[1].split("/").length-e[1].split("/").length));for(const e of i.include)c.push(["",e]);let l=a.relative(t,e.meta.path);for(const e of c){const[a,n]=e;if(l.includes(n)){l=""!=a?l.replace(n,a):l.replace(new RegExp(`${n}/?`),a);break}}const u=e.meta.filename.match(/^.+(?=\..+$)/)[0],d=n?.value?.name||(""===l?u:(o||["index"]).includes(u)||this.leaf?l:`${l}/${u}`);Object.assign(e,{kind:"module",name:d})}exports.defineTags=a=>{const t={canHaveType:!0,canHaveName:!0,isNamespace:!1,mustHaveValue:!1,mustNotHaveDescription:!0,mustNotHaveValue:!1};a.defineTag("submodule",{...t,onTagged:n.bind(e)}),a.defineTag("leafmodule",{...t,onTagged:n.bind({...e,leaf:!0})})}; | ||
"use strict";var e=require("jsdoc/env"),n=require("path");function s(e,s){this.conf.submodule??={};const{pwd:o,conf:{submodule:{roots:t,ignore:a},source:c}}=this,m=Object.entries(t||{}).sort(((e,n)=>n[1].split("/").length-e[1].split("/").length));for(const e of c.include)m.push(["",e]);let i=n.relative(o,e.meta.path);for(const e of m){const[n,s]=e;if(i.includes(s)){i=""!=n?i.replace(s,n):i.replace(new RegExp(`${s}/?`),n);break}}const l=e.meta.filename.match(/^.+(?=\..+$)/)[0],r=s?.value?.name||(""===i?l:(a||["index"]).includes(l)||this.leaf?i:`${i}/${l}`);this.leaf?process.env.SUBMODULE=r:Object.assign(e,{kind:"module",name:r})}const o={fileBegin:()=>{process.env.SUBMODULE=""},fileComplete:()=>{process.env.SUBMODULE=""},jsdocCommentFound:e=>{if(!e.comment.match(/@memberof/)&&!e.comment.match(/\/\*\*.*\*\//)&&""!=process.env.SUBMODULE){const n=` * @memberof module:${process.env.SUBMODULE}`;e.comment=e.comment.replace(/\s*\*\/$/,`\n${n}\n */`)}}};exports.defineTags=n=>{const o={canHaveType:!0,canHaveName:!0,isNamespace:!1,mustHaveValue:!1,mustNotHaveDescription:!0,mustNotHaveValue:!1};n.defineTag("submodule",{...o,onTagged:s.bind(e)}),n.defineTag("leafmodule",{...o,onTagged:s.bind({...e,leaf:!0})})},exports.handlers=o; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"schemaVersion":1,"label":"lines written","message":"2.1k","style":"for-the-badge","labelColor":"181b1a","color":"779966"} | ||
{"schemaVersion":1,"label":"lines written","message":"2.2k","style":"for-the-badge","labelColor":"181b1a","color":"779966"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* @leafmodule | ||
*/ | ||
|
||
/** | ||
* Leafmodule feature function with private access and inner scope | ||
* | ||
* @function | ||
* @private | ||
* @inner | ||
*/ | ||
const leafmoduleFeature = () => {} | ||
|
||
/** | ||
* ModuleC feature function with public access and static scope, declared in | ||
* leafmodule file with an explicit `@memberof` tag | ||
* | ||
* @function | ||
* @memberof module:moduleC/feature | ||
* @public | ||
* @static | ||
*/ | ||
const externalModuleFunction = () => {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Leafmodule index file method(s) in this module should not be duplicated like | ||
* they would be if multiple files in jsdoc had the same `@module` tag at the | ||
* top - path leafmodule/index.js | ||
* | ||
* @submodule | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters