simple page with news from all around the globe
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.

174 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. "proxyConfig": "proxy.conf.json",
  67. "browserTarget": "news-demo:build"
  68. },
  69. "configurations": {
  70. "production": {
  71. "browserTarget": "news-demo:build:production"
  72. }
  73. }
  74. },
  75. "extract-i18n": {
  76. "builder": "@angular-devkit/build-angular:extract-i18n",
  77. "options": {
  78. "browserTarget": "news-demo:build"
  79. }
  80. },
  81. "test": {
  82. "builder": "@angular-devkit/build-angular:karma",
  83. "options": {
  84. "main": "src/test.ts",
  85. "polyfills": "src/polyfills.ts",
  86. "tsConfig": "tsconfig.spec.json",
  87. "karmaConfig": "karma.conf.js",
  88. "assets": [
  89. "src/favicon.ico",
  90. "src/assets"
  91. ],
  92. "styles": [
  93. "src/styles.scss"
  94. ],
  95. "scripts": []
  96. }
  97. },
  98. "lint": {
  99. "builder": "@angular-devkit/build-angular:tslint",
  100. "options": {
  101. "tsConfig": [
  102. "tsconfig.app.json",
  103. "tsconfig.spec.json",
  104. "e2e/tsconfig.json",
  105. "tsconfig.server.json"
  106. ],
  107. "exclude": [
  108. "**/node_modules/**"
  109. ]
  110. }
  111. },
  112. "e2e": {
  113. "builder": "@angular-devkit/build-angular:protractor",
  114. "options": {
  115. "protractorConfig": "e2e/protractor.conf.js",
  116. "devServerTarget": "news-demo:serve"
  117. },
  118. "configurations": {
  119. "production": {
  120. "devServerTarget": "news-demo:serve:production"
  121. }
  122. }
  123. },
  124. "server": {
  125. "builder": "@angular-devkit/build-angular:server",
  126. "options": {
  127. "outputPath": "dist/news-demo/server",
  128. "main": "server.ts",
  129. "tsConfig": "tsconfig.server.json"
  130. },
  131. "configurations": {
  132. "production": {
  133. "outputHashing": "media",
  134. "fileReplacements": [{
  135. "replace": "src/environments/environment.ts",
  136. "with": "src/environments/environment.prod.ts"
  137. }],
  138. "sourceMap": false,
  139. "optimization": true
  140. }
  141. }
  142. },
  143. "serve-ssr": {
  144. "builder": "@nguniversal/builders:ssr-dev-server",
  145. "options": {
  146. "browserTarget": "news-demo:build",
  147. "serverTarget": "news-demo:server"
  148. },
  149. "configurations": {
  150. "production": {
  151. "browserTarget": "news-demo:build:production",
  152. "serverTarget": "news-demo:server:production"
  153. }
  154. }
  155. },
  156. "prerender": {
  157. "builder": "@nguniversal/builders:prerender",
  158. "options": {
  159. "browserTarget": "news-demo:build:production",
  160. "serverTarget": "news-demo:server:production",
  161. "routes": [
  162. "/"
  163. ]
  164. },
  165. "configurations": {
  166. "production": {}
  167. }
  168. }
  169. }
  170. }
  171. },
  172. "defaultProject": "news-demo"
  173. }