Build: Add jsdoc target

Doesn't really do much yet because none of our js has jsdocs
This commit is contained in:
zzz
2023-01-01 10:40:33 -05:00
parent be7e213736
commit 952d9fd471
2 changed files with 23 additions and 0 deletions

View File

@@ -979,6 +979,21 @@
<echo message="Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" />
</target>
<!-- sudo apt install jsdoc-toolkit -->
<target name="jsdoc">
<exec executable="jsdoc" failonerror="true">
<arg value="-d=build/jsdoc" />
<arg value="-P" />
<arg value="installer/resources/package.json" />
<arg value="-r" />
<arg value="apps/i2psnark/resources/js" />
<arg value="apps/i2ptunnel/jsp/js" />
<arg value="apps/routerconsole/jsp/js" />
<arg value="apps/susidns/src/js" />
<arg value="apps/susimail/src/js" />
</exec>
</target>
<!-- sets release.number and api.version -->
<target name="getReleaseNumber">
<loadfile srcfile="core/java/src/net/i2p/CoreVersion.java" property="release.number">

View File

@@ -0,0 +1,8 @@
{
"name": "I2P Console JS",
"version": "0.9.57",
"description": "Webapp JS",
"repository": "https://github.com/i2p/i2p.i2p",
"author": "I2P Team",
"license": "GPLv2"
}