simple page with news from all around the globe

173 lines
5.0KB

  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "news-demo": {
  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/news-demo/browser",
  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. "replace": "src/environments/environment.ts",
  39. "with": "src/environments/environment.prod.ts"
  40. }],
  41. "optimization": true,
  42. "outputHashing": "all",
  43. "sourceMap": false,
  44. "extractCss": true,
  45. "namedChunks": false,
  46. "extractLicenses": true,
  47. "vendorChunk": false,
  48. "buildOptimizer": true,
  49. "budgets": [{
  50. "type": "initial",
  51. "maximumWarning": "2mb",
  52. "maximumError": "5mb"
  53. },
  54. {
  55. "type": "anyComponentStyle",
  56. "maximumWarning": "6kb",
  57. "maximumError": "10kb"
  58. }
  59. ]
  60. }
  61. }
  62. },
  63. "serve": {
  64. "builder": "@angular-devkit/build-angular:dev-server",
  65. "options": {
  66. "browserTarget": "news-demo:build"
  67. },
  68. "configurations": {
  69. "production": {
  70. "browserTarget": "news-demo:build:production"
  71. }
  72. }
  73. },
  74. "extract-i18n": {
  75. "builder": "@angular-devkit/build-angular:extract-i18n",
  76. "options": {
  77. "browserTarget": "news-demo:build"
  78. }
  79. },
  80. "test": {
  81. "builder": "@angular-devkit/build-angular:karma",
  82. "options": {
  83. "main": "src/test.ts",
  84. "polyfills": "src/polyfills.ts",
  85. "tsConfig": "tsconfig.spec.json",
  86. "karmaConfig": "karma.conf.js",
  87. "assets": [
  88. "src/favicon.ico",
  89. "src/assets"
  90. ],
  91. "styles": [
  92. "src/styles.scss"
  93. ],
  94. "scripts": []
  95. }
  96. },
  97. "lint": {
  98. "builder": "@angular-devkit/build-angular:tslint",
  99. "options": {
  100. "tsConfig": [
  101. "tsconfig.app.json",
  102. "tsconfig.spec.json",
  103. "e2e/tsconfig.json",
  104. "tsconfig.server.json"
  105. ],
  106. "exclude": [
  107. "**/node_modules/**"
  108. ]
  109. }
  110. },
  111. "e2e": {
  112. "builder": "@angular-devkit/build-angular:protractor",
  113. "options": {
  114. "protractorConfig": "e2e/protractor.conf.js",
  115. "devServerTarget": "news-demo:serve"
  116. },
  117. "configurations": {
  118. "production": {
  119. "devServerTarget": "news-demo:serve:production"
  120. }
  121. }
  122. },
  123. "server": {
  124. "builder": "@angular-devkit/build-angular:server",
  125. "options": {
  126. "outputPath": "dist/news-demo/server",
  127. "main": "server.ts",
  128. "tsConfig": "tsconfig.server.json"
  129. },
  130. "configurations": {
  131. "production": {
  132. "outputHashing": "media",
  133. "fileReplacements": [{
  134. "replace": "src/environments/environment.ts",
  135. "with": "src/environments/environment.prod.ts"
  136. }],
  137. "sourceMap": false,
  138. "optimization": true
  139. }
  140. }
  141. },
  142. "serve-ssr": {
  143. "builder": "@nguniversal/builders:ssr-dev-server",
  144. "options": {
  145. "browserTarget": "news-demo:build",
  146. "serverTarget": "news-demo:server"
  147. },
  148. "configurations": {
  149. "production": {
  150. "browserTarget": "news-demo:build:production",
  151. "serverTarget": "news-demo:server:production"
  152. }
  153. }
  154. },
  155. "prerender": {
  156. "builder": "@nguniversal/builders:prerender",
  157. "options": {
  158. "browserTarget": "news-demo:build:production",
  159. "serverTarget": "news-demo:server:production",
  160. "routes": [
  161. "/"
  162. ]
  163. },
  164. "configurations": {
  165. "production": {}
  166. }
  167. }
  168. }
  169. }
  170. },
  171. "defaultProject": "news-demo"
  172. }