Files
zulip/tsconfig.json
Anders Kaseorg c1675913a2 web: Move web app to ‘web’ directory.
Ever since we started bundling the app with webpack, there’s been less
and less overlap between our ‘static’ directory (files belonging to
the frontend app) and Django’s interpretation of the ‘static’
directory (files served directly to the web).

Split the app out to its own ‘web’ directory outside of ‘static’, and
remove all the custom collectstatic --ignore rules.  This makes it
much clearer what’s actually being served to the web, and what’s being
bundled by webpack.  It also shrinks the release tarball by 3%.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-23 16:04:17 -08:00

49 lines
1.3 KiB
JSON

{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["web/src/types/*"],
},
"types": [],
/* TypeScript 3.4 added the --incremental flag but its API is not
* currently public so ts-loader cannot use it yet.
* Tracking issue: https://github.com/microsoft/TypeScript/issues/29978
*/
// "incremental": true,
/* Basic options */
"noEmit": true,
"target": "ES2020",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
/* Strict type-checking */
"strict": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"noImplicitOverride": true,
/* Additional checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
},
"exclude": [
/* Type stubs are not part of the top-level project. */
"web/src/types",
/* Skip walking large generated directories. */
"docs/_build",
"static/webpack-bundles",
"var",
"zulip-py3-venv",
/* Even though allowJs defaults to false, typescript-eslint forces it to true. */
"**/*.js",
],
}