迁移新平台,移植红墩界
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

217 line
5.5KB

  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "himp.platform.angular": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "skipTests": false,
  11. "flat": false,
  12. "inlineStyle": true,
  13. "inlineTemplate": false,
  14. "style": "less"
  15. },
  16. "ng-alain:module": {
  17. "routing": true
  18. },
  19. "ng-alain:list": {
  20. "skipTests": false
  21. },
  22. "ng-alain:edit": {
  23. "skipTests": false,
  24. "modal": true
  25. },
  26. "ng-alain:view": {
  27. "skipTests": false,
  28. "modal": true
  29. },
  30. "ng-alain:curd": {
  31. "skipTests": false
  32. },
  33. "@schematics/angular:module": {
  34. "routing": true
  35. },
  36. "@schematics/angular:directive": {
  37. "skipTests": false
  38. },
  39. "@schematics/angular:service": {
  40. "skipTests": false
  41. }
  42. },
  43. "root": "",
  44. "sourceRoot": "src",
  45. "prefix": "app",
  46. "architect": {
  47. "build": {
  48. "builder": "@angular-devkit/build-angular:application",
  49. "options": {
  50. "outputPath": "dist/himp.platform.angular",
  51. "index": "src/index.html",
  52. "browser": "src/main.ts",
  53. "polyfills": [
  54. "zone.js"
  55. ],
  56. "tsConfig": "tsconfig.app.json",
  57. "inlineStyleLanguage": "less",
  58. "assets": [
  59. "src/favicon.ico",
  60. "src/assets",
  61. "src/assets/menu/",
  62. "src/mobile.html",
  63. "src/assets/menu/diqiu.svg",
  64. {
  65. "glob": "**/*.woff2",
  66. "input": "src/assets/fonts",
  67. "output": "/assets/fonts"
  68. }
  69. ],
  70. "styles": [
  71. "src/styles.less",
  72. "src/styles/googleapiscss2.css"
  73. ],
  74. "scripts": [
  75. ],
  76. "allowedCommonJsDependencies": [
  77. "ajv",
  78. "ajv-formats",
  79. "extend",
  80. "file-saver",
  81. "mockjs"
  82. ],
  83. "stylePreprocessorOptions": {
  84. "includePaths": [
  85. "node_modules/"
  86. ]
  87. }
  88. },
  89. "configurations": {
  90. "production": {
  91. "budgets": [
  92. {
  93. "type": "initial",
  94. "maximumWarning": "2mb",
  95. "maximumError": "30mb"
  96. },
  97. {
  98. "type": "anyComponentStyle",
  99. "maximumWarning": "2kb",
  100. "maximumError": "300kb"
  101. }
  102. ],
  103. "outputHashing": "all",
  104. "fileReplacements": [
  105. {
  106. "replace": "src/environments/environment.ts",
  107. "with": "src/environments/environment.prod.ts"
  108. }
  109. ]
  110. },
  111. "linhe": {
  112. "budgets": [
  113. {
  114. "type": "initial",
  115. "maximumWarning": "2mb",
  116. "maximumError": "30mb"
  117. },
  118. {
  119. "type": "anyComponentStyle",
  120. "maximumWarning": "2kb",
  121. "maximumError": "300kb"
  122. }
  123. ],
  124. "outputHashing": "all",
  125. "fileReplacements": [
  126. {
  127. "replace": "src/environments/environment.ts",
  128. "with": "src/environments/environment.linhe.ts"
  129. }
  130. ]
  131. },
  132. "development": {
  133. "optimization": false,
  134. "extractLicenses": false,
  135. "sourceMap": true
  136. }
  137. },
  138. "defaultConfiguration": "production"
  139. },
  140. "serve": {
  141. "builder": "@angular-devkit/build-angular:dev-server",
  142. "configurations": {
  143. "production": {
  144. "buildTarget": "himp.platform.angular:build:production"
  145. },
  146. "linhe": {
  147. "buildTarget": "himp.platform.angular:build:linhe"
  148. },
  149. "development": {
  150. "buildTarget": "himp.platform.angular:build:development"
  151. }
  152. },
  153. "defaultConfiguration": "development",
  154. "options": {
  155. "proxyConfig": "proxy.conf.js"
  156. }
  157. },
  158. "extract-i18n": {
  159. "builder": "@angular-devkit/build-angular:extract-i18n",
  160. "options": {
  161. "buildTarget": "himp.platform.angular:build"
  162. }
  163. },
  164. "test": {
  165. "builder": "@angular-devkit/build-angular:karma",
  166. "options": {
  167. "polyfills": [
  168. "zone.js",
  169. "zone.js/testing"
  170. ],
  171. "tsConfig": "tsconfig.spec.json",
  172. "inlineStyleLanguage": "less",
  173. "assets": [
  174. "src/favicon.ico",
  175. "src/assets"
  176. ],
  177. "styles": [
  178. "src/styles.less"
  179. ],
  180. "scripts": []
  181. }
  182. },
  183. "lint": {
  184. "builder": "@angular-eslint/builder:lint",
  185. "options": {
  186. "lintFilePatterns": [
  187. "src/**/*.ts",
  188. "src/**/*.html"
  189. ]
  190. }
  191. }
  192. }
  193. }
  194. },
  195. "cli": {
  196. "analytics": false,
  197. "schematicCollections": [
  198. "@schematics/angular",
  199. "ng-alain"
  200. ]
  201. }
  202. }