angular.json 3.9 KB

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