-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'react-icons-entry-point-fix' of https://github.com/tomi…
…-msft/fluentui into react-icons-entry-point-fix
- Loading branch information
Showing
1,249 changed files
with
50,233 additions
and
31,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Azure Static Web Apps web components | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- packages/web-components/** | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
name: Build and Deploy Job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build and Deploy Job | ||
id: builddeploy | ||
uses: Azure/static-web-apps-deploy@v1 | ||
with: | ||
azure_static_web_apps_api_token: ${{ secrets.WEB_COMPONENTS_AZURE_STATIC_WEB_APPS_API_TOKEN }} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments) | ||
action: 'upload' | ||
app_build_command: 'yarn workspace @fluentui/web-components build-storybook' | ||
output_location: 'packages/web-components/dist/storybook' # Built app content directory, relative to app_location - optional | ||
skip_api_build: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,9 @@ rush.json | |
# tsdoc | ||
tsdoc-metadata.json | ||
|
||
# benchmarking | ||
.tensile/ | ||
|
||
# tools cache | ||
gulp-cache | ||
.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/vr-tests-react-components/src/stories/SwatchPicker/SwatchPicker.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "import"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
const path = require('path'); | ||
const CircularDependencyPlugin = require('circular-dependency-plugin'); | ||
const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin'); | ||
|
||
const tsBin = require.resolve('typescript'); | ||
const tsConfigPath = path.resolve(__dirname, '../../../tsconfig.base.wc.json'); | ||
|
||
const tsPaths = new TsconfigPathsPlugin({ | ||
configFile: tsConfigPath, | ||
}); | ||
|
||
// TODO - these types are copied from root ./storybook/main.js as if we would like to use those as is, it will force us to add our custom storybook plugins as devDeps to WC | ||
// - refactor this to be shared | ||
|
||
/** @typedef {import('@storybook/core-common').StorybookConfig} StorybookBaseConfig */ | ||
|
||
module.exports = /** @type {StorybookBaseConfig} */ ({ | ||
addons: [ | ||
{ | ||
name: '@storybook/addon-docs', | ||
}, | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { | ||
backgrounds: false, | ||
viewport: false, | ||
toolbars: false, | ||
actions: false, | ||
}, | ||
}, | ||
], | ||
|
||
stories: ['../src/**/*.stories.tsx'], | ||
core: { | ||
builder: 'webpack5', | ||
disableTelemetry: true, | ||
}, | ||
babel: {}, | ||
typescript: { | ||
// disable react-docgen-typescript (totally not needed here, slows things down a lot) | ||
reactDocgen: false, | ||
}, | ||
webpackFinal: async config => { | ||
config.resolve = config.resolve ?? {}; | ||
config.resolve.extensions = config.resolve.extensions ?? []; | ||
config.resolve.plugins = config.resolve.plugins ?? []; | ||
config.module = config.module ?? {}; | ||
config.plugins = config.plugins ?? []; | ||
|
||
config.resolve.extensionAlias = { | ||
'.js': ['.js', '.ts', '.tsx'], | ||
'.mjs': ['.mjs', '.mts'], | ||
}; | ||
config.resolve.extensions.push(...['.ts', '.js']); | ||
config.resolve.plugins.push(tsPaths); | ||
config.module.rules = config.module.rules ?? []; | ||
config.module.rules.push( | ||
{ | ||
test: /\.([cm]?ts|tsx)$/, | ||
loader: 'ts-loader', | ||
sideEffects: true, | ||
options: { | ||
transpileOnly: true, | ||
compiler: tsBin, | ||
}, | ||
}, | ||
// Following config is needed to be able to resolve @storybook packages imported in specified files that don't ship valid ESM | ||
// It also enables importing other packages without proper ESM extensions, but that should be avoided ! | ||
// @see https://webpack.js.org/configuration/module/#resolvefullyspecified | ||
{ | ||
test: /\.m?js/, | ||
resolve: { fullySpecified: false }, | ||
}, | ||
); | ||
|
||
config.plugins.push( | ||
new CircularDependencyPlugin({ | ||
exclude: /node_modules/, | ||
failOnError: process.env.NODE_ENV === 'production', | ||
}), | ||
); | ||
|
||
// Disable ProgressPlugin which logs verbose webpack build progress. Warnings and Errors are still logged. | ||
if (process.env.TF_BUILD || process.env.LAGE_PACKAGE_NAME) { | ||
config.plugins = config.plugins.filter(({ constructor }) => constructor.name !== 'ProgressPlugin'); | ||
} | ||
|
||
return config; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { addons } from '@storybook/addons'; | ||
|
||
addons.setConfig({ | ||
previewTabs: { | ||
canvas: { hidden: true }, | ||
}, | ||
enableShortcuts: false, | ||
sidebar: { | ||
showRoots: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { WCThemeDecorator } from '../src/utilities/WCThemeDecorator'; | ||
|
||
export const parameters = { | ||
layout: 'fullscreen', | ||
controls: { expanded: true }, | ||
viewMode: 'docs', | ||
previewTabs: { | ||
canvas: { hidden: true }, | ||
}, | ||
options: { | ||
storySort: { | ||
method: 'alphabetical', | ||
}, | ||
}, | ||
}; | ||
|
||
export const decorators = [WCThemeDecorator]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@fluentui/vr-tests-web-components", | ||
"version": "0.0.1", | ||
"private": true, | ||
"description": "Visual regression tests for @fluentui/web-components", | ||
"type": "module", | ||
"scripts": { | ||
"build": "build-storybook -o dist/storybook", | ||
"format": "prettier . -w --ignore-path ../../.prettierignore", | ||
"lint": "eslint src --ext .ts,.tsx", | ||
"start": "start-storybook", | ||
"type-check": "echo 'TODO'", | ||
"vr:build": "yarn build", | ||
"vr:test": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true" | ||
}, | ||
"devDependencies": { | ||
"@fluentui/eslint-plugin": "*", | ||
"@fluentui/scripts-tasks": "*", | ||
"html-react-parser": "4.0.0", | ||
"typescript": "4.7.4" | ||
}, | ||
"dependencies": { | ||
"@fluentui/react-button": "*", | ||
"@fluentui/react-storybook-addon": "*", | ||
"@fluentui/web-components": ">=3.0.0-alpha", | ||
"tslib": "^2.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@fluentui/vr-tests-web-components", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "application", | ||
"implicitDependencies": [] | ||
} |
Oops, something went wrong.