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:
@@ -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
41
libs/angular/project.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user