workspace.jsonc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * this is the main configuration file of your bit workspace.
  3. * for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
  4. **/ {
  5. "$schema": "https://static.bit.dev/teambit/schemas/schema.json",
  6. /**
  7. * main configuration of the Bit workspace.
  8. **/
  9. "teambit.workspace/workspace": {
  10. /**
  11. * the name of the component workspace. used for development purposes.
  12. **/
  13. "name": "platformui",
  14. /**
  15. * set the icon to be shown on the Bit server.
  16. **/
  17. "icon": "https://static.bit.dev/bit-logo.svg",
  18. /**
  19. * default directory to place a component during `bit import` and `bit create`.
  20. * the following placeholders are available:
  21. * name - component name includes namespace, e.g. 'ui/button'.
  22. * scopeId - full scope-id includes the owner, e.g. 'teambit.compilation'.
  23. * scope - scope name only, e.g. 'compilation'.
  24. * owner - owner name in bit.dev, e.g. 'teambit'.
  25. **/
  26. "defaultDirectory": "{scope}/{name}",
  27. /**
  28. * default scope for all components in workspace.
  29. **/
  30. "defaultScope": "didi"
  31. },
  32. /**
  33. * main configuration for component dependency resolution.
  34. **/
  35. "teambit.dependencies/dependency-resolver": {
  36. /**
  37. * choose the package manager for Bit to use. you can choose between 'yarn', 'pnpm'
  38. */
  39. "packageManager": "teambit.dependencies/pnpm",
  40. "policy": {
  41. "dependencies": {
  42. "@testing-library/react": "12.0.0",
  43. "@platformuiserver/platformui.assets": "^0.0.1",
  44. "antd": "^3.25.2",
  45. "clsx": "1.1.1",
  46. "lodash": "4.17.21",
  47. "moment": "2.29.1",
  48. "codemirror": "^5.62.0",
  49. "react-codemirror2": "^7.2.1"
  50. },
  51. "peerDependencies": {
  52. "react": "^16.6.0",
  53. "react-dom": "^16.6.0",
  54. "react-router-dom": "^5.2.0"
  55. }
  56. },
  57. "packageManagerArgs": [],
  58. "devFilePatterns": ["**/*.spec.ts"],
  59. "strictPeerDependencies": true,
  60. "installFromBitDevRegistry": true,
  61. "savePrefix": ""
  62. },
  63. /**
  64. * workspace variants allow to set different subsets of configuration for components in your
  65. * workspace. this is extremely useful for upgrading, aligning and building components with a new
  66. * set of dependencies. a rule can be a directory or a component-id/namespace, in which case,
  67. * wrap the rule with curly brackets (e.g. `"{ui/*}": {}`)
  68. * see https://harmony-docs.bit.dev/aspects/variants for more info.
  69. **/
  70. "teambit.workspace/variants": {
  71. /**
  72. * "*" is a special rule which applied on all components in the workspace.
  73. **/
  74. /* "*": {} */
  75. "{platformui*/ /**}": {
  76. "teambit.react/react": {},
  77. "teambit.pkg/pkg": {
  78. "packageManagerPublishArgs": ["--access public"],
  79. "packageJson": {
  80. "name": "@{scope}/{name}",
  81. "private": false,
  82. "publishConfig": {
  83. "registry": "http://registry.npm.xiaojukeji.com"
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }