angular.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "web-app": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "skipTests": false,
  11. "flat": false,
  12. "inlineStyle": true,
  13. "inlineTemplate": false,
  14. "style": "less"
  15. },
  16. "@schematics/angular:application": {
  17. "strict": true
  18. },
  19. "ng-alain:module": {
  20. "routing": true,
  21. "skipTests": false
  22. },
  23. "ng-alain:list": {
  24. "skipTests": false
  25. },
  26. "ng-alain:edit": {
  27. "skipTests": false,
  28. "modal": true
  29. },
  30. "ng-alain:view": {
  31. "skipTests": false,
  32. "modal": true
  33. },
  34. "ng-alain:curd": {
  35. "skipTests": false
  36. },
  37. "@schematics/angular:module": {
  38. "routing": true,
  39. "skipTests": false
  40. },
  41. "@schematics/angular:directive": {
  42. "skipTests": false
  43. },
  44. "@schematics/angular:service": {
  45. "skipTests": false
  46. }
  47. },
  48. "root": "",
  49. "sourceRoot": "src",
  50. "prefix": "app",
  51. "architect": {
  52. "build": {
  53. "builder": "@angular-devkit/build-angular:browser",
  54. "options": {
  55. "outputPath": "dist",
  56. "index": "src/index.html",
  57. "main": "src/main.ts",
  58. "polyfills": "src/polyfills.ts",
  59. "tsConfig": "tsconfig.app.json",
  60. "inlineStyleLanguage": "less",
  61. "assets": [
  62. "src/favicon.ico",
  63. "src/assets",
  64. {
  65. "glob": "**/*",
  66. "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  67. "output": "/assets/"
  68. }
  69. ],
  70. "styles": [
  71. "src/styles.less"
  72. ],
  73. "scripts": [],
  74. "allowedCommonJsDependencies": [
  75. "@antv/g2",
  76. "ajv",
  77. "ajv-formats",
  78. "date-fns",
  79. "file-saver"
  80. ]
  81. },
  82. "configurations": {
  83. "production": {
  84. "budgets": [
  85. {
  86. "type": "initial",
  87. "maximumWarning": "4mb",
  88. "maximumError": "4mb"
  89. },
  90. {
  91. "type": "anyComponentStyle",
  92. "maximumWarning": "2kb",
  93. "maximumError": "8kb"
  94. }
  95. ],
  96. "fileReplacements": [
  97. {
  98. "replace": "src/environments/environment.ts",
  99. "with": "src/environments/environment.prod.ts"
  100. }
  101. ],
  102. "outputHashing": "all"
  103. },
  104. "development": {
  105. "buildOptimizer": false,
  106. "optimization": false,
  107. "vendorChunk": true,
  108. "extractLicenses": false,
  109. "sourceMap": true,
  110. "namedChunks": true
  111. }
  112. },
  113. "defaultConfiguration": "production"
  114. },
  115. "serve": {
  116. "builder": "@angular-devkit/build-angular:dev-server",
  117. "configurations": {
  118. "production": {
  119. "browserTarget": "web-app:build:production"
  120. },
  121. "development": {
  122. "browserTarget": "web-app:build:development"
  123. }
  124. },
  125. "defaultConfiguration": "development",
  126. "options": {
  127. "proxyConfig": "proxy.conf.js"
  128. }
  129. },
  130. "extract-i18n": {
  131. "builder": "@angular-devkit/build-angular:extract-i18n",
  132. "options": {
  133. "browserTarget": "web-app:build"
  134. }
  135. },
  136. "test": {
  137. "builder": "@angular-devkit/build-angular:karma",
  138. "options": {
  139. "main": "src/test.ts",
  140. "polyfills": "src/polyfills.ts",
  141. "tsConfig": "tsconfig.spec.json",
  142. "karmaConfig": "karma.conf.js",
  143. "inlineStyleLanguage": "less",
  144. "assets": [
  145. "src/favicon.ico",
  146. "src/assets"
  147. ],
  148. "styles": [
  149. "src/styles.less"
  150. ],
  151. "scripts": []
  152. }
  153. },
  154. "lint": {
  155. "builder": "@angular-eslint/builder:lint",
  156. "options": {
  157. "lintFilePatterns": [
  158. "src/**/*.ts",
  159. "src/**/*.html"
  160. ]
  161. }
  162. }
  163. }
  164. }
  165. },
  166. "defaultProject": "web-app"
  167. }