project.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "editor",
  3. "$schema": "../../node_modules/nx/schemas/project-schema.json",
  4. "sourceRoot": "libs/editor/src",
  5. "projectType": "library",
  6. "tags": [],
  7. "targets": {
  8. "build": {
  9. "executor": "@nx/webpack:webpack",
  10. "defaultConfiguration": "production",
  11. "options": {
  12. "compiler": "babel",
  13. "webpackConfig": "webpack.config.js",
  14. "index": "libs/editor/public/index.html",
  15. "tsConfig": "libs/editor/tsconfig.lib.json",
  16. "main": "libs/editor/src/standalone.js",
  17. "outputPath": "dist/libs/editor",
  18. "isolatedConfig": true,
  19. "generatePackageJson": true,
  20. "assets": [
  21. {
  22. "glob": "public",
  23. "input": "libs/editor",
  24. "output": "public/"
  25. }
  26. ]
  27. },
  28. "configurations": {
  29. "development": {
  30. "extractLicenses": false,
  31. "optimization": false,
  32. "sourceMap": true,
  33. "vendorChunk": true
  34. },
  35. "production": {
  36. "optimization": true,
  37. "sourceMap": false,
  38. "namedChunks": false,
  39. "extractLicenses": true,
  40. "vendorChunk": false
  41. }
  42. }
  43. },
  44. "serve": {
  45. "executor": "@nx/webpack:dev-server",
  46. "defaultConfiguration": "development",
  47. "options": {
  48. "port": 3000,
  49. "buildTarget": "editor:build",
  50. "hmr": true,
  51. "watch": true,
  52. "liveReload": true
  53. },
  54. "configurations": {
  55. "development": {
  56. "buildTarget": "editor:build"
  57. }
  58. }
  59. },
  60. "unit": {
  61. "executor": "@nx/jest:jest",
  62. "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
  63. "options": {
  64. "jestConfig": "libs/editor/jest.config.js",
  65. "passWithNoTests": true
  66. },
  67. "configurations": {
  68. "ci": {
  69. "ci": true,
  70. "codeCoverage": true
  71. }
  72. }
  73. },
  74. "integration": {
  75. "executor": "@nx/cypress:cypress",
  76. "options": {
  77. "cypressConfig": "libs/editor/cypress.config.ts",
  78. "testingType": "e2e",
  79. "baseUrl": "http://localhost:3000"
  80. }
  81. },
  82. "version": {
  83. "executor": "nx:run-commands",
  84. "options": {
  85. "cwd": "libs/editor",
  86. "command": "node ../../tools/version/version.mjs"
  87. }
  88. },
  89. "docs": {
  90. "executor": "nx:run-commands",
  91. "options": {
  92. "cwd": "libs/editor",
  93. "command": "node scripts/create-docs.js ../../../docs/source/includes/tags"
  94. }
  95. },
  96. "extract-antd-no-reset": {
  97. "executor": "nx:run-commands",
  98. "options": {
  99. "command": "node ../../tools/extract-antd-no-reset/extract-antd-no-reset.mjs",
  100. "cwd": "libs/editor"
  101. }
  102. }
  103. }
  104. }