mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
* feat(nx): add basic-lib generator for streamlined library creation This adds a new nx-plugin library with a generator for creating "common" type Bitwarden libs. It is set up to accept a lib name, description, team, and directory. It then - Creates a folder in the directory (default to libs) - Sets up complete library scaffolding: - README with team ownership - Build, lint and test task configuration - Test infrastructure - Configures TypeScript path mapping - Updates CODEOWNERS with team ownership - Runs npm i This will make library creation more consistent and reduce manual boilerplate setup. The plugin design itself was generated by `npx nx g plugin`. This means we used a plugin to generate a plugin that exports generators. To create our generator generator, we first needed a generator. * fix(dirt/card): correct tsconfig path in jest configuration Fix the relative path to tsconfig.base in the dirt/card library's Jest config. The path was incorrectly using four parent directory traversals (../../../../) when only three (../../../) were needed to reach the project root. * chore(codeowners): clarify some nx ownership stuff
60 lines
2.6 KiB
JSON
60 lines
2.6 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"strict": false,
|
|
"pretty": true,
|
|
"moduleResolution": "node",
|
|
"noImplicitAny": true,
|
|
"target": "ES2016",
|
|
"module": "ES2020",
|
|
"lib": ["es5", "es6", "es7", "dom", "ES2021", "ESNext.Disposable"],
|
|
"allowSyntheticDefaultImports": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"declaration": false,
|
|
"outDir": "dist",
|
|
"baseUrl": ".",
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"sourceMap": true,
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"@bitwarden/admin-console/common": ["./libs/admin-console/src/common"],
|
|
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
|
"@bitwarden/auth/angular": ["./libs/auth/src/angular"],
|
|
"@bitwarden/auth/common": ["./libs/auth/src/common"],
|
|
"@bitwarden/billing": ["./libs/billing/src"],
|
|
"@bitwarden/bit-common/*": ["./bitwarden_license/bit-common/src/*"],
|
|
"@bitwarden/cli/*": ["./apps/cli/src/*"],
|
|
"@bitwarden/common/*": ["./libs/common/src/*"],
|
|
"@bitwarden/components": ["./libs/components/src"],
|
|
"@bitwarden/dirt-card": ["./libs/dirt/card/src"],
|
|
"@bitwarden/generator-components": ["./libs/tools/generator/components/src"],
|
|
"@bitwarden/generator-core": ["./libs/tools/generator/core/src"],
|
|
"@bitwarden/generator-history": ["./libs/tools/generator/extensions/history/src"],
|
|
"@bitwarden/generator-legacy": ["./libs/tools/generator/extensions/legacy/src"],
|
|
"@bitwarden/generator-navigation": ["./libs/tools/generator/extensions/navigation/src"],
|
|
"@bitwarden/importer-core": ["./libs/importer/src"],
|
|
"@bitwarden/importer-ui": ["./libs/importer/src/components"],
|
|
"@bitwarden/key-management": ["./libs/key-management/src"],
|
|
"@bitwarden/key-management-ui": ["./libs/key-management-ui/src"],
|
|
"@bitwarden/node/*": ["./libs/node/src/*"],
|
|
"@bitwarden/nx-plugin": ["libs/nx-plugin/src/index.ts"],
|
|
"@bitwarden/platform": ["./libs/platform/src"],
|
|
"@bitwarden/platform/*": ["./libs/platform/src/*"],
|
|
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
|
|
"@bitwarden/ui-common": ["./libs/ui/common/src"],
|
|
"@bitwarden/ui-common/setup-jest": ["./libs/ui/common/src/setup-jest"],
|
|
"@bitwarden/vault": ["./libs/vault/src"],
|
|
"@bitwarden/vault-export-core": ["./libs/tools/export/vault-export/vault-export-core/src"],
|
|
"@bitwarden/vault-export-ui": ["./libs/tools/export/vault-export/vault-export-ui/src"],
|
|
"@bitwarden/web-vault/*": ["./apps/web/src/*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "typescript-strict-plugin"
|
|
}
|
|
],
|
|
"useDefineForClassFields": false
|
|
}
|
|
}
|