]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Exclude some folders in the frontend project 29708/head
authorTiago Melo <tmelo@suse.com>
Thu, 8 Aug 2019 12:58:39 +0000 (12:58 +0000)
committerTiago Melo <tmelo@suse.com>
Mon, 19 Aug 2019 10:43:50 +0000 (10:43 +0000)
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 <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/tsconfig.json

index 958a1f0368df1055639afb0a902bac470966ff86..35d41a569a03a2de253399ba83f0ca25d7de01b8 100644 (file)
     "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"
+  ]
 }