angular.json 5.0 KB

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