GUACAMOLE-1754: Generate JSDoc for guacamole-common-js as part of build.

This commit is contained in:
Mike Jumper
2023-05-21 12:32:22 -07:00
parent 45549dd1da
commit 11e6c5ac26
3 changed files with 454 additions and 8 deletions

View File

@@ -188,18 +188,30 @@
<executions>
<!-- Install node.js and NPM before running tests -->
<!-- Install node.js and NPM before running tests or generating documentation -->
<execution>
<id>install node and npm</id>
<phase>test</phase>
<id>install-node-and-npm</id>
<phase>process-sources</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<!-- Install test dependencies -->
<!-- Generate documentation using JSDoc -->
<execution>
<id>npm install</id>
<id>generate-docs</id>
<goals>
<goal>npx</goal>
</goals>
<phase>package</phase>
<configuration>
<arguments>jsdoc -c jsdoc-conf.json</arguments>
</configuration>
</execution>
<!-- Install test and documentation dependencies -->
<execution>
<id>npm-install</id>
<phase>test</phase>
<goals>
<goal>npm</goal>
@@ -208,13 +220,13 @@
<!-- Run all tests non-interactively -->
<execution>
<id>run tests</id>
<id>run-tests</id>
<phase>test</phase>
<goals>
<goal>karma</goal>
</goals>
</execution>
</executions>
</plugin>