angular.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ng-alain": {
  7. "projectType": "application",
  8. "root": "",
  9. "sourceRoot": "src",
  10. "prefix": "app",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "less"
  14. },
  15. "@schematics/angular:application": {
  16. "strict": true
  17. }
  18. },
  19. "architect": {
  20. "build": {
  21. "builder": "@angular-devkit/build-angular:browser",
  22. "options": {
  23. "outputPath": "dist",
  24. "index": "src/index.html",
  25. "main": "src/main.ts",
  26. "tsConfig": "tsconfig.app.json",
  27. "polyfills": "src/polyfills.ts",
  28. "assets": ["src/assets", "src/favicon.ico"],
  29. "styles": ["src/styles.less"],
  30. "scripts": [],
  31. "allowedCommonJsDependencies": ["ajv", "ajv-formats"],
  32. "stylePreprocessorOptions": {
  33. "includePaths": [
  34. "node_modules/"
  35. ]
  36. }
  37. },
  38. "configurations": {
  39. "production": {
  40. "fileReplacements": [
  41. {
  42. "replace": "src/environments/environment.ts",
  43. "with": "src/environments/environment.prod.ts"
  44. }
  45. ],
  46. "outputHashing": "all",
  47. "budgets": [
  48. {
  49. "type": "initial",
  50. "maximumWarning": "2mb",
  51. "maximumError": "6mb"
  52. },
  53. {
  54. "type": "anyComponentStyle",
  55. "maximumWarning": "6kb",
  56. "maximumError": "10kb"
  57. }
  58. ]
  59. },
  60. "development": {
  61. "buildOptimizer": false,
  62. "optimization": false,
  63. "vendorChunk": true,
  64. "extractLicenses": false,
  65. "sourceMap": true,
  66. "namedChunks": true
  67. }
  68. },
  69. "defaultConfiguration": "production"
  70. },
  71. "serve": {
  72. "builder": "@angular-devkit/build-angular:dev-server",
  73. "options": {
  74. "browserTarget": "ng-alain:build",
  75. "disableHostCheck": true,
  76. "proxyConfig": "proxy.conf.js"
  77. },
  78. "configurations": {
  79. "production": {
  80. "browserTarget": "ng-alain:build:production"
  81. },
  82. "development": {
  83. "browserTarget": "ng-alain:build:development"
  84. }
  85. },
  86. "defaultConfiguration": "development"
  87. },
  88. "extract-i18n": {
  89. "builder": "@angular-devkit/build-angular:extract-i18n",
  90. "options": {
  91. "browserTarget": "ng-alain:build"
  92. }
  93. },
  94. "test": {
  95. "builder": "@angular-devkit/build-angular:karma",
  96. "options": {
  97. "main": "src/test.ts",
  98. "polyfills": "src/polyfills.ts",
  99. "karmaConfig": "karma.conf.js",
  100. "tsConfig": "tsconfig.spec.json",
  101. "scripts": [],
  102. "styles": [],
  103. "assets": ["src/assets"]
  104. }
  105. },
  106. "lint": {
  107. "builder": "@angular-eslint/builder:lint",
  108. "options": {
  109. "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
  110. }
  111. },
  112. "e2e": {
  113. "builder": "@angular-devkit/build-angular:protractor",
  114. "options": {
  115. "protractorConfig": "e2e/protractor.conf.js",
  116. "devServerTarget": "ng-alain:serve"
  117. },
  118. "configurations": {
  119. "production": {
  120. "devServerTarget": "ng-alain:serve:production"
  121. }
  122. }
  123. }
  124. }
  125. }
  126. },
  127. "defaultProject": "ng-alain",
  128. "cli": {
  129. "packageManager": "yarn"
  130. }
  131. }