Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.27 KB

2. build-samples-and-packages.md

File metadata and controls

42 lines (28 loc) · 1.27 KB

Contribution Guide

  1. Getting Set up
  2. Building Samples and Packages
  3. Running a Sample or Storybook
  4. Testing your changes
  5. Writing unit tests
  6. Submitting a PR
  7. Having your changes published

2. Building Samples and Packages

Building a specific sample or package

To build and sample or package, and all of its dependencies, run:

rush build -t "package-name" # run this from anywhere

You can find package names at the top of the rush.json.

If you have built the package and all its dependencies and subsequently only want to rebuild the package you have made changes to, run:

rushx build # run this from the package/sample directory you're looking to build

Building the whole repo

To build the whole repo you can run:

rush build # run this from any directory inside the repo

note: this will take a long time the first time it is run