- Make sure you have both
nodeandyarninstalled. We recommend usingnvmto manage your node versions. - angular/components uses Bazel which requires certain Bash and UNIX tools.
- On Windows: Follow the instructions
to install
MSYS2and the listed "Common MSYS2 packages". Afterwards addC:\msys64\usr\binto thePATHenvironment variable.
- On Windows: Follow the instructions
to install
- Fork the
angular/componentsrepo on GitHub. - Clone your fork to your machine with
git clone. Recommendation: name your git remotesupstreamforangular/componentsand<your-username>for your fork. Also see the team git shortcuts. - From the root of the project, run
yarnto install the dependencies.
To build angular/components in release mode, run yarn build. The output can be found under dist/releases.
To bring up a local server, run yarn dev-app. This will automatically watch for changes
and rebuild. The browser should refresh automatically when changes are made.
To run unit tests, run yarn test <target>. The target can be either a short name (e.g. yarn test button) or an explicit path yarn test src/cdk/stepper.
To run the e2e tests, run yarn e2e.
To run lint, run yarn lint.