project.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "labelstudio",
  3. "$schema": "../../node_modules/nx/schemas/project-schema.json",
  4. "sourceRoot": "apps/labelstudio/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/labelstudio",
  15. "index": "apps/labelstudio/src/index.html",
  16. "baseHref": "/",
  17. "main": "apps/labelstudio/src/main.tsx",
  18. "tsConfig": "apps/labelstudio/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. },
  32. "production": {
  33. "fileReplacements": [
  34. {
  35. "replace": "apps/labelstudio/src/environments/environment.ts",
  36. "with": "apps/labelstudio/src/environments/environment.prod.ts"
  37. }
  38. ],
  39. "optimization": true,
  40. "sourceMap": false,
  41. "namedChunks": false,
  42. "extractLicenses": true,
  43. "vendorChunk": false
  44. }
  45. }
  46. },
  47. "serve": {
  48. "executor": "@nx/webpack:dev-server",
  49. "defaultConfiguration": "development",
  50. "options": {
  51. "buildTarget": "labelstudio:build",
  52. "hmr": true
  53. },
  54. "configurations": {
  55. "development": {
  56. "buildTarget": "labelstudio:build:development"
  57. },
  58. "production": {
  59. "buildTarget": "labelstudio:build:production",
  60. "hmr": false
  61. }
  62. }
  63. },
  64. "serve-static": {
  65. "executor": "@nx/web:file-server",
  66. "options": {
  67. "buildTarget": "labelstudio:build"
  68. }
  69. },
  70. "unit": {
  71. "executor": "@nx/jest:jest",
  72. "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
  73. "options": {
  74. "jestConfig": "apps/labelstudio/jest.config.ts",
  75. "passWithNoTests": true
  76. },
  77. "configurations": {
  78. "ci": {
  79. "ci": true,
  80. "codeCoverage": true
  81. }
  82. }
  83. },
  84. "version": {
  85. "executor": "nx:run-commands",
  86. "options": {
  87. "cwd": "apps/labelstudio",
  88. "command": "node ../../tools/version/version.mjs"
  89. }
  90. }
  91. }
  92. }