@fabric-msft/fabric-web v4.0.0-beta.0
Project: Fabric Web Components
This project contains web components built from the Data Cloud Studio design system guidelines. This is published to NPM: @fabric-msft/fabric-web,
.
├── libs
| ├── fabric-web-components
| | └── src
| | | └── componentsProject Scripts
The project's package.json scripts are your starting point.
SvgIcon Component
Prior to running Storybook, generate the sprites used by this component for demonstration purposes. Run this script from within the project. This is a one-time task.
yarn run generate-spritegenerate the SVG sprite.
Storybook
yarn run web-components:storybookrun Storybook.
Build
yarn run web-components:buildbuild the Fabric web components.
Install
Run this script to build the Fabric web components workspace and then add the built package to your project. This is also used to install Fabric web components as a dependency of the angular-wrappers and react-wrappers projects.
yarn run web-components:installinstall the Fabric web components.
Test
Run these tests from within the project.
yarn install playwrightinstall Playwright.yarn run testtest wrappers with Playwright.yarn run unit-testrun Jest unit tests in SvgIcon component scripts/ folder.
Pack
yarn run web-components:packpack the Fabric web components.
Publish
Publishes the Fabric web components to Npm. It encompasses the entire process from pre-publishing tasks like version bumping, compiling, and building, to the final step of publishing the wrappers to the npm registry.
yarn run web-components:publishpublish the Fabric web components.yarn run web-components:publish-drydry run the publish script.
Command Execution Flow
Running one of the above scripts will in turn run its respective script in libs/fabric-web-components:"build-and-publish": "yarn pre-publish ; yarn publish-lib"
- Pre-Publish: Executes the fluent-wrappers:pre-publish script within the @fabric-msft/react-wrappers workspace. This step includes bumping the wrapper version, compiling TypeScript files, and building the package to ensure it is up-to-date.
- Publish Wrappers: Runs the fluent-wrappers:publish-wrappers script, which navigates to the distribution directory and publishes the Fluent Wrappers package to npm with public access.
- Usage Context: Utilize this script when the Fluent Wrappers for React are fully tested and ready for release and distribution. This is typically the final step in the development cycle of Fluent Wrappers for React.
Release Instructions
Fabric Web Components
- Ensure all local changes are up to date with
mainviagit pull origin main - Check out a new version of the package from
main, e.g.release-0.0.12 - Ensure the workspace's project.json version number matches the current version number on npmjs.org at https://www.npmjs.com/package/@fabric-msft/fabric-web?activeTab=versions
- Run
yarn web-components:build cdintodistfolder and verify correct version inpackage.json- Run
yarn web-components:publish
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
5 months ago
6 months ago
8 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago