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.

200 lines
5.9 KiB

  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ng-webdpt": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "architect": {
  11. "build": {
  12. "builder": "@angular-devkit/build-angular:browser",
  13. "options": {
  14. "allowedCommonJsDependencies": [
  15. "crypto-js",
  16. "ag-grid-angular",
  17. "ag-grid-community",
  18. "@ant-design/colors",
  19. "date-fns/format",
  20. "date-fns/parse",
  21. "qs",
  22. "@webdpt/framework/themes"
  23. ],
  24. "outputPath": "dist",
  25. "index": "src/index.html",
  26. "main": "src/main.ts",
  27. "tsConfig": "src/tsconfig.app.json",
  28. "polyfills": "src/polyfills.ts",
  29. "assets": [
  30. "src/assets",
  31. "src/favicon.ico",
  32. {
  33. "glob": "**/*",
  34. "input": "./node_modules/@webdpt/framework/assets/dw-framework",
  35. "output": "assets/dw-framework"
  36. },
  37. {
  38. "glob": "**/*",
  39. "input": "src/assets",
  40. "output": "assets"
  41. },
  42. {
  43. "glob": "**/*",
  44. "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  45. "output": "assets"
  46. },
  47. "src/manifest.webmanifest"
  48. ],
  49. "styles": [
  50. "src/styles.less"
  51. ],
  52. "scripts": [
  53. "node_modules/jsencrypt/bin/jsencrypt.js"
  54. ],
  55. "vendorChunk": true,
  56. "extractLicenses": false,
  57. "buildOptimizer": false,
  58. "sourceMap": true,
  59. "optimization": false,
  60. "namedChunks": true
  61. },
  62. "configurations": {
  63. "production": {
  64. "budgets": [
  65. {
  66. "type": "anyComponentStyle",
  67. "maximumWarning": "6kb"
  68. }
  69. ],
  70. "optimization": true,
  71. "outputHashing": "all",
  72. "sourceMap": false,
  73. "namedChunks": false,
  74. "extractLicenses": true,
  75. "vendorChunk": false,
  76. "buildOptimizer": true,
  77. "fileReplacements": [
  78. {
  79. "replace": "src/environments/environment.ts",
  80. "with": "src/environments/environment.prod.ts"
  81. }
  82. ],
  83. "serviceWorker": true
  84. },
  85. "service-worker-dev": {
  86. "budgets": [
  87. {
  88. "type": "anyComponentStyle",
  89. "maximumWarning": "6kb"
  90. }
  91. ],
  92. "outputHashing": "all",
  93. "namedChunks": false,
  94. "extractLicenses": true,
  95. "vendorChunk": false,
  96. "serviceWorker": true
  97. },
  98. "development": {
  99. "buildOptimizer": false,
  100. "optimization": false,
  101. "vendorChunk": true,
  102. "extractLicenses": false,
  103. "sourceMap": true,
  104. "namedChunks": true
  105. }
  106. },
  107. "defaultConfiguration": "production"
  108. },
  109. "serve": {
  110. "builder": "@angular-devkit/build-angular:dev-server",
  111. "options": {
  112. "browserTarget": "ng-webdpt:build:development"
  113. },
  114. "configurations": {
  115. "production": {
  116. "browserTarget": "ng-webdpt:build:production"
  117. }
  118. }
  119. },
  120. "extract-i18n": {
  121. "builder": "@angular-devkit/build-angular:extract-i18n",
  122. "options": {
  123. "browserTarget": "ng-webdpt:build"
  124. }
  125. },
  126. "test": {
  127. "builder": "@angular-devkit/build-angular:karma",
  128. "options": {
  129. "main": "src/test.ts",
  130. "karmaConfig": "./karma.conf.js",
  131. "polyfills": "src/polyfills.ts",
  132. "tsConfig": "src/tsconfig.spec.json",
  133. "scripts": [
  134. "node_modules/jsencrypt/bin/jsencrypt.js"
  135. ],
  136. "styles": [
  137. "src/styles.less"
  138. ],
  139. "assets": [
  140. "src/assets",
  141. "src/favicon.ico",
  142. {
  143. "glob": "**/*",
  144. "input": "./node_modules/@webdpt/framework/assets/dw-framework",
  145. "output": "assets/dw-framework"
  146. },
  147. {
  148. "glob": "**/*",
  149. "input": "src/assets",
  150. "output": "assets"
  151. },
  152. {
  153. "glob": "**/*",
  154. "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  155. "output": "assets"
  156. },
  157. "src/manifest.webmanifest"
  158. ]
  159. }
  160. },
  161. "e2e": {
  162. "builder": "@angular-devkit/build-angular:protractor",
  163. "options": {
  164. "protractorConfig": "e2e/protractor.conf.js",
  165. "devServerTarget": "ng-webdpt:serve"
  166. },
  167. "configurations": {
  168. "production": {
  169. "devServerTarget": "ng-webdpt:serve:production"
  170. }
  171. }
  172. },
  173. "lint": {
  174. "builder": "@angular-eslint/builder:lint",
  175. "options": {
  176. "lintFilePatterns": [
  177. "src/**/*.ts",
  178. "src/**/*.html"
  179. ]
  180. }
  181. }
  182. }
  183. }
  184. },
  185. "defaultProject": "ng-webdpt",
  186. "schematics": {
  187. "@schematics/angular:component": {
  188. "prefix": "app",
  189. "style": "less"
  190. },
  191. "@schematics/angular:directive": {
  192. "prefix": "app"
  193. }
  194. },
  195. "cli": {
  196. "warnings": {},
  197. "analytics": false,
  198. "defaultCollection": "@angular-eslint/schematics"
  199. }
  200. }