mirror of
https://github.com/bitwarden/clients.git
synced 2025-12-05 19:17:06 -06:00
build: add nx configuration in libs/ui/common (#16563)
This commit is contained in:
@@ -12,6 +12,11 @@
|
||||
"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"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./src/index.ts"
|
||||
|
||||
35
libs/ui/common/project.json
Normal file
35
libs/ui/common/project.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "@bitwarden/ui-common",
|
||||
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "libs/ui/common/src",
|
||||
"projectType": "library",
|
||||
"tags": ["scope:ui-common", "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/ui/common/**/*.ts"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user