From: Tiago Melo Date: Thu, 8 Aug 2019 12:58:39 +0000 (+0000) Subject: mgr/dashboard: Exclude some folders in the frontend project X-Git-Tag: v15.1.0~1834^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14b2d26946c2100035736aa2ea2f749b3d12da5c;p=ceph.git 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 --- diff --git a/src/pybind/mgr/dashboard/frontend/tsconfig.json b/src/pybind/mgr/dashboard/frontend/tsconfig.json index 958a1f0368df..35d41a569a03 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" + ] }