angular.json 5.6 KB

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