added a note on WebJars

This commit is contained in:
Renaud Pawlak 2016-01-25 15:29:05 +01:00
parent 5412c1f0c3
commit 24312e56eb
2 changed files with 8 additions and 4 deletions

View File

@ -1020,9 +1020,11 @@ Here is an example of the `META-INF/candy-metadata.json` file:
Typically, `d.ts` files shall be generated by the JSweet transpiler using the following options:
- `declaration`: turns on the generation of the `d.ts` files.
- `declaration`: turns on the generation of the `d.ts` files.
- `dtsout`: tells where to put the generated `d.ts` files (for packaging, place them in `RESOURCES/src/typings`, where `RESOURCES` is your Maven project resources directory).
- `dtsout`: tells where to put the generated `d.ts` files (for packaging, place them in `RESOURCES/src/typings`, where `RESOURCES` is your Maven project resources directory).
Note: this section only described how to package JSweet jars for compilation. For execution, the generated JavaScript must be accessible to the using project too. A way is to package the JavaScript following the WebJar conventions: <http://www.webjars.org/>.
Appendix 1: JSweet transpiler options
-------------------------------------

View File

@ -1049,10 +1049,12 @@ Here is an example of the \texttt{META-INF/candy-metadata.json} file:
Typically, \texttt{d.ts} files shall be generated by the JSweet transpiler using the following options:
\begin{itemize}
\item \texttt{--declaration}: turns on the generation of the \texttt{d.ts} files.
\item \texttt{--dtsout}: tells where to put the generated \texttt{d.ts} files (for packaging, place them in \texttt{RESOURCES/src/typings}, where \texttt{RESOURCES} is your Maven project resources directory).
\item \texttt{declaration}: turns on the generation of the \texttt{d.ts} files.
\item \texttt{dtsout}: tells where to put the generated \texttt{d.ts} files (for packaging, place them in \texttt{RESOURCES/src/typings}, where \texttt{RESOURCES} is your Maven project resources directory).
\end{itemize}
Note: this section only described how to package JSweet jars for compilation. For execution, the generated JavaScript must be accessible to the using project too. A way is to package the JavaScript following the WebJar conventions: \url{http://www.webjars.org/}.
\chapter*{Appendix 1: JSweet transpiler options}
\begin{verbatim}