Update README.md

This commit is contained in:
Kathy Walrath 2015-01-09 16:29:34 -08:00 committed by Rado Kirov
parent d02c0accbb
commit d0333e4376
1 changed files with 11 additions and 9 deletions

View File

@ -3,17 +3,19 @@ Angular [![Build Status](https://travis-ci.org/angular/angular.svg?branch=master
## Build ## Build
### Prerequisites: ### Prerequisites
If you don't already have `npm`, get it by installing [node.js](http://nodejs.org/).
1. `npm install` 1. `npm install`
2. `npm install -g gulp karma karma-cli` 2. `npm install -g gulp karma karma-cli` (you might need to prefix this command with `sudo`)
3. `npm install -g protractor` 3. `npm install -g protractor` (you might need to prefix this command with `sudo`)
4. `webdriver-manager update` 4. `webdriver-manager update`
3. Optionally install Dart SDK (only if you plan on building Dart applications) 5. If you plan to use Dart:
1. [Install the Dart SDK](https://www.dartlang.org/tools/sdk/) 1. [Install the Dart SDK](https://www.dartlang.org/tools/sdk/)
2. [Add the Dart SDK's `bin` directory to your system path](https://www.dartlang.org/tools/pub/installing.html) 2. [Add the Dart SDK's `bin` directory to your system path](https://www.dartlang.org/tools/pub/installing.html)
4. `gulp build` 3. Get the pub packages you need: `pub get`
5. `pub get` 6. `gulp build`
### Folder structure ### Folder structure
@ -27,7 +29,7 @@ Angular [![Build Status](https://travis-ci.org/angular/angular.svg?branch=master
* `*.es5`: javascript files that don't get transpiled * `*.es5`: javascript files that don't get transpiled
* `*.dart`: dart files that don't get transpiled * `*.dart`: dart files that don't get transpiled
### Build: ### Build
1. `gulp build` -> result is in `dist` folder 1. `gulp build` -> result is in `dist` folder
@ -37,7 +39,7 @@ Angular [![Build Status](https://travis-ci.org/angular/angular.svg?branch=master
2. `gulp clean` -> cleans the `dist` folder 2. `gulp clean` -> cleans the `dist` folder
### Unit tests: ### Unit tests
1. `karma start karma-js.conf.js`: JS tests 1. `karma start karma-js.conf.js`: JS tests
2. `karma start karma-dart.conf.js`: Dart tests 2. `karma start karma-dart.conf.js`: Dart tests
@ -55,7 +57,7 @@ to the preprocessor and run the tests without exiting karma
2. `protractor protractor-perf-js.conf.js`: JS performance tests 2. `protractor protractor-perf-js.conf.js`: JS performance tests
3. `protractor protractor-perf-dart2js.conf.js`: Dart2JS performance tests 3. `protractor protractor-perf-dart2js.conf.js`: Dart2JS performance tests
### Examples: ### Examples
To see the examples, first build the project as described above. To see the examples, first build the project as described above.