-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkspace.jsonc
185 lines (185 loc) · 6.22 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/**
* 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": "components",
/**
* 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": "waweb.demo"
},
/**
* 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": {
"@teambit/design.ui.external-link": "0.0.344",
"@teambit/eslint-config-bit-react": "~0.0.367",
"@teambit/harmony": "0.2.11",
"@teambit/html.modules.render-template": "0.0.95",
"@testing-library/react-hooks": "7.0.2",
"@typescript-eslint/eslint-plugin": "4.29.3",
"@waweb/base-ui.input.error": "0.1.1",
"@waweb/base-ui.layout.breakpoints": "0.1.0",
"@waweb/base-ui.layout.grid-component": "0.1.0",
"@waweb/base-ui.routing.compare-url": "0.1.1",
"@waweb/base-ui.routing.link": "0.1.1",
"@waweb/base-ui.routing.native-link": "0.1.1",
"@waweb/base-ui.routing.native-nav-link": "0.1.1",
"@waweb/base-ui.routing.routing-provider": "0.1.1",
"@waweb/base-ui.text.text-sizes": "0.1.0",
"@waweb/base-ui.theme.brand-definition": "0.1.0",
"@waweb/base-ui.theme.color-definition": "0.1.0",
"@waweb/base-ui.theme.colors": "0.1.0",
"@waweb/base-ui.theme.fonts.book": "0.1.0",
"@waweb/base-ui.theme.fonts.roboto": "0.1.0",
"@waweb/base-ui.theme.heading-margin-definition": "0.1.0",
"@waweb/base-ui.theme.shadow-definition": "0.1.0",
"@waweb/base-ui.theme.size-definition": "0.1.0",
"@waweb/base-ui.theme.sizes": "0.1.0",
"@waweb/base-ui.utils.is-browser": "0.1.0",
"clsx": "1.1.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"
},
"peerDependencies": {
"@emotion/css": "^11.7.1",
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@mui/material": "^5.2.8",
"@mui/types": "^7.1.0",
"@react-aria/ssr": "3.1.0",
"@react-types/provider": "3.3.2",
"@react-types/shared": "3.10.1",
"@spectrum-css/button": "^6.0.0",
"@spectrum-css/buttongroup": "^5.0.0",
"@spectrum-css/card": "^4.0.9",
"@spectrum-css/divider": "^1.0.13",
"@spectrum-css/fieldgroup": "^3.0.12",
"@spectrum-css/fieldlabel": "^4.0.9",
"@spectrum-css/link": "^3.1.12",
"@spectrum-css/page": "^5.0.0",
"@spectrum-css/typography": "^4.0.9",
"@spectrum-css/vars": "^6.0.0",
"@spectrum-css/well": "^3.0.11",
"@testing-library/react": "^12.0.0",
"@types/lodash": "^4.14.178",
"@types/react-helmet": "^6.1.5",
"json-formatter-js": "^2.3.4",
"lodash": "^4.17.21",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-helmet": "^6.1.0",
"url-parse": "^1.5.4"
}
}
},
/**
* Add an aditional bundler for pure html
*/
"teambit.compilation/bundler": {
"dedicatedEnvDevServers": [
"teambit.html/html"
]
},
/**
* 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": {
"base-ui": {
"defaultScope": "waweb.base-ui"
},
"envs": {
"defaultScope": "waweb.envs"
},
"content": {
"defaultScope": "waweb.content"
},
"demo": {
"defaultScope": "waweb.demo"
},
"docs": {
"defaultScope": "waweb.docs"
},
"mdx": {
"defaultScope": "waweb.mdx"
},
"spectrum": {
"defaultScope": "waweb.spectrum"
},
"theme": {
"defaultScope": "waweb.theme"
},
"tools": {
"defaultScope": "waweb.tools"
},
/**
* configures all components with the appropritate build environment
*
*/
"base-ui/theme, docs/theme": {
"teambit.react/react": {}
},
/**
* configures components with namespaces 'entities', 'modules' and 'functions' to use the
* default NodeJS dev environment.
*/
"{elements/**}, {ui/**}, {text/*}": {
"waweb.envs/wa-react": {},
"teambit.react/react": "-"
},
/**
* configures components with namespace 'content' to use the MDX dev environment.
*/
"{content/**}": {
"teambit.mdx/mdx": {}
},
/**
* configures components with namespaces 'envs' and 'aspects' to use the default Aspect development environment.
*/
"{wa-react}": {
"teambit.harmony/aspect": {}
},
"spectrum/design/typography": {
// e.g. apply the env to all components under the some/path directory
"teambit.html/html": {}
}
// "spectrum/theme": {
// "teambit.react/react": {}
// }
}
}