angular.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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/theme.min.css",
  31. "src/assets",
  32. "src/i18n-messages",
  33. {
  34. "glob": "**/*.*",
  35. "input": "static-assets",
  36. "output": "assets"
  37. }
  38. ],
  39. "styles": [
  40. "src/styles/styles.scss"
  41. ],
  42. "stylePreprocessorOptions": {
  43. "includePaths": [
  44. "./src/styles"
  45. ]
  46. },
  47. "showCircularDependencies": false,
  48. "allowedCommonJsDependencies": [
  49. "graphql-tag",
  50. "zen-observable",
  51. "lodash",
  52. "apollo-upload-client",
  53. "@vendure/common/lib/simple-deep-clone"
  54. ]
  55. },
  56. "configurations": {
  57. "production": {
  58. "budgets": [
  59. {
  60. "type": "anyComponentStyle",
  61. "maximumWarning": "6kb"
  62. }
  63. ],
  64. "fileReplacements": [
  65. {
  66. "replace": "src/environment.ts",
  67. "with": "src/environment.prod.ts"
  68. }
  69. ],
  70. "optimization": true,
  71. "outputHashing": "all",
  72. "sourceMap": true,
  73. "extractCss": true,
  74. "namedChunks": false,
  75. "aot": true,
  76. "extractLicenses": true,
  77. "vendorChunk": false,
  78. "buildOptimizer": false
  79. }
  80. }
  81. },
  82. "serve": {
  83. "builder": "@angular-devkit/build-angular:dev-server",
  84. "options": {
  85. "browserTarget": "vendure-admin:build"
  86. }
  87. }
  88. }
  89. }
  90. },
  91. "defaultProject": "vendure-admin",
  92. "schematics": {
  93. "@schematics/angular:component": {
  94. "skipTests": true,
  95. "changeDetection": "OnPush"
  96. }
  97. },
  98. "cli": {
  99. "packageManager": "yarn",
  100. "analytics": false
  101. }
  102. }