Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 363f68f

Browse files
committed
merge upstream
2 parents 700b247 + 8a3b231 commit 363f68f

18 files changed

+178
-59
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sudo: required
2+
dist: trusty
3+
addons:
4+
apt:
5+
sources:
6+
- google-chrome
7+
packages:
8+
- google-chrome-stable
9+
language: node_js
10+
node_js:
11+
- "7"
12+
before_script:
13+
- export DISPLAY=:99.0
14+
- sh -e /etc/init.d/xvfb start
15+
script:
16+
- ng lint
17+
- ng test --single-run
18+
- ng build -prod
19+
- ng e2e

e2e/app.e2e-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ describe('rxjs-docs App', () => {
77
page = new AppPage();
88
});
99

10-
it('should display welcome message', () => {
10+
it('should display title', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to app!');
12+
expect(page.getPageTitle()).toEqual('RxJS Docs');
1313
});
1414
});

e2e/app.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class AppPage {
55
return browser.get('/');
66
}
77

8-
getParagraphText() {
9-
return element(by.css('app-root h1')).getText();
8+
getPageTitle() {
9+
return element(by.css('span.title')).getText();
1010
}
1111
}

package.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,46 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "^4.4.4",
17-
"@angular/cdk": "^2.0.0-beta.12",
18-
"@angular/common": "^4.2.4",
19-
"@angular/compiler": "^4.2.4",
20-
"@angular/core": "^4.2.4",
21-
"@angular/forms": "^4.2.4",
22-
"@angular/http": "^4.2.4",
23-
"@angular/material": "^2.0.0-beta.12",
24-
"@angular/platform-browser": "^4.2.4",
25-
"@angular/platform-browser-dynamic": "^4.2.4",
26-
"@angular/router": "^4.2.4",
27-
"@types/hammerjs": "^2.0.35",
28-
"core-js": "^2.4.1",
29-
"hammerjs": "^2.0.8",
30-
"rxjs": "^5.4.2",
31-
"zone.js": "^0.8.14"
16+
"@angular/animations": "4.4.4",
17+
"@angular/cdk": "2.0.0-beta.12",
18+
"@angular/common": "4.4.4",
19+
"@angular/compiler": "4.4.4",
20+
"@angular/core": "4.4.4",
21+
"@angular/forms": "4.4.4",
22+
"@angular/http": "4.4.4",
23+
"@angular/material": "2.0.0-beta.12",
24+
"@angular/platform-browser": "4.4.4",
25+
"@angular/platform-browser-dynamic": "4.4.4",
26+
"@angular/router": "4.4.4",
27+
"@types/hammerjs": "2.0.35",
28+
"core-js": "2.4.1",
29+
"hammerjs": "2.0.8",
30+
"rxjs": "5.4.2",
31+
"zone.js": "0.8.14"
3232
},
3333
"devDependencies": {
34-
"@angular/cli": "1.4.3",
35-
"@angular/compiler-cli": "^4.2.4",
36-
"@angular/language-service": "^4.2.4",
37-
"@angular/service-worker": "^1.0.0-beta.16",
38-
"@types/jasmine": "~2.5.53",
39-
"@types/jasminewd2": "~2.0.2",
40-
"@types/node": "~6.0.60",
41-
"angular2-template-loader": "^0.6.2",
42-
"codelyzer": "~3.1.1",
43-
"electron": "^1.6.11",
44-
"jasmine-core": "~2.6.2",
45-
"jasmine-spec-reporter": "~4.1.0",
46-
"karma": "~1.7.0",
47-
"karma-chrome-launcher": "~2.1.1",
48-
"karma-cli": "~1.0.1",
49-
"karma-coverage-istanbul-reporter": "^1.2.1",
50-
"karma-jasmine": "~1.1.0",
51-
"karma-jasmine-html-reporter": "^0.2.2",
52-
"protractor": "~5.1.2",
53-
"ts-node": "~3.2.0",
54-
"tslint": "~5.3.2",
55-
"typescript": "~2.3.3",
34+
"@angular/cli": "1.4.5",
35+
"@angular/compiler-cli": "4.4.4",
36+
"@angular/language-service": "4.4.4",
37+
"@angular/service-worker": "1.0.0-beta.16",
38+
"@types/jasmine": "2.5.53",
39+
"@types/jasminewd2": "2.0.2",
40+
"@types/node": "6.0.60",
41+
"angular2-template-loader": "0.6.2",
42+
"codelyzer": "3.1.1",
43+
"electron": "1.6.11",
44+
"jasmine-core": "2.6.2",
45+
"jasmine-spec-reporter": "4.1.0",
46+
"karma": "1.7.0",
47+
"karma-chrome-launcher": "2.1.1",
48+
"karma-cli": "1.0.1",
49+
"karma-coverage-istanbul-reporter": "1.2.1",
50+
"karma-jasmine": "1.1.0",
51+
"karma-jasmine-html-reporter": "0.2.2",
52+
"protractor": "5.1.2",
53+
"ts-node": "3.2.0",
54+
"tslint": "5.3.2",
55+
"typescript": "2.3.3",
5656
"wallaby-webpack": "*"
5757
}
5858
}

src/app/app.component.spec.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { RouterTestingModule } from '@angular/router/testing';
3+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4+
import { MatToolbarModule, MatSidenavModule, MatIconModule, MatButtonModule, MatListModule } from '@angular/material';
5+
import { AppComponent } from './app.component';
6+
7+
describe('AppComponent', () => {
8+
let component: AppComponent;
9+
let fixture: ComponentFixture<AppComponent>;
10+
11+
beforeEach(async(() => {
12+
TestBed.configureTestingModule({
13+
imports: [
14+
RouterTestingModule,
15+
BrowserAnimationsModule,
16+
MatToolbarModule,
17+
MatSidenavModule,
18+
MatIconModule,
19+
MatButtonModule,
20+
MatListModule
21+
],
22+
declarations: [AppComponent]
23+
})
24+
.compileComponents();
25+
}));
26+
27+
beforeEach(() => {
28+
fixture = TestBed.createComponent(AppComponent);
29+
component = fixture.componentInstance;
30+
fixture.detectChanges();
31+
});
32+
33+
it('should create', () => {
34+
expect(component).toBeTruthy();
35+
});
36+
});

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
22

3-
class Menu {
3+
interface Menu {
44
title: string;
55
link: string;
66
options: { exact: boolean };

src/app/app.module.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
import { BrowserModule } from '@angular/platform-browser';
2-
import { NgModule } from '@angular/core';
32
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3+
import { NgModule } from '@angular/core';
44
import { MatToolbarModule, MatSidenavModule, MatIconModule, MatButtonModule, MatListModule } from '@angular/material';
55
import { RouterModule, PreloadAllModules } from '@angular/router';
66

7-
import { RXJS_DOC_ROUTES } from './app.routing';
8-
97
import { AppComponent } from './app.component';
10-
import { CompaniesComponent } from './companies/companies.component';
11-
import { TeamComponent } from './team/team.component';
12-
import { RxjsComponent } from './rxjs/rxjs.component';
8+
import { RXJS_DOC_ROUTES } from './app.routing';
139

1410
@NgModule({
1511
declarations: [
1612
AppComponent,
17-
CompaniesComponent,
18-
TeamComponent,
19-
RxjsComponent
2013
],
2114
imports: [
2215
BrowserModule,

src/app/app.routing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { RxjsComponent } from './rxjs/rxjs.component';
77
import { TeamComponent } from './team/team.component';
88

99
export const RXJS_DOC_ROUTES: Routes = [
10-
{ path: '', component: RxjsComponent },
10+
{ path: '', loadChildren: './rxjs/rxjs.module#RxjsModule' },
1111
{ path: 'operators', loadChildren: './operators/operators.module#OperatorsModule' },
12-
{ path: 'team', component: TeamComponent },
13-
{ path: 'companies', component: CompaniesComponent },
12+
{ path: 'team', loadChildren: './team/team.module#TeamModule' },
13+
{ path: 'companies', loadChildren: './companies/companies.module#CompaniesModule' },
1414
{ path: '**', redirectTo: '' }
1515
];

src/app/companies/companies.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export class CompaniesComponent implements OnInit {
1111

1212
ngOnInit() {
1313
}
14-
1514
}
15+

0 commit comments

Comments
 (0)