mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-7289] Create generator libraries (#9432)
* Create and register @bitwarden/generator-core - Create libs/tools/generator/core - Register new library within tsconfigs - Register new library within eslint.configs * Create and register @bitwarden/generator-extensions - Create libs/tools/generator/extensions - Register new library within tsconfigs - Register new library within eslint.configs * Create and register @bitwarden/generator-components - Create libs/tools/generator/components - Register new library within tsconfigs - Register new library within eslint.configs * Update libs/tools/generator/components/package.json Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com> * Update libs/tools/generator/extensions/package.json Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com> * Add empty barrel files for new libs * Fix extension of test.environment --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com> Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com>
This commit is contained in:
committed by
GitHub
parent
90e7e16df6
commit
de92720d7e
13
libs/tools/generator/core/jest.config.js
Normal file
13
libs/tools/generator/core/jest.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||
|
||||
const { compilerOptions } = require("../../../shared/tsconfig.libs");
|
||||
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
||||
preset: "ts-jest",
|
||||
testEnvironment: "../../../shared/test.environment.ts",
|
||||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||
prefix: "<rootDir>/../../../",
|
||||
}),
|
||||
};
|
||||
23
libs/tools/generator/core/package.json
Normal file
23
libs/tools/generator/core/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "@bitwarden/generator-core",
|
||||
"version": "0.0.0",
|
||||
"description": "TODO",
|
||||
"keywords": [
|
||||
"bitwarden"
|
||||
],
|
||||
"author": "Bitwarden Inc.",
|
||||
"homepage": "https://bitwarden.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bitwarden/clients"
|
||||
},
|
||||
"license": "GPL-3.0",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build": "npm run clean && tsc",
|
||||
"build:watch": "npm run clean && tsc -watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bitwarden/common": "file:../../../common"
|
||||
}
|
||||
}
|
||||
0
libs/tools/generator/core/src/index.ts
Normal file
0
libs/tools/generator/core/src/index.ts
Normal file
5
libs/tools/generator/core/tsconfig.json
Normal file
5
libs/tools/generator/core/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "../../../shared/tsconfig.libs",
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
3
libs/tools/generator/core/tsconfig.spec.json
Normal file
3
libs/tools/generator/core/tsconfig.spec.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "./tsconfig.json"
|
||||
}
|
||||
Reference in New Issue
Block a user