Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

130 rindas
3.6KB

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