Browse Source

build: add nx configuration in libs/importer (#16547)

pull/16581/head
Addison Beck 3 months ago committed by GitHub
parent
commit
6837e3a674
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      libs/importer/package.json
  2. 41
      libs/importer/project.json

1
libs/importer/package.json

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
},
"license": "GPL-3.0",
"scripts": {
"test": "jest",
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:watch": "npm run clean && tsc -watch"

41
libs/importer/project.json

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