Base de code pour une application electron a base d'angular.

angular.json 4.1KB

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