Skip to content

Commit 143f4ac

Browse files
authored
init: @fluentui/babel-preset-global-context (#23366)
* init: @fluentui/babel-preset-global-context Autogenerates a new node package for global context babel preset * remove unnecessary * remove unnecessary deps
1 parent 7e6f55e commit 143f4ac

19 files changed

Lines changed: 196 additions & 0 deletions

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ packages/react-components/react-alert @microsoft/teams-prg
166166
packages/react-components/react-portal-compat-context @microsoft/teams-prg
167167
packages/react-components/theme-designer @microsoft/cxe-coastal
168168
packages/react-components/global-context @microsoft/teams-prg
169+
packages/react-components/babel-preset-global-context @microsoft/teams-prg
169170
## <%= NX-CODEOWNER-PLACEHOLDER %>
170171

171172

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": [],
3+
"plugins": ["annotate-pure-calls"]
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["plugin:@fluentui/eslint-plugin/node"],
3+
"root": true
4+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.storybook/
2+
.vscode/
3+
bundle-size/
4+
config/
5+
coverage/
6+
e2e/
7+
etc/
8+
node_modules/
9+
src/
10+
dist/types/
11+
temp/
12+
__fixtures__
13+
__mocks__
14+
__tests__
15+
16+
*.api.json
17+
*.log
18+
*.spec.*
19+
*.stories.*
20+
*.test.*
21+
*.yml
22+
23+
# config files
24+
*config.*
25+
*rc.*
26+
.editorconfig
27+
.eslint*
28+
.git*
29+
.prettierignore
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@fluentui/babel-preset-global-context
2+
3+
Copyright (c) Microsoft Corporation
4+
5+
All rights reserved.
6+
7+
MIT License
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14+
15+
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @fluentui/babel-preset-global-context
2+
3+
**Babel Preset Global Context for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
4+
5+
Babel preset that transforms createContext calls to use global context shims
6+
7+
TODO: Add more details!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "@fluentui/scripts/api-extractor/api-extractor.common.v-next.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/types/index.d.ts"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "./api-extractor.json",
4+
"mainEntryPointFilePath": "<projectFolder>/dist/types/packages/react-components/<unscopedPackageName>/src/index.d.ts"
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** Jest test setup file. */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## API Report File for "@fluentui/babel-preset-global-context"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
// (No @packageDocumentation comment for this package)
8+
9+
```

0 commit comments

Comments
 (0)