angular.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ng-dynaform": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "architect": {
  11. "build": {
  12. "builder": "@angular-devkit/build-angular:browser",
  13. "options": {
  14. "outputPath": "dist",
  15. "index": "src/index.html",
  16. "main": "src/main.ts",
  17. "tsConfig": "src/tsconfig.app.json",
  18. "polyfills": "src/polyfills.ts",
  19. "assets": [
  20. "src/assets",
  21. "src/favicon.ico"
  22. ],
  23. "styles": [
  24. "node_modules/@clr/icons/clr-icons.min.css",
  25. "src/styles.scss"
  26. ],
  27. "scripts": [
  28. "node_modules/@clr/icons/clr-icons.min.js"
  29. ]
  30. },
  31. "configurations": {
  32. "production": {
  33. "optimization": true,
  34. "outputHashing": "all",
  35. "sourceMap": false,
  36. "extractCss": true,
  37. "namedChunks": false,
  38. "aot": true,
  39. "extractLicenses": true,
  40. "vendorChunk": false,
  41. "buildOptimizer": true,
  42. "fileReplacements": [
  43. {
  44. "replace": "src/environments/environment.ts",
  45. "with": "src/environments/environment.prod.ts"
  46. }
  47. ]
  48. }
  49. }
  50. },
  51. "serve": {
  52. "builder": "@angular-devkit/build-angular:dev-server",
  53. "options": {
  54. "browserTarget": "ng-dynaform:build"
  55. },
  56. "configurations": {
  57. "production": {
  58. "browserTarget": "ng-dynaform:build:production"
  59. }
  60. }
  61. },
  62. "extract-i18n": {
  63. "builder": "@angular-devkit/build-angular:extract-i18n",
  64. "options": {
  65. "browserTarget": "ng-dynaform:build"
  66. }
  67. },
  68. "test": {
  69. "builder": "@angular-devkit/build-angular:karma",
  70. "options": {
  71. "main": "src/test.ts",
  72. "karmaConfig": "./karma.conf.js",
  73. "polyfills": "src/polyfills.ts",
  74. "tsConfig": "src/tsconfig.spec.json",
  75. "scripts": [],
  76. "styles": [
  77. "src/styles.scss"
  78. ],
  79. "assets": [
  80. "src/assets",
  81. "src/favicon.ico"
  82. ]
  83. }
  84. },
  85. "lint": {
  86. "builder": "@angular-devkit/build-angular:tslint",
  87. "options": {
  88. "tsConfig": [
  89. "src/tsconfig.app.json",
  90. "src/tsconfig.spec.json"
  91. ],
  92. "exclude": [
  93. "**/node_modules/**"
  94. ]
  95. }
  96. }
  97. }
  98. },
  99. "ng-dynaform-e2e": {
  100. "root": "e2e",
  101. "sourceRoot": "e2e",
  102. "projectType": "application",
  103. "architect": {
  104. "e2e": {
  105. "builder": "@angular-devkit/build-angular:protractor",
  106. "options": {
  107. "protractorConfig": "./protractor.conf.js",
  108. "devServerTarget": "ng-dynaform:serve"
  109. }
  110. },
  111. "lint": {
  112. "builder": "@angular-devkit/build-angular:tslint",
  113. "options": {
  114. "tsConfig": [
  115. "e2e/tsconfig.e2e.json"
  116. ],
  117. "exclude": [
  118. "**/node_modules/**"
  119. ]
  120. }
  121. }
  122. }
  123. }
  124. },
  125. "defaultProject": "ng-dynaform",
  126. "schematics": {
  127. "@schematics/angular:component": {
  128. "prefix": "app",
  129. "styleext": "scss"
  130. },
  131. "@schematics/angular:directive": {
  132. "prefix": "app"
  133. }
  134. }
  135. }