- Make sure you have
node
installed with a version at least 10.0.0 andyarn
with a version of at least 1.10.0. We recommend usingnvm
to manage your node versions. - angular/components uses Bazel which requires certain Bash and UNIX tools.
- On Windows: Follow the instructions
to install
MSYS2
and the listed "Common MSYS2 packages". Afterwards addC:\msys64\usr\bin
to thePATH
environment variable.
- On Windows: Follow the instructions
to install
- Run
yarn global add gulp
to install gulp. - Fork the
angular/components
repo on GitHub. - Clone your fork to your machine with
git clone
. Recommendation: name your git remotesupstream
forangular/components
and<your-username>
for your fork. Also see the team git shortcuts. - From the root of the project, run
yarn
.
To build angular/components in dev mode, run gulp material:build
.
To build angular/components in release mode, run gulp material:build-release
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
.
To run the e2e tests, run yarn e2e
.
To run lint, run yarn lint
.