|
| 1 | +{ |
| 2 | + "name": "generator-cli", |
| 3 | + "$schema": "../../node_modules/nx/schemas/project-schema.json", |
| 4 | + "sourceRoot": "apps/generator-cli/src", |
| 5 | + "projectType": "application", |
| 6 | + "prefix": "generator-cli", |
| 7 | + "generators": {}, |
| 8 | + "targets": { |
| 9 | + "build": { |
| 10 | + "executor": "@nx/webpack:webpack", |
| 11 | + "outputs": ["{options.outputPath}"], |
| 12 | + "defaultConfiguration": "production", |
| 13 | + "options": { |
| 14 | + "target": "node", |
| 15 | + "compiler": "tsc", |
| 16 | + "outputPath": "dist/apps/generator-cli", |
| 17 | + "main": "apps/generator-cli/src/main.ts", |
| 18 | + "tsConfig": "apps/generator-cli/tsconfig.app.json", |
| 19 | + "assets": [ |
| 20 | + "apps/generator-cli/src/config.schema.json", |
| 21 | + "apps/generator-cli/src/README.md" |
| 22 | + ], |
| 23 | + "webpackConfig": "apps/generator-cli/webpack.config.js" |
| 24 | + }, |
| 25 | + "configurations": { |
| 26 | + "production": { |
| 27 | + "optimization": true, |
| 28 | + "extractLicenses": true, |
| 29 | + "inspect": false, |
| 30 | + "fileReplacements": [ |
| 31 | + { |
| 32 | + "replace": "apps/generator-cli/src/environments/environment.ts", |
| 33 | + "with": "apps/generator-cli/src/environments/environment.prod.ts" |
| 34 | + } |
| 35 | + ] |
| 36 | + } |
| 37 | + } |
| 38 | + }, |
| 39 | + "serve": { |
| 40 | + "executor": "@nx/js:node", |
| 41 | + "defaultConfiguration": "production", |
| 42 | + "options": { |
| 43 | + "buildTarget": "generator-cli:build" |
| 44 | + }, |
| 45 | + "configurations": { |
| 46 | + "production": { |
| 47 | + "buildTarget": "generator-cli:build:production" |
| 48 | + } |
| 49 | + } |
| 50 | + }, |
| 51 | + "lint": { |
| 52 | + "executor": "@nx/eslint:lint", |
| 53 | + "outputs": ["{options.outputFile}"] |
| 54 | + }, |
| 55 | + "test": { |
| 56 | + "executor": "@nx/jest:jest", |
| 57 | + "options": { |
| 58 | + "jestConfig": "apps/generator-cli/jest.config.ts" |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | +} |
0 commit comments