angular.json 5.8 KB

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