From d09d2764d3044bbed7355b04580e5dbdf0f5ddb5 Mon Sep 17 00:00:00 2001 From: Dan Bamikiya Date: Thu, 1 Jul 2021 23:54:30 +0100 Subject: [PATCH] fix: support the rewrite of browser rendered javascripts to typescripts The linked files are broken because the browser rendered javascripts have been renamed and rewritten in typescript. Also change references of .js files to .ts. --- javascripts/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascripts/README.md b/javascripts/README.md index 83245cf778..a698d50828 100644 --- a/javascripts/README.md +++ b/javascripts/README.md @@ -2,7 +2,7 @@ The code in this directory is destined to run in a web browser! -The [index.js](index.js) file in this directory is bundled by [Webpack](https://github.com/webpack/webpack). In development, we use [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) to bundle automatically while running the server. In production, we run `webpack --mode production` via `npm run build`. +The [index.ts](index.ts) file in this directory is bundled by [Webpack](https://github.com/webpack/webpack). In development, we use [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) to bundle automatically while running the server. In production, we run `webpack --mode production` via `npm run build`. This file is then referenced in the footer: @@ -11,7 +11,7 @@ This file is then referenced in the footer: ``` Every other file in this directory is written as a module to -be required in `index.js`. They all have this format: +be required in `index.ts`. They all have this format: ```js module.exports = () => { @@ -20,7 +20,7 @@ module.exports = () => { } ``` -In development, the bundle will recompile every time a file used by `javascripts/index.js` is changed. This +In development, the bundle will recompile every time a file used by `javascripts/index.ts` is changed. This ensures that you're always getting an up-to-date version of the script. In production, the bundle is compiled during build-time.