Browse Source

build: add nx configuration in libs/ui/common (#16563)

pull/16572/head
Addison Beck 3 months ago committed by GitHub
parent
commit
5126e63399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      libs/ui/common/package.json
  2. 35
      libs/ui/common/project.json

5
libs/ui/common/package.json

@ -12,6 +12,11 @@ @@ -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

@ -0,0 +1,35 @@ @@ -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"]
}
}
}
}
Loading…
Cancel
Save