Back to Fluentui

Build Command Changes

docs/react-wiki-archive/Build-Command-Changes.md

4.40.2-hotfix23.2 KB
Original Source

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 CommandPrereqsImportant NotesDescription
yarn buildNow TypeScript only. No longer runs bundle, lint or test. No longer production build by default.Generates output using TypeScript.
yarn buildciNo 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 buildtoNow TypeScript only. No longer runs bundle, lint or test. No longer production build by default.Builds to specified target package.
yarn buildfastRemoved (redundant with yarn build and yarn buildto)
yarn bundlebuildNewRuns webpack. Webpack configs use lib output as entry point, requiring build as prereq.
yarn cleanNewCleans package output.
yarn lintbuildNewRuns lint and lint-imports tasks. lint-imports requires build artifacts to detect that physical file exist for imports from 'lib'.
yarn testbuildNew (replaces yarn validate)Runs jest. Build artifacts required for dependencies of packages under test.
yarn validateRemoved (replaced by yarn test)