angular.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. "style": "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/lib/static/index.html",
  23. "main": "src/main.ts",
  24. "polyfills": "src/lib/static/polyfills.ts",
  25. "tsConfig": "src/tsconfig.app.json",
  26. "assets": [
  27. { "glob": "**/*", "input": "src/lib/static/", "output": "/" }
  28. ],
  29. "styles": [
  30. "src/lib/static/styles/styles.scss"
  31. ],
  32. "stylePreprocessorOptions": {
  33. "includePaths": [
  34. "./src/lib/static/styles"
  35. ]
  36. },
  37. "showCircularDependencies": false,
  38. "allowedCommonJsDependencies": [
  39. "graphql-tag",
  40. "zen-observable",
  41. "lodash",
  42. "apollo-upload-client",
  43. "@vendure/common/lib/simple-deep-clone"
  44. ],
  45. "vendorChunk": true,
  46. "extractLicenses": false,
  47. "buildOptimizer": false,
  48. "sourceMap": true,
  49. "optimization": false,
  50. "namedChunks": true
  51. },
  52. "configurations": {
  53. "production": {
  54. "budgets": [
  55. {
  56. "type": "anyComponentStyle",
  57. "maximumWarning": "6kb"
  58. }
  59. ],
  60. "fileReplacements": [
  61. {
  62. "replace": "src/environments/environment.ts",
  63. "with": "src/environments/environment.prod.ts"
  64. }
  65. ],
  66. "optimization": {
  67. "styles": {
  68. "inlineCritical": false
  69. }
  70. },
  71. "outputHashing": "all",
  72. "namedChunks": false,
  73. "extractLicenses": true,
  74. "vendorChunk": false
  75. }
  76. },
  77. "defaultConfiguration": ""
  78. },
  79. "serve": {
  80. "builder": "@angular-devkit/build-angular:dev-server",
  81. "options": {
  82. "browserTarget": "vendure-admin:build"
  83. },
  84. "configurations": {
  85. "production": {
  86. "browserTarget": "vendure-admin:build:production"
  87. },
  88. "plugin": {
  89. "browserTarget": "vendure-admin:build:plugin-watch"
  90. },
  91. "plugin-dev": {
  92. "browserTarget": "vendure-admin:build:plugin-dev-watch"
  93. }
  94. }
  95. },
  96. "extract-i18n": {
  97. "builder": "@angular-devkit/build-angular:extract-i18n",
  98. "options": {
  99. "browserTarget": "vendure-admin:build"
  100. }
  101. },
  102. "test": {
  103. "builder": "@angular-devkit/build-angular:karma",
  104. "options": {
  105. "main": "src/test.ts",
  106. "polyfills": "src/lib/static/polyfills.ts",
  107. "tsConfig": "src/tsconfig.spec.json",
  108. "karmaConfig": "src/karma.conf.js",
  109. "styles": [
  110. "src/lib/static/styles/styles.scss"
  111. ],
  112. "scripts": [],
  113. "assets": [
  114. "src/lib/static/favicon.ico",
  115. "src/lib/static/assets"
  116. ],
  117. "stylePreprocessorOptions": {
  118. "includePaths": [
  119. "./src/lib/static/styles"
  120. ]
  121. }
  122. }
  123. },
  124. "lint": {
  125. "builder": "@angular-devkit/build-angular:tslint",
  126. "options": {
  127. "tsConfig": [
  128. "src/tsconfig.app.json",
  129. "src/tsconfig.spec.json"
  130. ],
  131. "exclude": [
  132. "**/node_modules/**"
  133. ]
  134. }
  135. }
  136. }
  137. },
  138. "vendure-admin-e2e": {
  139. "root": "e2e/",
  140. "projectType": "application",
  141. "architect": {
  142. "e2e": {
  143. "builder": "@angular-devkit/build-angular:protractor",
  144. "options": {
  145. "protractorConfig": "e2e/protractor.conf.js",
  146. "devServerTarget": "vendure-admin:serve"
  147. },
  148. "configurations": {
  149. "production": {
  150. "devServerTarget": "vendure-admin:serve:production"
  151. }
  152. }
  153. },
  154. "lint": {
  155. "builder": "@angular-devkit/build-angular:tslint",
  156. "options": {
  157. "tsConfig": "e2e/tsconfig.e2e.json",
  158. "exclude": [
  159. "**/node_modules/**"
  160. ]
  161. }
  162. }
  163. }
  164. },
  165. "vendure-admin-lib": {
  166. "projectType": "library",
  167. "root": "",
  168. "sourceRoot": "src",
  169. "prefix": "vdr",
  170. "architect": {
  171. "build": {
  172. "builder": "@angular-devkit/build-angular:ng-packagr",
  173. "options": {
  174. "tsConfig": "./tsconfig.lib.json",
  175. "project": "./src/lib/ng-package.json"
  176. },
  177. "configurations": {
  178. "production": {
  179. "tsConfig": "./tsconfig.lib.prod.json"
  180. }
  181. }
  182. }
  183. }
  184. }
  185. },
  186. "defaultProject": "vendure-admin",
  187. "schematics": {
  188. "@schematics/angular:component": {
  189. "skipTests": true,
  190. "changeDetection": "OnPush"
  191. }
  192. },
  193. "cli": {
  194. "packageManager": "yarn",
  195. "analytics": "61fa89f7-706a-46c0-bcdb-b1d3664195ce"
  196. }
  197. }