1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- /**
- * this is the main configuration file of your bit workspace.
- * for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
- **/ {
- "$schema": "https://static.bit.dev/teambit/schemas/schema.json",
- /**
- * main configuration of the Bit workspace.
- **/
- "teambit.workspace/workspace": {
- /**
- * the name of the component workspace. used for development purposes.
- **/
- "name": "platformui",
- /**
- * set the icon to be shown on the Bit server.
- **/
- "icon": "https://static.bit.dev/bit-logo.svg",
- /**
- * default directory to place a component during `bit import` and `bit create`.
- * the following placeholders are available:
- * name - component name includes namespace, e.g. 'ui/button'.
- * scopeId - full scope-id includes the owner, e.g. 'teambit.compilation'.
- * scope - scope name only, e.g. 'compilation'.
- * owner - owner name in bit.dev, e.g. 'teambit'.
- **/
- "defaultDirectory": "{scope}/{name}",
- /**
- * default scope for all components in workspace.
- **/
- "defaultScope": "didi"
- },
- /**
- * main configuration for component dependency resolution.
- **/
- "teambit.dependencies/dependency-resolver": {
- /**
- * choose the package manager for Bit to use. you can choose between 'yarn', 'pnpm'
- */
- "packageManager": "teambit.dependencies/pnpm",
- "policy": {
- "dependencies": {
- "@testing-library/react": "12.0.0",
- "@platformuiserver/platformui.assets": "^0.0.1",
- "antd": "^3.25.2",
- "clsx": "1.1.1",
- "lodash": "4.17.21",
- "moment": "2.29.1",
- "codemirror": "^5.62.0",
- "react-codemirror2": "^7.2.1"
- },
- "peerDependencies": {
- "react": "^16.6.0",
- "react-dom": "^16.6.0",
- "react-router-dom": "^5.2.0"
- }
- },
- "packageManagerArgs": [],
- "devFilePatterns": ["**/*.spec.ts"],
- "strictPeerDependencies": true,
- "installFromBitDevRegistry": true,
- "savePrefix": ""
- },
- /**
- * workspace variants allow to set different subsets of configuration for components in your
- * workspace. this is extremely useful for upgrading, aligning and building components with a new
- * set of dependencies. a rule can be a directory or a component-id/namespace, in which case,
- * wrap the rule with curly brackets (e.g. `"{ui/*}": {}`)
- * see https://harmony-docs.bit.dev/aspects/variants for more info.
- **/
- "teambit.workspace/variants": {
- /**
- * "*" is a special rule which applied on all components in the workspace.
- **/
- /* "*": {} */
- "{platformui*/ /**}": {
- "teambit.react/react": {},
- "teambit.pkg/pkg": {
- "packageManagerPublishArgs": ["--access public"],
- "packageJson": {
- "name": "@{scope}/{name}",
- "private": false,
- "publishConfig": {
- "registry": "http://registry.npm.xiaojukeji.com"
- }
- }
- }
- }
- }
- }
|