Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit c76cba1

Browse files
chalinfilipesilva
authored andcommitted
chore(README): development setup - add deploy-install step (#2915)
1 parent dbfe872 commit c76cba1

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,24 @@ This site relies heavily on node and npm.
2929
1. Make sure you are using at least node v.5+ and latest npm;
3030
if not install [nvm](https://github.com/creationix/nvm) to get node going on your machine.
3131

32-
1. Install npm `gulp` package *globally*: `npm install -g gulp`
32+
1. Install global npm packages by running `./scripts/before-install.sh`
3333

34-
1. Clone this repo, the [angular/angular source code repo](https://github.com/angular/angular), and the [dart-lang/angular2 source code repo](https://github.com/dart-lang/angular2) to the same parent directory.
35-
The three cloned repo directories must be siblings, with the latter two repo directories named **angular** and **angular-dart**, respectively.
34+
1. Clone
35+
36+
- this repo
37+
- [angular/angular source code repo](https://github.com/angular/angular)
38+
- (OPTIONAL) [dart-lang/angular2 source code repo](https://github.com/dart-lang/angular2);
39+
cloning the Angular Dart repo is only necessary if you plan on doing full site builds
40+
41+
to the same parent directory. The **cloned repo directories must be siblings**, with the latter two repo directories named **angular** and **angular-dart**, respectively.
3642

3743
1. cd into root directory `angular.io/`
3844

39-
1. install the *all-docs* local packages by running `npm install`
40-
> You probably must rebuild `node-sass` in a separate step: `npm rebuild node-sass`
45+
1. Install local npm packages by running `./scripts/install.sh`
46+
47+
1. (OPTIONAL) If you intend on doing **full site builds** then you must have the
48+
Angular Dart repo (see the Clone step above), _and_ Dart tooling available.
49+
Both can be installed by running `./scripts/deploy-install.sh`
4150

4251
1. See [below](#code-sample-development) for code sample development preparation.
4352

scripts/before-install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ set -e -o pipefail
66
[[ -n "$TRAVIS" ]] && . ./scripts/env-info-and-check.sh
77

88
if [ -z "$TRAVIS" ]; then
9-
set -x
10-
npm install -g gulp --no-optional
11-
set +x
9+
(set -x; npm install -g gulp --no-optional)
1210
fi

0 commit comments

Comments
 (0)