Skip to content

Commit

Permalink
Save typedoc & showdown modules as dev depends to prevent re-downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Apr 20, 2024
1 parent 21304c2 commit 000bbc0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
31 changes: 13 additions & 18 deletions buildtools/ant_modules/dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -662,23 +662,6 @@

<!-- START: web client -->

<target name="js-prepare-contribs">
<!-- convert contributors markdown to HTML -->
<exec executable="npm${executable.suffix}" failonerror="true">
<arg value="install"/>
<arg value="showdown"/>
<arg value="--no-save"/>
</exec>
<exec executable="npx${executable.suffix}" failonerror="true">
<arg value="showdown"/>
<arg value="makehtml"/>
<arg value="--input"/>
<arg value="doc/contributors.md"/>
<arg value="--output"/>
<arg value="${srcjs}/contributors.html"/>
</exec>
</target>

<target name="js-prepare-marauroa">
<mkdir dir="build/js"/>
<unzip dest="build" src="libs/marauroa.jar">
Expand All @@ -703,7 +686,7 @@
</target>


<extension-point name="js-prepare" depends="js-prepare-contribs,js-prepare-marauroa,js-prepare-build,js-prepare-node"/>
<extension-point name="js-prepare" depends="js-prepare-marauroa,js-prepare-build,js-prepare-node,js-prepare-contribs"/>


<target name="js-prepare-node">
Expand All @@ -714,6 +697,18 @@
</target>


<target name="js-prepare-contribs" depends="js-prepare-node">
<exec executable="npx${executable.suffix}" failonerror="true">
<arg value="showdown"/>
<arg value="makehtml"/>
<arg value="--input"/>
<arg value="doc/contributors.md"/>
<arg value="--output"/>
<arg value="${srcjs}/contributors.html"/>
</exec>
</target>


<!-- TODO: Do not write stendhal-compiled.js to the source directory tree but directly to the compiled directory tree -->
<target name="js-invoke-compiler">
<exec executable="npx${executable.suffix}" dir="${srcjs}/stendhal" failonerror="true">
Expand Down
7 changes: 1 addition & 6 deletions buildtools/ant_modules/docs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@
</target>


<target name="tsdocs" depends="clean_tsdocs">
<exec executable="npm${executable.suffix}" failonerror="true">
<arg value="install"/>
<arg value="typedoc"/>
<arg value="--no-save"/>
</exec>
<target name="tsdocs" depends="clean_tsdocs,js-prepare-node">
<exec executable="npx${executable.suffix}" dir="${srcjs}/stendhal" failonerror="true">
<arg value="typedoc"/>
<arg value="--entryPointStrategy"/>
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
"private": true,
"dependencies": {
"typescript": "^5.2.0"
},
"devDependencies": {
"showdown": "^2.1.0",
"typedoc": "^0.25.12"
}
}

0 comments on commit 000bbc0

Please sign in to comment.