You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

146 regels
4.2 KiB

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