-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkspace.jsonc
156 lines (156 loc) · 4.78 KB
/
workspace.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/**
* 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": "theme-test",
/**
* 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}/components/{name}",
/**
* default scope for all components in workspace.
**/
"defaultScope": "lhassis.theme-test"
},
/**
* 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/yarn",
"policy": {
"dependencies": {
"@teambit/design.ui.external-link": "0.0.344",
"@teambit/documenter.theme.theme-compositions": "4.1.1",
"@teambit/documenter.ui.copy-box": "4.1.1",
"@teambit/eslint-config-bit-react": "~0.0.367",
"@teambit/harmony": "0.2.11",
"@teambit/react.templates.themes.theme": "0.0.4",
"@typescript-eslint/eslint-plugin": "4.29.3",
"antd": "4.6.6",
"classnames": "2.3.1",
"color": "4.0.1",
"eslint-import-resolver-node": "0.3.6",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-mdx": "1.15.0",
"eslint-plugin-react": "7.25.1",
"lodash": "4.17.21",
"react-split": "2.0.13",
"styled-components": "5.3.3"
},
"peerDependencies": {
"@testing-library/react": "12.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "17.0.2"
}
},
"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": {
"{components/**}": {
// uses the custom env
"lhassis.theme-test/envs/themed-react": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
// uncomment the line below if you remove the custom env and remove the line above
// "teambit.react/react": {
// "packageJson": {
// "publishConfig": {
// "scope": "lhassis.theme-test",
// "registry": "http://bit.dev"
// }
// }
// }
},
"{themes/**}": {
"teambit.react/react": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
},
"{content/**}": {
"teambit.mdx/mdx": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
},
"{envs/**}, {extensions/**}": {
"teambit.harmony/aspect": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
},
"envs/themed-react": {
"teambit.harmony/aspect": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
},
"{general/**}, {layout/**}, {data-display/**}": {
"lhassis.theme-test/envs/themed-react": {
"packageJson": {
"publishConfig": {
"scope": "lhassis.theme-test",
"registry": "http://bit.dev"
}
}
}
}
}
}