angular.json 6.2 KB

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