angular.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. },
  29. "configurations": {
  30. "production": {
  31. "optimization": true,
  32. "outputHashing": "all",
  33. "sourceMap": false,
  34. "extractCss": true,
  35. "namedChunks": false,
  36. "aot": true,
  37. "extractLicenses": true,
  38. "vendorChunk": false,
  39. "buildOptimizer": true,
  40. "fileReplacements": [
  41. {
  42. "replace": "src/environments/environment.ts",
  43. "with": "src/environments/environment.prod.ts"
  44. }
  45. ]
  46. }
  47. }
  48. },
  49. "serve": {
  50. "builder": "@angular-devkit/build-angular:dev-server",
  51. "options": {
  52. "browserTarget": "ng-dynaform:build"
  53. },
  54. "configurations": {
  55. "production": {
  56. "browserTarget": "ng-dynaform:build:production"
  57. }
  58. }
  59. },
  60. "extract-i18n": {
  61. "builder": "@angular-devkit/build-angular:extract-i18n",
  62. "options": {
  63. "browserTarget": "ng-dynaform:build"
  64. }
  65. },
  66. "test": {
  67. "builder": "@angular-devkit/build-angular:karma",
  68. "options": {
  69. "main": "src/test.ts",
  70. "karmaConfig": "./karma.conf.js",
  71. "polyfills": "src/polyfills.ts",
  72. "tsConfig": "src/tsconfig.spec.json",
  73. "scripts": [],
  74. "styles": [
  75. "src/styles.scss"
  76. ],
  77. "assets": [
  78. "src/assets",
  79. "src/favicon.ico"
  80. ]
  81. }
  82. },
  83. "lint": {
  84. "builder": "@angular-devkit/build-angular:tslint",
  85. "options": {
  86. "tsConfig": [
  87. "src/tsconfig.app.json",
  88. "src/tsconfig.spec.json"
  89. ],
  90. "exclude": [
  91. "**/node_modules/**"
  92. ]
  93. }
  94. }
  95. }
  96. },
  97. "ng-dynaform-e2e": {
  98. "root": "e2e",
  99. "sourceRoot": "e2e",
  100. "projectType": "application",
  101. "architect": {
  102. "e2e": {
  103. "builder": "@angular-devkit/build-angular:protractor",
  104. "options": {
  105. "protractorConfig": "./protractor.conf.js",
  106. "devServerTarget": "ng-dynaform:serve"
  107. }
  108. },
  109. "lint": {
  110. "builder": "@angular-devkit/build-angular:tslint",
  111. "options": {
  112. "tsConfig": [
  113. "e2e/tsconfig.e2e.json"
  114. ],
  115. "exclude": [
  116. "**/node_modules/**"
  117. ]
  118. }
  119. }
  120. }
  121. }
  122. },
  123. "defaultProject": "ng-dynaform",
  124. "schematics": {
  125. "@schematics/angular:component": {
  126. "prefix": "app",
  127. "styleext": "scss"
  128. },
  129. "@schematics/angular:directive": {
  130. "prefix": "app"
  131. }
  132. }
  133. }