1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Multi root workspace tweaks (#2858)

* Ignore jest for workspaces without tests (for now)

* Add jest as recommended extension

* Set eslint and prettier file paths

We can't do this on a multi-folder workspace level because the
path depths are not identical between folders

* fix tsconfig extends for

* Simplify bitwarden-licensed web tsconfig

This tsconfig isn't needed to build, since we do that through webpack
and the web client. It's only needed as hints to IDEs

* Remove unintended change

* linter
This commit is contained in:
Matt Gibson
2022-06-13 21:39:36 -05:00
committed by GitHub
parent b92685dcd9
commit c4ff8f99dc
8 changed files with 81 additions and 57 deletions

View File

@@ -1,34 +1,34 @@
{
"folders": [
{
"name": "root",
"path": "."
},
{
"name": "web vault",
"path": "apps/web"
},
{
"name": "web vault (bit)",
"path": "bitwarden_license/bit-web"
},
{
"name": "cli",
"path": "apps/cli"
},
{
"name": "desktop",
"path": "apps/desktop"
},
{
"name": "browser",
"path": "apps/browser"
},
{
"name": "libs",
"path": "libs"
}
],
"folders": [
{
"name": "root",
"path": "."
},
{
"name": "web vault",
"path": "apps/web"
},
{
"name": "web vault (bit)",
"path": "bitwarden_license/bit-web"
},
{
"name": "cli",
"path": "apps/cli"
},
{
"name": "desktop",
"path": "apps/desktop"
},
{
"name": "browser",
"path": "apps/browser"
},
{
"name": "libs",
"path": "libs"
}
],
"settings": {
"debug.javascript.terminalOptions": {
"sourceMapPathOverrides": {
@@ -37,6 +37,20 @@
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack://@bitwarden/cli/*": "${workspaceFolder}/apps/cli/*"
}
}
},
"jest.disabledWorkspaceFolders": [
"root",
"web vault",
"web vault (bit)",
"desktop"
],
"jest.jestCommandLine": "npx jest"
},
"extensions": {
"recommendations": [
"orta.vscode-jest",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
],
}
}