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

pull/16363/head
Addison Beck 7 months ago committed by GitHub
parent 5126e63399
commit 1e6019c950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"
}
}

@ -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"
}
}
}
}
Loading…
Cancel
Save