angular.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "cli": {
  5. "cache": {
  6. "enabled": false
  7. },
  8. "analytics": false
  9. },
  10. "newProjectRoot": "projects",
  11. "projects": {
  12. "pcoloring-zorro": {
  13. "projectType": "application",
  14. "schematics": {
  15. "@schematics/angular:component": {
  16. "inlineTemplate": true,
  17. "inlineStyle": true,
  18. "style": "less",
  19. "skipTests": true
  20. },
  21. "@schematics/angular:class": {
  22. "skipTests": true
  23. },
  24. "@schematics/angular:directive": {
  25. "skipTests": true
  26. },
  27. "@schematics/angular:guard": {
  28. "skipTests": true
  29. },
  30. "@schematics/angular:interceptor": {
  31. "skipTests": true
  32. },
  33. "@schematics/angular:pipe": {
  34. "skipTests": true
  35. },
  36. "@schematics/angular:resolver": {
  37. "skipTests": true
  38. },
  39. "@schematics/angular:service": {
  40. "skipTests": true
  41. },
  42. "@schematics/angular:application": {
  43. "strict": true
  44. }
  45. },
  46. "root": "",
  47. "sourceRoot": "src",
  48. "prefix": "app",
  49. "i18n": {
  50. "sourceLocale": "zh",
  51. "locales": {
  52. "en": {
  53. "translation": "src/locale/messages.en.xlf"
  54. }
  55. }
  56. },
  57. "architect": {
  58. "build": {
  59. "builder": "@angular-devkit/build-angular:browser",
  60. "options": {
  61. "localize": true,
  62. "baseHref": "/app/",
  63. "outputPath": "../public/app/",
  64. "index": "src/index.html",
  65. "main": "src/main.ts",
  66. "polyfills": "src/polyfills.ts",
  67. "tsConfig": "tsconfig.app.json",
  68. "inlineStyleLanguage": "less",
  69. "assets": [
  70. "src/favicon.ico",
  71. "src/assets",
  72. {
  73. "glob": "**/*",
  74. "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  75. "output": "/assets/"
  76. }
  77. ],
  78. "styles": [
  79. "src/assets/bootstrap/bootstrap.scss",
  80. "src/styles.less",
  81. "node_modules/pace-js/themes/blue/pace-theme-minimal.css"
  82. ],
  83. "scripts": [
  84. "node_modules/pace-js/pace.min.js",
  85. "node_modules/@popperjs/core/dist/umd/popper.min.js",
  86. "node_modules/bootstrap/dist/js/bootstrap.min.js",
  87. "src/assets/js/pngquant.min.js"
  88. ],
  89. "webWorkerTsConfig": "tsconfig.worker.json"
  90. },
  91. "configurations": {
  92. "production": {
  93. "budgets": [
  94. {
  95. "type": "initial",
  96. "maximumWarning": "500kb",
  97. "maximumError": "3mb"
  98. },
  99. {
  100. "type": "anyComponentStyle",
  101. "maximumWarning": "2kb",
  102. "maximumError": "4kb"
  103. }
  104. ],
  105. "fileReplacements": [
  106. {
  107. "replace": "src/environments/environment.ts",
  108. "with": "src/environments/environment.prod.ts"
  109. }
  110. ],
  111. "outputHashing": "all"
  112. },
  113. "development": {
  114. "buildOptimizer": false,
  115. "optimization": false,
  116. "vendorChunk": true,
  117. "extractLicenses": false,
  118. "sourceMap": true,
  119. "namedChunks": true,
  120. "localize": ["zh"]
  121. },
  122. "development-en": {
  123. "buildOptimizer": false,
  124. "optimization": false,
  125. "vendorChunk": true,
  126. "extractLicenses": false,
  127. "sourceMap": true,
  128. "namedChunks": true,
  129. "localize": ["en"]
  130. }
  131. },
  132. "defaultConfiguration": "production"
  133. },
  134. "serve": {
  135. "builder": "@angular-devkit/build-angular:dev-server",
  136. "configurations": {
  137. "production": {
  138. "browserTarget": "pcoloring-zorro:build:production"
  139. },
  140. "development": {
  141. "browserTarget": "pcoloring-zorro:build:development"
  142. },
  143. "development-en": {
  144. "browserTarget": "pcoloring-zorro:build:development-en"
  145. }
  146. },
  147. "defaultConfiguration": "development"
  148. },
  149. "extract-i18n": {
  150. "builder": "@angular-devkit/build-angular:extract-i18n",
  151. "options": {
  152. "browserTarget": "pcoloring-zorro:build"
  153. }
  154. }
  155. }
  156. }
  157. },
  158. "defaultProject": "pcoloring-zorro"
  159. }