angular.json 4.6 KB

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