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

build: add nx configuration in libs/angular (#16539)

This commit is contained in:
Addison Beck
2025-09-23 14:20:34 -04:00
committed by GitHub
parent 5126e63399
commit 1e6019c950
2 changed files with 43 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:watch": "npm run clean && tsc -watch"
"build:watch": "npm run clean && tsc -watch",
"test": "jest"
}
}

41
libs/angular/project.json Normal file
View File

@@ -0,0 +1,41 @@
{
"name": "@bitwarden/angular",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/angular/src",
"projectType": "library",
"tags": ["scope:angular", "type:lib"],
"targets": {
"build": {
"executor": "nx:run-script",
"dependsOn": [],
"options": {
"script": "build"
}
},
"build:watch": {
"executor": "nx:run-script",
"options": {
"script": "build:watch"
}
},
"clean": {
"executor": "nx:run-script",
"options": {
"script": "clean"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/angular/**/*.ts"]
}
},
"test": {
"executor": "nx:run-script",
"options": {
"script": "test"
}
}
}
}