|
@@ -1,7 +1,7 @@
|
|
/**
|
|
/**
|
|
* this is the main configuration file of your bit workspace.
|
|
* this is the main configuration file of your bit workspace.
|
|
* for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
|
|
* for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
|
|
- **/{
|
|
|
|
|
|
+ **/ {
|
|
"$schema": "https://static.bit.dev/teambit/schemas/schema.json",
|
|
"$schema": "https://static.bit.dev/teambit/schemas/schema.json",
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -11,7 +11,7 @@
|
|
/**
|
|
/**
|
|
* the name of the component workspace. used for development purposes.
|
|
* the name of the component workspace. used for development purposes.
|
|
**/
|
|
**/
|
|
- "name": "my-workspace-name",
|
|
|
|
|
|
+ "name": "platformui",
|
|
/**
|
|
/**
|
|
* set the icon to be shown on the Bit server.
|
|
* set the icon to be shown on the Bit server.
|
|
**/
|
|
**/
|
|
@@ -30,6 +30,7 @@
|
|
**/
|
|
**/
|
|
"defaultScope": "didi"
|
|
"defaultScope": "didi"
|
|
},
|
|
},
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* main configuration for component dependency resolution.
|
|
* main configuration for component dependency resolution.
|
|
**/
|
|
**/
|
|
@@ -38,40 +39,24 @@
|
|
* choose the package manager for Bit to use. you can choose between 'yarn', 'pnpm'
|
|
* choose the package manager for Bit to use. you can choose between 'yarn', 'pnpm'
|
|
*/
|
|
*/
|
|
"packageManager": "teambit.dependencies/pnpm",
|
|
"packageManager": "teambit.dependencies/pnpm",
|
|
- "resolveModules": {
|
|
|
|
- "aliases": {
|
|
|
|
- "@": "src"
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
"policy": {
|
|
"policy": {
|
|
- // "devDependencies": {
|
|
|
|
- // "babel-plugin-import": "^1.13.3"
|
|
|
|
- // },
|
|
|
|
- "dependencies": {},
|
|
|
|
- "peerDependencies": {
|
|
|
|
- "@testing-library/react": "11.2.6",
|
|
|
|
- "react": "16.13.1",
|
|
|
|
|
|
+ "dependencies": {
|
|
|
|
+ "@testing-library/react": "12.0.0",
|
|
"antd": "^3.25.2",
|
|
"antd": "^3.25.2",
|
|
- "react-dom": "16.13.1"
|
|
|
|
|
|
+ "clsx": "1.1.1",
|
|
|
|
+ "lodash": "4.17.21",
|
|
|
|
+ "moment": "2.29.1"
|
|
|
|
+ },
|
|
|
|
+ "peerDependencies": {
|
|
|
|
+ "react": ">=16.6.0",
|
|
|
|
+ "react-dom": ">=16.6.0"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
- // "babel": {
|
|
|
|
- // "presets": [
|
|
|
|
- // "@babel/preset-env",
|
|
|
|
- // "@babel/preset-react"
|
|
|
|
- // ],
|
|
|
|
- // "plugins": [
|
|
|
|
- // "transform-class-properties",
|
|
|
|
- // "@babel/plugin-transform-runtime",
|
|
|
|
- // [
|
|
|
|
- // "@babel/plugin-proposal-decorators",
|
|
|
|
- // {
|
|
|
|
- // "legacy": true
|
|
|
|
- // }
|
|
|
|
- // ]
|
|
|
|
- // ]
|
|
|
|
- // }
|
|
|
|
|
|
+ "packageManagerArgs": [],
|
|
|
|
+ "devFilePatterns": ["**/*.spec.ts"],
|
|
|
|
+ "strictPeerDependencies": true,
|
|
|
|
+ "installFromBitDevRegistry": true,
|
|
|
|
+ "savePrefix": ""
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -85,79 +70,19 @@
|
|
/**
|
|
/**
|
|
* "*" is a special rule which applied on all components in the workspace.
|
|
* "*" is a special rule which applied on all components in the workspace.
|
|
**/
|
|
**/
|
|
- "{platformui/**}": {
|
|
|
|
|
|
+ // "*": {}
|
|
|
|
+ "{platformui/**}": {
|
|
"teambit.react/react": {},
|
|
"teambit.react/react": {},
|
|
"teambit.pkg/pkg": {
|
|
"teambit.pkg/pkg": {
|
|
- "packageManagerPublishArgs": [
|
|
|
|
- "--access public"
|
|
|
|
- ],
|
|
|
|
|
|
+ "packageManagerPublishArgs": ["--access public"],
|
|
"packageJson": {
|
|
"packageJson": {
|
|
"name": "@{scope}/{name}",
|
|
"name": "@{scope}/{name}",
|
|
"private": false,
|
|
"private": false,
|
|
"publishConfig": {
|
|
"publishConfig": {
|
|
"registry": "http://registry.npm.xiaojukeji.com"
|
|
"registry": "http://registry.npm.xiaojukeji.com"
|
|
- },
|
|
|
|
- "babel": {
|
|
|
|
- "presets": [
|
|
|
|
- "@babel/preset-env",
|
|
|
|
- "@babel/preset-react"
|
|
|
|
- ],
|
|
|
|
- "plugins": [
|
|
|
|
- "transform-class-properties",
|
|
|
|
- "@babel/plugin-transform-runtime",
|
|
|
|
- [
|
|
|
|
- "@babel/plugin-proposal-decorators",
|
|
|
|
- {
|
|
|
|
- "legacy": true
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- ]
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- },
|
|
|
|
- "teambit.dependencies/dependency-resolver": {
|
|
|
|
- "policy": {
|
|
|
|
- // "peerDependencies": {
|
|
|
|
- // "enzyme": {
|
|
|
|
- // "version": "^3.11.0",
|
|
|
|
- // "resolveFromEnv": true
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- "babel": {
|
|
|
|
- "presets": [
|
|
|
|
- "@babel/preset-env",
|
|
|
|
- "@babel/preset-react"
|
|
|
|
- ],
|
|
|
|
- "plugins": [
|
|
|
|
- "transform-class-properties",
|
|
|
|
- "@babel/plugin-transform-runtime",
|
|
|
|
- [
|
|
|
|
- "@babel/plugin-proposal-decorators",
|
|
|
|
- {
|
|
|
|
- "legacy": true
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- "babel": {
|
|
|
|
- "presets": [
|
|
|
|
- "@babel/preset-env",
|
|
|
|
- "@babel/preset-react"
|
|
|
|
- ],
|
|
|
|
- "plugins": [
|
|
|
|
- "transform-class-properties",
|
|
|
|
- "@babel/plugin-transform-runtime",
|
|
|
|
- [
|
|
|
|
- "@babel/plugin-proposal-decorators",
|
|
|
|
- {
|
|
|
|
- "legacy": true
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|