compile all .ts files to one .js file

This commit is contained in:
jonasled 2021-02-28 13:52:48 +01:00
parent dc94c74547
commit bb4479f825
4 changed files with 5 additions and 9 deletions

View file

@ -55,6 +55,6 @@ if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
];
</script>
<script src="/js/error.js"></script>
<script src="/js/script.js"></script>
</body>
</html>

View file

@ -58,7 +58,7 @@ function getError500()
];
</script>
<script src="/js/error.js"></script>
<script src="/js/script.js"></script>
</body>
</html>
EOF;

View file

@ -49,14 +49,10 @@ function getFooter(){
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. <a class="cookieinfo-link" href="http://wikipedia.org/wiki/HTTP_cookie">More info</a>
</span>
</div>
<script src="/js/cookie.js"></script>
<script src="/js/script.js"></script>
<script>
checkHide();
</script>
<script src="/js/includeHTML.js"></script>
<script src="/js/burgerMenu.js"></script>
<script src="/js/dialog.js"></script>
<script src="/js/imgPreview.js"></script>
</body>
</html>
EOF);

View file

@ -5,7 +5,7 @@
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"module": "system", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
@ -13,7 +13,7 @@
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outFile": "./public/js/script.js", /* Concatenate and emit output to single file. */
"outDir": "./public/js", /* Redirect output structure to the directory. */
"rootDir": "./ts", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */