mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
build: add nx configuration in libs/billing (#16542)
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
"build": "npm run clean && tsc",
|
"build": "npm run clean && tsc",
|
||||||
"build:watch": "npm run clean && tsc -watch"
|
"build:watch": "npm run clean && tsc -watch",
|
||||||
|
"test": "jest --passWithNoTests"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
41
libs/billing/project.json
Normal file
41
libs/billing/project.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "@bitwarden/billing",
|
||||||
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||||
|
"sourceRoot": "libs/billing/src",
|
||||||
|
"projectType": "library",
|
||||||
|
"tags": ["scope:billing", "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/billing/**/*.ts"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"executor": "nx:run-script",
|
||||||
|
"options": {
|
||||||
|
"script": "test"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user