chore: install upgrade with install-example-angular

This commit is contained in:
Jesús Rodríguez 2016-07-14 21:35:06 +02:00
parent 253ab01031
commit 02cd26bda6
1 changed files with 3 additions and 1 deletions

View File

@ -464,11 +464,13 @@ function installExampleAngular() {
var libs = [
'core', 'common', 'compiler',
'platform-browser', 'platform-browser-dynamic',
'forms', 'http', 'router'];
'forms', 'http', 'router', 'upgrade'];
// Like: "angular/core-builds" or "@angular/core"
sources = libs.map( lib => argv.build ? `angular/${lib}-builds` : `@angular/${lib}`);
sources.push('@angular/router-deprecated');
gutil.log(`Installing Angular npm packages from ${argv.build ? 'BUILD' : 'RELEASE'}`);
var spawnInfo = spawnExt('rm', ['-rf', 'node_modules/@angular'], { cwd: EXAMPLES_PATH});