Build Command Changes
Fluent UI Team edited this page Apr 9, 2022
·
8 revisions
A PR in early 2020 introduced some important changes to Fabric's build commands which are detailed below. The Build Command documentation has been updated to reflect these changes.
Monorepo Build Command | Prereqs | Important Notes | Description |
---|---|---|---|
yarn build |
Now TypeScript only. No longer runs bundle, lint or test. No longer production build by default. | Generates output using TypeScript. | |
yarn buildci |
No change. This command approximates PR build steps and is useful for validating your build locally. | Reproduction of PR build steps: build, lint, test, bundle. | |
yarn buildto |
Now TypeScript only. No longer runs bundle, lint or test. No longer production build by default. | Builds to specified target package. | |
yarn buildfast |
Removed (redundant with yarn build and yarn buildto ) |
||
yarn bundle |
build | New | Runs webpack. Webpack configs use lib output as entry point, requiring build as prereq. |
yarn clean |
New | Cleans package output. | |
yarn lint |
build | New | Runs lint and lint-imports tasks. lint-imports requires build artifacts to detect that physical file exist for imports from 'lib'. |
yarn test |
build | New (replaces yarn validate ) |
Runs jest. Build artifacts required for dependencies of packages under test. |
yarn validate |
Removed (replaced by yarn test ) |
- FAQ - Fabric and Stardust to Fluent UI
-
@fluentui/react
Version 9 -
@fluentui/react
Version 8 - Contributing to the
7.0
branch - How to apply themes (version 7/8)
- Planning and development process (for work by the core team)
- Conducting meetings Style guide
- Keeping up with review requests
- RFC review process
- Setup (configuring your environment)
- Fluent UI React version 7/8
- CLA
- Overview
- Repo structure
- Development process
- Contributing to previous versions
- API Extractor
- Build command changes made in early 2020
- Component implementation guide
- Creating a component
- Implementation Best Practices
- Theming
- Documenting
- Styling (old approach)
- Overview
- Testing with Jest
- E2E testing (Cypress)
- Visual testing (Screener)
- Accessibility review checklist