diff options
| -rw-r--r-- | Report/graphics/km-dash.png | bin | 0 -> 97345 bytes | |||
| -rw-r--r-- | Report/main.tex | 1 | ||||
| -rw-r--r-- | Report/preamble.tex | 1 | ||||
| -rw-r--r-- | Report/texts/process-management.tex | 2 | ||||
| -rw-r--r-- | Report/texts/typings.tex | 27 |
5 files changed, 30 insertions, 1 deletions
diff --git a/Report/graphics/km-dash.png b/Report/graphics/km-dash.png Binary files differnew file mode 100644 index 0000000..840395d --- /dev/null +++ b/Report/graphics/km-dash.png diff --git a/Report/main.tex b/Report/main.tex index e01bbbb..d6be02c 100644 --- a/Report/main.tex +++ b/Report/main.tex @@ -17,6 +17,7 @@ \input{texts/logging} \input{texts/process-management} \input{texts/testing} + \input{texts/typings} \input{texts/conclusion} \clearpage diff --git a/Report/preamble.tex b/Report/preamble.tex index b592df1..14787a9 100644 --- a/Report/preamble.tex +++ b/Report/preamble.tex @@ -10,3 +10,4 @@ \usepackage{listings} \usepackage{cite} +\def\file{\texttt} diff --git a/Report/texts/process-management.tex b/Report/texts/process-management.tex index bb40faa..d99a73c 100644 --- a/Report/texts/process-management.tex +++ b/Report/texts/process-management.tex @@ -17,7 +17,7 @@ its profiling extension. \begin{figure} \centering - % \includegraphics[width=0.5\linewidth]{km-dash} + \includegraphics[width=0.95\linewidth]{km-dash} \caption{The KeyMetrics dashboard web client in use.}\label{fig:dash} \end{figure} diff --git a/Report/texts/typings.tex b/Report/texts/typings.tex new file mode 100644 index 0000000..65a0de0 --- /dev/null +++ b/Report/texts/typings.tex @@ -0,0 +1,27 @@ +\section{Type Enforcement} +In order to run JavaScript code as TypeScript code, typings (usually +supplied in a \file{.d.ts}-extended file) are applied at compile-time to +make sense of the original source's variable types. For a couple of +packages that have been used in the submission, these typings are not +available, due to a lack of desirablilty --- the packages in question are +niche and as such see little use. + +\subsection{mocha-each} +One such package is \emph{mocha-each}, a utility package for compacting +Mocha tests for readability and classification~\cite{mocha-each}. Without +typings, this package cannot be used in TypeScript projects. Due to its +single-facet use, however, it was simple to design a custom +\file{.d.ts} file. With small edits to conform to +guidelines~\cite{@types}, typings for +mocha-test were contributed to the DefinitelyTyped types repository\footnote{% +https://github.com/DefinitelyTyped/DefinitelyTyped/% +tree/master/types/mocha-each}. + +\subsection{pmx} +The package pmx (as previously described in \S\ref{sec:pmx}) is useful for +profiling. Similarly to mocha-each, however, it does not have supported typing. +Since this package covers a far wider range of functionality, and since said +functionality is very involved with sensitive run-time engine manipulation, +typings were written only for the functions being used by the team, and have +been kept in-house for their incompleteness. The files in question can be found +in \file{src/profiler}. |
