From 14b2d26946c2100035736aa2ea2f749b3d12da5c Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Thu, 8 Aug 2019 12:58:39 +0000 Subject: [PATCH] mgr/dashboard: Exclude some folders in the frontend project This will remove an warning in VS Code [1] and, more important, will reduce the number of files that TS will watch when compiling or linting. [1] To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on. Signed-off-by: Tiago Melo --- src/pybind/mgr/dashboard/frontend/tsconfig.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/tsconfig.json b/src/pybind/mgr/dashboard/frontend/tsconfig.json index 958a1f0368d..35d41a569a0 100644 --- a/src/pybind/mgr/dashboard/frontend/tsconfig.json +++ b/src/pybind/mgr/dashboard/frontend/tsconfig.json @@ -11,8 +11,19 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2015", - "typeRoots": ["node_modules/@types"], - "lib": ["es2017", "dom"], + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2017", + "dom" + ], "allowJs": true - } + }, + "exclude": [ + ".protractor-report", + "coverage", + "dist", + "node_modules" + ] } -- 2.39.5