angular.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "yss-project": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "app",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular/build:application",
  19. "options": {
  20. "browser": "src/main.ts",
  21. "polyfills": [
  22. "zone.js"
  23. ],
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "assets": [
  27. {
  28. "glob": "**/*",
  29. "input": "public"
  30. }
  31. ],
  32. "styles": [
  33. "src/styles.scss"
  34. ],
  35. "allowedCommonJsDependencies": [
  36. "microsoft-cognitiveservices-speech-sdk",
  37. "mathjax-full",
  38. "recorder-core",
  39. "dhtmlxscheduler",
  40. "codemirror",
  41. "mxgraph",
  42. "plupload",
  43. "qrious",
  44. "wangeditor",
  45. "echarts",
  46. "querystring",
  47. "spark-md5",
  48. "jquery",
  49. "markdown-it-abbr",
  50. "markdown-it-deflist",
  51. "markdown-it-ins",
  52. "markdown-it-mark",
  53. "markdown-it-ruby",
  54. "markdown-it-sub",
  55. "markdown-it-footnote",
  56. "markdown-it-sup",
  57. "plantuml-encoder",
  58. "@amap/amap-jsapi-loader",
  59. "jsqr",
  60. "dhtmlx-gantt",
  61. "@ctrl/ngx-codemirror",
  62. "node_modules/wangeditor/release/wangEditor.js"
  63. ]
  64. },
  65. "configurations": {
  66. "production": {
  67. "budgets": [
  68. {
  69. "type": "initial",
  70. "maximumWarning": "10MB",
  71. "maximumError": "20MB"
  72. },
  73. {
  74. "type": "anyComponentStyle",
  75. "maximumWarning": "10MB",
  76. "maximumError": "20MB"
  77. }
  78. ],
  79. "outputHashing": "all",
  80. "namedChunks": true,
  81. "optimization": {
  82. "fonts": {
  83. "inline": false
  84. }
  85. }
  86. },
  87. "development": {
  88. "optimization": false,
  89. "extractLicenses": false,
  90. "sourceMap": true
  91. }
  92. },
  93. "defaultConfiguration": "production"
  94. },
  95. "serve": {
  96. "builder": "@angular/build:dev-server",
  97. "configurations": {
  98. "production": {
  99. "buildTarget": "yss-project:build:production"
  100. },
  101. "development": {
  102. "buildTarget": "yss-project:build:development"
  103. }
  104. },
  105. "defaultConfiguration": "development"
  106. },
  107. "extract-i18n": {
  108. "builder": "@angular/build:extract-i18n"
  109. },
  110. "test": {
  111. "builder": "@angular/build:karma",
  112. "options": {
  113. "polyfills": [
  114. "zone.js",
  115. "zone.js/testing"
  116. ],
  117. "tsConfig": "tsconfig.spec.json",
  118. "inlineStyleLanguage": "scss",
  119. "assets": [
  120. {
  121. "glob": "**/*",
  122. "input": "public"
  123. }
  124. ],
  125. "styles": [
  126. "src/styles.scss"
  127. ]
  128. }
  129. },
  130. "lint": {
  131. "builder": "@angular-eslint/builder:lint",
  132. "options": {
  133. "lintFilePatterns": [
  134. "src/**/*.ts",
  135. "src/**/*.html"
  136. ]
  137. }
  138. }
  139. }
  140. }
  141. },
  142. "cli": {
  143. "schematicCollections": [
  144. "angular-eslint"
  145. ]
  146. }
  147. }