- Make sure you have both
node
andyarn
installed. - Angular MDC 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
- Fork the
angular-mdc/web
repo on GitHub. - Clone your fork to your machine with
git clone
. - From the root of the project, run
yarn
to install the dependencies.
From the root of the project,
yarn demo-app
After your development server is running, open a browser to url: http://localhost:4200
From the root of the project,
yarn lint # Lints typescript using tslint
yarn lint:css # Lints (S)CSS using stylelint
From the root of the project,
yarn test:watch # Runs karma on ChromeHeadless, re-running when source files change
yarn test # Runs karma, and then runs coverage enforcement checks a single time
From the root of the project,
yarn build # Builds Angular MDC inside of dist/releases/packages
We follow Google's JavaScript Style Guide and our entire coding style is enforced automatically through the use of linters.