angular.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. "aot": true,
  21. "baseHref": "/admin/",
  22. "outputPath": "dist",
  23. "index": "src/index.html",
  24. "main": "src/main.ts",
  25. "polyfills": "src/polyfills.ts",
  26. "tsConfig": "src/tsconfig.app.json",
  27. "assets": [
  28. "src/favicon.ico",
  29. "src/vendure-ui-config.json",
  30. "src/assets",
  31. "src/i18n-messages",
  32. {
  33. "glob": "**/*.*",
  34. "input": "src/app/extensions/__static-assets__",
  35. "output": "assets"
  36. }
  37. ],
  38. "styles": [
  39. "../../node_modules/@clr/icons/clr-icons.min.css",
  40. "src/styles/styles.scss"
  41. ],
  42. "stylePreprocessorOptions": {
  43. "includePaths": [
  44. "./src/styles"
  45. ]
  46. },
  47. "showCircularDependencies": false
  48. },
  49. "configurations": {
  50. "production": {
  51. "budgets": [
  52. {
  53. "type": "anyComponentStyle",
  54. "maximumWarning": "6kb"
  55. }
  56. ],
  57. "fileReplacements": [
  58. {
  59. "replace": "src/environments/environment.ts",
  60. "with": "src/environments/environment.prod.ts"
  61. }
  62. ],
  63. "optimization": true,
  64. "outputHashing": "all",
  65. "sourceMap": true,
  66. "extractCss": true,
  67. "namedChunks": false,
  68. "aot": true,
  69. "extractLicenses": true,
  70. "vendorChunk": false,
  71. "buildOptimizer": true
  72. },
  73. "plugin": {
  74. "budgets": [
  75. {
  76. "type": "anyComponentStyle",
  77. "maximumWarning": "6kb"
  78. }
  79. ],
  80. "fileReplacements": [
  81. {
  82. "replace": "src/environments/environment.ts",
  83. "with": "src/environments/environment.prod.ts"
  84. }
  85. ],
  86. "optimization": true,
  87. "outputHashing": "all",
  88. "sourceMap": true,
  89. "extractCss": true,
  90. "namedChunks": false,
  91. "aot": false,
  92. "extractLicenses": true,
  93. "vendorChunk": false,
  94. "buildOptimizer": true,
  95. "styles": [
  96. "../../@clr/icons/clr-icons.min.css",
  97. "src/styles/styles.scss"
  98. ]
  99. },
  100. "plugin-watch": {
  101. "budgets": [
  102. {
  103. "type": "anyComponentStyle",
  104. "maximumWarning": "6kb"
  105. }
  106. ],
  107. "aot": false,
  108. "styles": [
  109. "../../@clr/icons/clr-icons.min.css",
  110. "src/styles/styles.scss"
  111. ]
  112. },
  113. "plugin-dev": {
  114. "budgets": [
  115. {
  116. "type": "anyComponentStyle",
  117. "maximumWarning": "6kb"
  118. }
  119. ],
  120. "aot": false,
  121. "styles": [
  122. "../../node_modules/@clr/icons/clr-icons.min.css",
  123. "src/styles/styles.scss"
  124. ]
  125. }
  126. }
  127. },
  128. "serve": {
  129. "builder": "@angular-devkit/build-angular:dev-server",
  130. "options": {
  131. "browserTarget": "vendure-admin:build"
  132. },
  133. "configurations": {
  134. "production": {
  135. "browserTarget": "vendure-admin:build:production"
  136. },
  137. "plugin": {
  138. "browserTarget": "vendure-admin:build:plugin-watch"
  139. },
  140. "plugin-dev": {
  141. "browserTarget": "vendure-admin:build:plugin-dev"
  142. }
  143. }
  144. },
  145. "extract-i18n": {
  146. "builder": "@angular-devkit/build-angular:extract-i18n",
  147. "options": {
  148. "browserTarget": "vendure-admin:build"
  149. }
  150. },
  151. "test": {
  152. "builder": "@angular-devkit/build-angular:karma",
  153. "options": {
  154. "main": "src/test.ts",
  155. "polyfills": "src/polyfills.ts",
  156. "tsConfig": "src/tsconfig.spec.json",
  157. "karmaConfig": "src/karma.conf.js",
  158. "styles": [
  159. "src/styles/styles.scss"
  160. ],
  161. "scripts": [],
  162. "assets": [
  163. "src/favicon.ico",
  164. "src/assets"
  165. ],
  166. "stylePreprocessorOptions": {
  167. "includePaths": [
  168. "./src/styles"
  169. ]
  170. }
  171. }
  172. },
  173. "lint": {
  174. "builder": "@angular-devkit/build-angular:tslint",
  175. "options": {
  176. "tsConfig": [
  177. "src/tsconfig.app.json",
  178. "src/tsconfig.spec.json"
  179. ],
  180. "exclude": [
  181. "**/node_modules/**"
  182. ]
  183. }
  184. }
  185. }
  186. },
  187. "vendure-admin-e2e": {
  188. "root": "e2e/",
  189. "projectType": "application",
  190. "architect": {
  191. "e2e": {
  192. "builder": "@angular-devkit/build-angular:protractor",
  193. "options": {
  194. "protractorConfig": "e2e/protractor.conf.js",
  195. "devServerTarget": "vendure-admin:serve"
  196. },
  197. "configurations": {
  198. "production": {
  199. "devServerTarget": "vendure-admin:serve:production"
  200. }
  201. }
  202. },
  203. "lint": {
  204. "builder": "@angular-devkit/build-angular:tslint",
  205. "options": {
  206. "tsConfig": "e2e/tsconfig.e2e.json",
  207. "exclude": [
  208. "**/node_modules/**"
  209. ]
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "defaultProject": "vendure-admin",
  216. "schematics": {
  217. "@schematics/angular:component": {
  218. "skipTests": true,
  219. "changeDetection": "OnPush"
  220. }
  221. },
  222. "cli": {
  223. "packageManager": "yarn",
  224. "analytics": "61fa89f7-706a-46c0-bcdb-b1d3664195ce"
  225. }
  226. }