1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

build: add nx configuration in libs/platform (#16546)

This commit is contained in:
Addison Beck
2025-09-23 17:33:22 -04:00
committed by GitHub
parent 092c95d11f
commit 9639b72055
2 changed files with 42 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
}, },
"license": "GPL-3.0", "license": "GPL-3.0",
"scripts": { "scripts": {
"test": "jest",
"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"

View File

@@ -0,0 +1,41 @@
{
"name": "@bitwarden/platform",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/platform/src",
"projectType": "library",
"tags": ["scope:platform", "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/platform/**/*.ts"]
}
},
"test": {
"executor": "nx:run-script",
"options": {
"script": "test"
}
}
}
}