angular.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ai-voc-frontend": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss",
  11. "standalone": true
  12. },
  13. "@schematics/angular:directive": {
  14. "standalone": true
  15. },
  16. "@schematics/angular:pipe": {
  17. "standalone": true
  18. }
  19. },
  20. "root": "",
  21. "sourceRoot": "src",
  22. "prefix": "app",
  23. "architect": {
  24. "build": {
  25. "builder": "@angular-devkit/build-angular:browser",
  26. "options": {
  27. "outputPath": "dist",
  28. "index": "src/index.html",
  29. "main": "src/main.ts",
  30. "polyfills": [
  31. "zone.js"
  32. ],
  33. "tsConfig": "tsconfig.app.json",
  34. "inlineStyleLanguage": "scss",
  35. "assets": [
  36. "src/favicon.ico",
  37. "src/runtime-config.js",
  38. "src/assets"
  39. ],
  40. "styles": [
  41. "src/styles.scss"
  42. ],
  43. "scripts": [],
  44. "allowedCommonJsDependencies": [
  45. "echarts",
  46. "date-fns",
  47. "bowser",
  48. "camelcase",
  49. "decamelize",
  50. "p-retry",
  51. "crypto-js",
  52. "recorder-core",
  53. "dingtalk-jsapi",
  54. "spark-md5",
  55. "semver",
  56. "querystring",
  57. "file-saver"
  58. ]
  59. },
  60. "configurations": {
  61. "production": {
  62. "budgets": [
  63. {
  64. "type": "initial",
  65. "maximumWarning": "20mb",
  66. "maximumError": "25mb"
  67. },
  68. {
  69. "type": "anyComponentStyle",
  70. "maximumWarning": "20mb",
  71. "maximumError": "25mb"
  72. },
  73. {
  74. "type": "allScript",
  75. "maximumWarning": "20mb",
  76. "maximumError": "25mb"
  77. },
  78. {
  79. "type": "all",
  80. "maximumWarning": "20mb",
  81. "maximumError": "25mb"
  82. }
  83. ],
  84. "outputHashing": "all",
  85. "optimization": true,
  86. "sourceMap": false,
  87. "namedChunks": false,
  88. "extractLicenses": true,
  89. "vendorChunk": false,
  90. "buildOptimizer": true
  91. },
  92. "development": {
  93. "buildOptimizer": false,
  94. "optimization": false,
  95. "vendorChunk": true,
  96. "extractLicenses": false,
  97. "sourceMap": true,
  98. "namedChunks": true
  99. }
  100. },
  101. "defaultConfiguration": "production"
  102. },
  103. "serve": {
  104. "builder": "@angular-devkit/build-angular:dev-server",
  105. "options": {
  106. "proxyConfig": "proxy.conf.json",
  107. "headers": {
  108. "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate",
  109. "Pragma": "no-cache",
  110. "Expires": "0"
  111. }
  112. },
  113. "configurations": {
  114. "production": {
  115. "buildTarget": "ai-voc-frontend:build:production"
  116. },
  117. "development": {
  118. "buildTarget": "ai-voc-frontend:build:development"
  119. }
  120. },
  121. "defaultConfiguration": "development"
  122. },
  123. "extract-i18n": {
  124. "builder": "@angular-devkit/build-angular:extract-i18n",
  125. "options": {
  126. "buildTarget": "ai-voc-frontend:build"
  127. }
  128. },
  129. "test": {
  130. "builder": "@angular-devkit/build-angular:karma",
  131. "options": {
  132. "polyfills": [
  133. "zone.js",
  134. "zone.js/testing"
  135. ],
  136. "tsConfig": "tsconfig.spec.json",
  137. "inlineStyleLanguage": "scss",
  138. "assets": [
  139. "src/favicon.ico",
  140. "src/runtime-config.js",
  141. "src/assets"
  142. ],
  143. "styles": [
  144. "src/styles.scss"
  145. ],
  146. "scripts": []
  147. }
  148. },
  149. "lint": {
  150. "builder": "@angular-eslint/builder:lint",
  151. "options": {
  152. "lintFilePatterns": [
  153. "src/**/*.ts",
  154. "src/**/*.html"
  155. ]
  156. }
  157. }
  158. }
  159. }
  160. },
  161. "cli": {
  162. "analytics": false,
  163. "cache": {
  164. "enabled": true,
  165. "path": ".angular/cache",
  166. "environment": "all"
  167. },
  168. "schematicCollections": [
  169. "@angular-eslint/schematics"
  170. ]
  171. }
  172. }