mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 13:18:24 +00:00
Once this is getting hooked up, it'll periodically delete old messages. The StoragePolicy can be chosen by the user, currently there's two versions, delete everything based on age is the obvious. The other is for the data hoarders among us. It'll only delete message types which can be considered low value... Types with a time aspect like away / back... joins / parts etc. It tries to do that in a sensible way, so that we don't block all other db writers that are ongoing. The "periodically" interval is by design not exposed to the user.
59 lines
2.8 KiB
JSON
59 lines
2.8 KiB
JSON
{
|
|
"extends": "../tsconfig.base.json" /* Path to base configuration file to inherit from. Requires TypeScript version 2.1 or later. */,
|
|
"include": [
|
|
"./**/*",
|
|
"../shared"
|
|
] /* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later. */,
|
|
"files": [
|
|
"../package.json",
|
|
"../server/types/socket-events.d.ts",
|
|
"../server/helper.ts",
|
|
"../server/log.ts",
|
|
"../server/config.ts",
|
|
"../server/client.ts",
|
|
"../server/storageCleaner.ts",
|
|
"../server/clientManager.ts",
|
|
"../server/identification.ts",
|
|
"../server/plugins/changelog.ts",
|
|
"../server/plugins/uploader.ts",
|
|
"../server/plugins/storage.ts",
|
|
"../server/plugins/inputs/index.ts",
|
|
"../server/plugins/messageStorage/sqlite.ts",
|
|
"../server/plugins/messageStorage/text.ts",
|
|
"../server/plugins/packages/index.ts",
|
|
"../server/plugins/packages/publicClient.ts",
|
|
"../server/plugins/packages/themes.ts",
|
|
"../server/plugins/dev-server.ts",
|
|
"../server/plugins/webpush.ts",
|
|
"../server/plugins/sts.ts",
|
|
"../server/plugins/clientCertificate.ts",
|
|
"../server/plugins/auth.ts",
|
|
"../server/plugins/auth/local.ts",
|
|
"../server/plugins/auth/ldap.ts",
|
|
"../server/plugins/irc-events/link.ts",
|
|
"../server/command-line/utils.ts",
|
|
"../server/models/network.ts",
|
|
"../server/models/user.ts",
|
|
"../server/models/msg.ts",
|
|
"../server/models/prefix.ts",
|
|
"./js/helpers/fullnamemap.json",
|
|
"./js/helpers/simplemap.json",
|
|
"../webpack.config.ts",
|
|
"../babel.config.cjs"
|
|
] /* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. */,
|
|
// "exclude": [],
|
|
"compilerOptions": {
|
|
"sourceMap": false /*Create source map files for emitted JavaScript files. See more: https://www.typescriptlang.org/tsconfig#sourceMap */,
|
|
"jsx": "preserve" /* Specify what JSX code is generated. */,
|
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
|
|
// this enables stricter inference for data properties on `this`
|
|
"strict": true,
|
|
// if using webpack 2+ or rollup, to leverage tree shaking:
|
|
"module": "es2020",
|
|
"moduleResolution": "node",
|
|
|
|
// TODO: Remove eventually
|
|
"noImplicitAny": false /*Enable error reporting for expressions and declarations with an implied any type. See more: https://www.typescriptlang.org/tsconfig#noImplicitAny */
|
|
} /* Instructs the TypeScript compiler how to compile .ts files. */
|
|
}
|