project.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "datamanager",
  3. "$schema": "../../node_modules/nx/schemas/project-schema.json",
  4. "sourceRoot": "libs/datamanager/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. "tsConfig": "libs/datamanager/tsconfig.lib.json",
  15. "main": "libs/datamanager/src/index.js",
  16. "outputPath": "dist/libs/datamanager",
  17. "isolatedConfig": true,
  18. "generatePackageJson": true
  19. },
  20. "configurations": {
  21. "development": {
  22. "extractLicenses": false,
  23. "optimization": false,
  24. "sourceMap": true,
  25. "vendorChunk": true
  26. },
  27. "production": {
  28. "optimization": true,
  29. "sourceMap": false,
  30. "namedChunks": false,
  31. "extractLicenses": true,
  32. "vendorChunk": false
  33. }
  34. }
  35. },
  36. "unit": {
  37. "executor": "@nx/jest:jest",
  38. "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
  39. "options": {
  40. "jestConfig": "libs/datamanager/jest.config.ts",
  41. "passWithNoTests": true
  42. },
  43. "configurations": {
  44. "ci": {
  45. "ci": true,
  46. "codeCoverage": true
  47. }
  48. }
  49. },
  50. "version": {
  51. "executor": "nx:run-commands",
  52. "options": {
  53. "cwd": "libs/datamanager",
  54. "command": "node ../../tools/version/version.mjs"
  55. }
  56. }
  57. }
  58. }