From bb4479f825073acdb9627d892ccd669391c77b44 Mon Sep 17 00:00:00 2001 From: jonasled <git@jonasled.de> Date: Sun, 28 Feb 2021 13:52:48 +0100 Subject: [PATCH] compile all .ts files to one .js file --- public/404.php | 2 +- public/internal/500.php | 2 +- public/internal/footer.php | 6 +----- tsconfig.json | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/public/404.php b/public/404.php index 8595e6b..e11fe4d 100644 --- a/public/404.php +++ b/public/404.php @@ -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> \ No newline at end of file diff --git a/public/internal/500.php b/public/internal/500.php index 9bf6fc2..1d9834f 100644 --- a/public/internal/500.php +++ b/public/internal/500.php @@ -58,7 +58,7 @@ function getError500() ]; </script> - <script src="/js/error.js"></script> + <script src="/js/script.js"></script> </body> </html> EOF; diff --git a/public/internal/footer.php b/public/internal/footer.php index fcb1737..b764de2 100644 --- a/public/internal/footer.php +++ b/public/internal/footer.php @@ -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); diff --git a/tsconfig.json b/tsconfig.json index d8505e1..c24048b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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 */ -- GitLab