micro-front-end
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.

216 lines
5.5 KiB

  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "cli": {
  4. "analytics": false
  5. },
  6. "version": 1,
  7. "newProjectRoot": "projects",
  8. "projects": {
  9. "shell": {
  10. "projectType": "application",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss"
  14. },
  15. "@schematics/angular:application": {
  16. "strict": true
  17. }
  18. },
  19. "root": "",
  20. "sourceRoot": "src",
  21. "prefix": "shell",
  22. "architect": {
  23. "build": {
  24. "builder": "ngx-build-plus:browser",
  25. "options": {
  26. "outputPath": "dist/shell",
  27. "index": "src/index.html",
  28. "main": "src/main.ts",
  29. "polyfills": "src/polyfills.ts",
  30. "tsConfig": "tsconfig.app.json",
  31. "inlineStyleLanguage": "scss",
  32. "assets": [
  33. "src/favicon.ico",
  34. "src/assets"
  35. ],
  36. "styles": [
  37. "src/styles.scss"
  38. ],
  39. "scripts": [],
  40. "extraWebpackConfig": "webpack.config.js",
  41. "commonChunk": false
  42. },
  43. "configurations": {
  44. "production": {
  45. "budgets": [
  46. {
  47. "type": "initial",
  48. "maximumWarning": "500kb",
  49. "maximumError": "1mb"
  50. },
  51. {
  52. "type": "anyComponentStyle",
  53. "maximumWarning": "2kb",
  54. "maximumError": "4kb"
  55. }
  56. ],
  57. "fileReplacements": [
  58. {
  59. "replace": "src/environments/environment.ts",
  60. "with": "src/environments/environment.prod.ts"
  61. }
  62. ],
  63. "outputHashing": "all",
  64. "extraWebpackConfig": "webpack.prod.config.js"
  65. },
  66. "development": {
  67. "buildOptimizer": false,
  68. "optimization": false,
  69. "vendorChunk": true,
  70. "extractLicenses": false,
  71. "sourceMap": true,
  72. "namedChunks": true
  73. }
  74. },
  75. "defaultConfiguration": "production"
  76. },
  77. "serve": {
  78. "builder": "ngx-build-plus:dev-server",
  79. "configurations": {
  80. "production": {
  81. "browserTarget": "shell:build:production",
  82. "extraWebpackConfig": "webpack.prod.config.js"
  83. },
  84. "development": {
  85. "browserTarget": "shell:build:development"
  86. }
  87. },
  88. "defaultConfiguration": "development",
  89. "options": {
  90. "port": 5000,
  91. "extraWebpackConfig": "webpack.config.js"
  92. }
  93. },
  94. "extract-i18n": {
  95. "builder": "ngx-build-plus:extract-i18n",
  96. "options": {
  97. "browserTarget": "shell:build",
  98. "extraWebpackConfig": "webpack.config.js"
  99. }
  100. },
  101. "test": {
  102. "builder": "@angular-devkit/build-angular:karma",
  103. "options": {
  104. "main": "src/test.ts",
  105. "polyfills": "src/polyfills.ts",
  106. "tsConfig": "tsconfig.spec.json",
  107. "karmaConfig": "karma.conf.js",
  108. "inlineStyleLanguage": "scss",
  109. "assets": [
  110. "src/favicon.ico",
  111. "src/assets"
  112. ],
  113. "styles": [
  114. "src/styles.scss"
  115. ],
  116. "scripts": []
  117. }
  118. }
  119. }
  120. },
  121. "my-shared": {
  122. "projectType": "library",
  123. "root": "projects/my-shared",
  124. "sourceRoot": "projects/my-shared/src",
  125. "prefix": "lib",
  126. "architect": {
  127. "build": {
  128. "builder": "@angular-devkit/build-angular:ng-packagr",
  129. "options": {
  130. "project": "projects/my-shared/ng-package.json"
  131. },
  132. "configurations": {
  133. "production": {
  134. "tsConfig": "projects/my-shared/tsconfig.lib.prod.json"
  135. },
  136. "development": {
  137. "tsConfig": "projects/my-shared/tsconfig.lib.json"
  138. }
  139. },
  140. "defaultConfiguration": "production"
  141. },
  142. "test": {
  143. "builder": "@angular-devkit/build-angular:karma",
  144. "options": {
  145. "main": "projects/my-shared/src/test.ts",
  146. "tsConfig": "projects/my-shared/tsconfig.spec.json",
  147. "karmaConfig": "projects/my-shared/karma.conf.js"
  148. }
  149. }
  150. }
  151. },
  152. "dynamic-core": {
  153. "projectType": "library",
  154. "root": "projects/dynamic-core",
  155. "sourceRoot": "projects/dynamic-core/src",
  156. "prefix": "lib",
  157. "architect": {
  158. "build": {
  159. "builder": "@angular-devkit/build-angular:ng-packagr",
  160. "options": {
  161. "project": "projects/dynamic-core/ng-package.json"
  162. },
  163. "configurations": {
  164. "production": {
  165. "tsConfig": "projects/dynamic-core/tsconfig.lib.prod.json"
  166. },
  167. "development": {
  168. "tsConfig": "projects/dynamic-core/tsconfig.lib.json"
  169. }
  170. },
  171. "defaultConfiguration": "production"
  172. },
  173. "test": {
  174. "builder": "@angular-devkit/build-angular:karma",
  175. "options": {
  176. "main": "projects/dynamic-core/src/test.ts",
  177. "tsConfig": "projects/dynamic-core/tsconfig.spec.json",
  178. "karmaConfig": "projects/dynamic-core/karma.conf.js"
  179. }
  180. }
  181. }
  182. },
  183. "dynamic-components": {
  184. "projectType": "library",
  185. "root": "projects/dynamic-components",
  186. "sourceRoot": "projects/dynamic-components/src",
  187. "prefix": "lib",
  188. "architect": {
  189. "build": {
  190. "builder": "@angular-devkit/build-angular:ng-packagr",
  191. "options": {
  192. "project": "projects/dynamic-components/ng-package.json"
  193. },
  194. "configurations": {
  195. "production": {
  196. "tsConfig": "projects/dynamic-components/tsconfig.lib.prod.json"
  197. },
  198. "development": {
  199. "tsConfig": "projects/dynamic-components/tsconfig.lib.json"
  200. }
  201. },
  202. "defaultConfiguration": "production"
  203. },
  204. "test": {
  205. "builder": "@angular-devkit/build-angular:karma",
  206. "options": {
  207. "main": "projects/dynamic-components/src/test.ts",
  208. "tsConfig": "projects/dynamic-components/tsconfig.spec.json",
  209. "karmaConfig": "projects/dynamic-components/karma.conf.js"
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "defaultProject": "shell"
  216. }