X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftsconfig.json;h=2345ca289b2314e31b0cf1c568dc4a5fba1d9e1e;hb=0b684daa3dbbe24bd3871eff46093c6aaa02e9cf;hp=3b903f8c831dcb11ef5104050f237f7470c79b5b;hpb=ce98c80ca7a810c8314b3d49c98610ceef8a8ee7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index 3b903f8c8..2345ca289 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,73 +1,69 @@ { + "compileOnSave": false, "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", + "downlevelIteration": true, + "outDir": "./dist/out-tsc", "sourceMap": true, - "emitDecoratorMetadata": true, + "declaration": false, + "moduleResolution": "node", + "module": "es2020", "experimentalDecorators": true, - "noImplicitAny": false, - "noEmitHelpers": true + "noImplicitAny": true, + "noImplicitThis": true, + "suppressImplicitAnyIndexErrors":true, + "alwaysStrict": true, + "importHelpers": true, + "allowSyntheticDefaultImports": true, + "strictBindCallApply": true, + "target": "es2017", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "ES2021.Intl", + "es2018", + "es2017", + "es2016", + "es2015", + "dom" + ], + "baseUrl": "./", + "paths": { + "hls.js": [ "node_modules/hls.js/dist/hls.light" ], + "video.js": [ "node_modules/video.js/core" ], + "@app/*": [ "src/app/*" ], + "@shared/models/*": [ "../shared/models/*" ], + "@shared/models": [ "../shared/models" ], + "@shared/core-utils": [ "../shared/core-utils" ], + "@shared/core-utils/*": [ "../shared/core-utils/*" ], + "@shared/typescript-utils": [ "../shared/typescript-utils" ], + "@shared/typescript-utils/*": [ "../shared/typescript-utils/*" ], + "@root-helpers/*": [ "src/root-helpers/*" ], + "fs": [ "src/shims/noop.ts" ], + "http": [ "src/shims/http.ts" ], + "https": [ "src/shims/https.ts" ], + "path": [ "src/shims/path.ts" ], + "stream": [ "src/shims/stream.ts" ], + "crypto": [ "src/shims/noop.ts" ] + } }, - "awesomeTypescriptLoaderOptions": { - "forkChecker": true - }, - "compileOnSave": false, - "buildOnSave": false, - "atom": { - "rewriteTsconfig": true - }, - "filesGlob": [ - "**/*.ts", - "!node_modules/**" + "files": [ + "src/polyfills.ts" + ], + "include": [ + "src/main*.ts", + "src/**/*.d.ts", + "src/shims/*.ts" ], "exclude": [ - "node_modules", - "typings/main", - "typings/main.d.ts" + "../node_modules", + "../server", + "node_modules" ], - "files": [ - "src/app/app.component.ts", - "src/app/friends/friend.service.ts", - "src/app/friends/index.ts", - "src/app/login/index.ts", - "src/app/login/login.component.ts", - "src/app/shared/index.ts", - "src/app/shared/search/index.ts", - "src/app/shared/search/search-field.type.ts", - "src/app/shared/search/search.component.ts", - "src/app/shared/search/search.model.ts", - "src/app/shared/users/auth-status.model.ts", - "src/app/shared/users/auth.service.ts", - "src/app/shared/users/index.ts", - "src/app/shared/users/token.model.ts", - "src/app/shared/users/user.model.ts", - "src/app/videos/index.ts", - "src/app/videos/shared/index.ts", - "src/app/videos/shared/loader/index.ts", - "src/app/videos/shared/loader/loader.component.ts", - "src/app/videos/shared/pagination.model.ts", - "src/app/videos/shared/sort-field.type.ts", - "src/app/videos/shared/video.model.ts", - "src/app/videos/shared/video.service.ts", - "src/app/videos/video-add/index.ts", - "src/app/videos/video-add/video-add.component.ts", - "src/app/videos/video-list/index.ts", - "src/app/videos/video-list/video-list.component.ts", - "src/app/videos/video-list/video-miniature.component.ts", - "src/app/videos/video-list/video-sort.component.ts", - "src/app/videos/video-watch/index.ts", - "src/app/videos/video-watch/video-watch.component.ts", - "src/app/videos/video-watch/webtorrent.service.ts", - "src/custom-typings.d.ts", - "src/main.ts", - "src/polyfills.ts", - "src/vendor.ts", - "typings/globals/es6-shim/index.d.ts", - "typings/globals/jasmine/index.d.ts", - "typings/globals/jquery.fileupload/index.d.ts", - "typings/globals/jquery/index.d.ts", - "typings/globals/node/index.d.ts", - "typings/index.d.ts" - ] + "angularCompilerOptions": { + "strictInjectionParameters": true, + "fullTemplateTypeCheck": true, + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": false + } }