mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
added a note on WebJars
This commit is contained in:
parent
5412c1f0c3
commit
24312e56eb
@ -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
|
||||
-------------------------------------
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user