- Make sure you have
nodeinstalled with a version at least 4.2.3. - Run
npm install -g angular-clito install the Angular CLI. - Fork the
angular/material2repo. - Clone your fork.
Recommendation: name your git remotes
upstreamforangular/material2and<your-username>for your fork. Also see the team git shortcuts. - From the root of the project, run
npm install, then runnpm run typingsto install typescript definitions.
To build the project, run ng build.
To watch for changes and automatically rebuild, run ng build --watch
To bring up a local server, run ng serve. This will automatically watch for changes and rebuild.
After the changes rebuild, the browser currently needs to be manually refreshed.
To run unit tests, run npm test.
###Running e2e tests:
To prepare your environment, you'll need to install protractor and selenium.
- Globally install protractor:
npm install -g protractor
- Install the correct selenium version with webdriver-manager (this comes with protractor):
webdriver-manager update
When running the tests:
-
Spin up a local server with
ng-serve. -
Run tests with:
protractor test/protractor.conf.js
Running benchmarks: not yet implemented Running screenshot diff tests: not yet implemented