project.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "$schema": "node_modules/nx/schemas/project-schema.json",
  3. "name": "DnDTools",
  4. "projectType": "application",
  5. "generators": {
  6. "@schematics/angular:component": {
  7. "style": "scss"
  8. }
  9. },
  10. "sourceRoot": "src",
  11. "prefix": "",
  12. "targets": {
  13. "build": {
  14. "executor": "@angular-devkit/build-angular:browser",
  15. "options": {
  16. "outputPath": "dist/dn-dtools",
  17. "index": "src/index.html",
  18. "main": "src/main.ts",
  19. "polyfills": ["zone.js"],
  20. "tsConfig": "tsconfig.app.json",
  21. "inlineStyleLanguage": "scss",
  22. "assets": ["src/favicon.ico", "src/assets"],
  23. "styles": ["src/styles.scss"],
  24. "scripts": []
  25. },
  26. "configurations": {
  27. "production": {
  28. "budgets": [
  29. {
  30. "type": "initial",
  31. "maximumWarning": "1mb",
  32. "maximumError": "2mb"
  33. },
  34. {
  35. "type": "anyComponentStyle",
  36. "maximumWarning": "4kb",
  37. "maximumError": "16kb"
  38. }
  39. ],
  40. "outputHashing": "all"
  41. },
  42. "development": {
  43. "buildOptimizer": false,
  44. "optimization": false,
  45. "vendorChunk": true,
  46. "extractLicenses": false,
  47. "sourceMap": true,
  48. "namedChunks": true
  49. }
  50. },
  51. "defaultConfiguration": "production",
  52. "outputs": ["{options.outputPath}"]
  53. },
  54. "serve": {
  55. "executor": "@angular-devkit/build-angular:dev-server",
  56. "configurations": {
  57. "production": {
  58. "browserTarget": "DnDTools:build:production"
  59. },
  60. "development": {
  61. "browserTarget": "DnDTools:build:development"
  62. }
  63. },
  64. "defaultConfiguration": "development"
  65. },
  66. "extract-i18n": {
  67. "executor": "@angular-devkit/build-angular:extract-i18n",
  68. "options": {
  69. "browserTarget": "DnDTools:build"
  70. }
  71. },
  72. "test": {
  73. "executor": "@angular-devkit/build-angular:karma",
  74. "options": {
  75. "polyfills": ["zone.js", "zone.js/testing"],
  76. "tsConfig": "tsconfig.spec.json",
  77. "inlineStyleLanguage": "scss",
  78. "assets": ["src/favicon.ico", "src/assets"],
  79. "styles": ["src/styles.scss"],
  80. "scripts": []
  81. }
  82. }
  83. }
  84. }