|
| 1 | +{ |
| 2 | + "name": "plugin-coverage", |
| 3 | + "$schema": "../../node_modules/nx/schemas/project-schema.json", |
| 4 | + "sourceRoot": "packages/plugin-coverage/src", |
| 5 | + "projectType": "library", |
| 6 | + "targets": { |
| 7 | + "build": { |
| 8 | + "executor": "@nx/esbuild:esbuild", |
| 9 | + "outputs": ["{options.outputPath}"], |
| 10 | + "options": { |
| 11 | + "outputPath": "dist/packages/plugin-coverage", |
| 12 | + "main": "packages/plugin-coverage/src/index.ts", |
| 13 | + "tsConfig": "packages/plugin-coverage/tsconfig.lib.json", |
| 14 | + "assets": ["packages/plugin-coverage/*.md"], |
| 15 | + "esbuildConfig": "esbuild.config.js" |
| 16 | + } |
| 17 | + }, |
| 18 | + "lint": { |
| 19 | + "executor": "@nx/linter:eslint", |
| 20 | + "outputs": ["{options.outputFile}"], |
| 21 | + "options": { |
| 22 | + "lintFilePatterns": [ |
| 23 | + "packages/plugin-coverage/**/*.ts", |
| 24 | + "packages/plugin-coverage/package.json" |
| 25 | + ] |
| 26 | + } |
| 27 | + }, |
| 28 | + "unit-test": { |
| 29 | + "executor": "@nx/vite:test", |
| 30 | + "outputs": ["{workspaceRoot}/coverage/packages/plugin-coverage"], |
| 31 | + "options": { |
| 32 | + "config": "packages/plugin-coverage/vite.config.unit.ts", |
| 33 | + "reportsDirectory": "../../coverage/plugin-coverage/unit-tests" |
| 34 | + } |
| 35 | + }, |
| 36 | + "integration-test": { |
| 37 | + "executor": "@nx/vite:test", |
| 38 | + "outputs": ["{workspaceRoot}/coverage/packages/plugin-coverage"], |
| 39 | + "options": { |
| 40 | + "config": "packages/plugin-coverage/vite.config.integration.ts", |
| 41 | + "reportsDirectory": "../../coverage/plugin-coverage/integration-tests" |
| 42 | + } |
| 43 | + }, |
| 44 | + "deploy": { |
| 45 | + "options": { |
| 46 | + "distFolderPath": "dist/packages/plugin-coverage" |
| 47 | + } |
| 48 | + }, |
| 49 | + "publish": { |
| 50 | + "command": "node tools/scripts/publish.mjs plugin-coverage {args.ver} {args.tag}", |
| 51 | + "dependsOn": ["build"] |
| 52 | + } |
| 53 | + }, |
| 54 | + "tags": ["scope:plugin", "type:feature"] |
| 55 | +} |
0 commit comments