project.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "playground",
  3. "$schema": "../../node_modules/nx/schemas/project-schema.json",
  4. "sourceRoot": "apps/playground/src",
  5. "projectType": "application",
  6. "tags": [],
  7. "targets": {
  8. "build": {
  9. "executor": "@nx/webpack:webpack",
  10. "outputs": ["{options.outputPath}"],
  11. "defaultConfiguration": "production",
  12. "options": {
  13. "compiler": "babel",
  14. "outputPath": "dist/apps/playground/playground-assets",
  15. "index": "apps/playground/src/index.html",
  16. "baseHref": "/",
  17. "main": "apps/playground/src/main.tsx",
  18. "tsConfig": "apps/playground/tsconfig.app.json",
  19. "assets": [],
  20. "styles": [],
  21. "scripts": [],
  22. "isolatedConfig": true,
  23. "webpackConfig": "webpack.config.js"
  24. },
  25. "configurations": {
  26. "development": {
  27. "extractLicenses": false,
  28. "optimization": false,
  29. "sourceMap": true,
  30. "vendorChunk": true,
  31. "baseHref": "/"
  32. },
  33. "production": {
  34. "fileReplacements": [
  35. {
  36. "replace": "apps/playground/src/environments/environment.ts",
  37. "with": "apps/playground/src/environments/environment.prod.ts"
  38. }
  39. ],
  40. "optimization": true,
  41. "sourceMap": false,
  42. "namedChunks": false,
  43. "extractLicenses": true,
  44. "vendorChunk": false,
  45. "baseHref": "/playground-assets/"
  46. }
  47. }
  48. },
  49. "serve": {
  50. "executor": "@nx/webpack:dev-server",
  51. "defaultConfiguration": "development",
  52. "options": {
  53. "buildTarget": "playground:build",
  54. "port": 4200,
  55. "hmr": true
  56. },
  57. "configurations": {
  58. "development": {
  59. "buildTarget": "playground:build:development"
  60. },
  61. "production": {
  62. "buildTarget": "playground:build:production",
  63. "hmr": false
  64. }
  65. }
  66. },
  67. "serve-static": {
  68. "executor": "@nx/web:file-server",
  69. "options": {
  70. "buildTarget": "playground:build"
  71. }
  72. },
  73. "unit": {
  74. "executor": "@nx/jest:jest",
  75. "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
  76. "options": {
  77. "jestConfig": "apps/playground/jest.config.ts",
  78. "passWithNoTests": true
  79. },
  80. "configurations": {
  81. "ci": {
  82. "ci": true,
  83. "codeCoverage": true
  84. }
  85. }
  86. }
  87. }
  88. }