Skip to content

Commit 675d84b

Browse files
SFX build: phase 1 (#74)
* init new build * update dependencies * Integrate with Codelyzer * chore(tslint.json): update semicolon value * change tslint order and separate
1 parent bdb070a commit 675d84b

22 files changed

Lines changed: 70 additions & 39 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
## Introduction
2424
Welcome to Angular 2 Starter!
2525
This starter contains almost everything you need to start developing [Angular 2](https://angular.io/):
26+
* [NPM](https://www.npmjs.com/) for package manager
2627
* [TypeScript](http://www.typescriptlang.org/) for the base language
2728
* with [Typings](https://github.com/typings/typings) for TypeScript definition manager
2829
* [Gulp](http://gulpjs.com/) for workflow (from *serve*, *watch*, *compile*, *test* to *build*)
29-
* [NPM](https://www.npmjs.com/) for package manager
3030
* [Browsersync](https://www.browsersync.io/) for development server & reload capability
3131
* [SystemJS](https://github.com/systemjs/systemjs) for module loader
32+
* [Codelyzer](https://github.com/mgechev/codelyzer) for static code analyzer
3233
* [Karma](http://karma-runner.github.io/) for test-runner
3334
* [Jasmine](http://jasmine.github.io/) for test framework
3435
* [Istanbul](https://github.com/gotwarlost/istanbul) for test coverage

app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { AppComponent } from './app.component';
2222
import { LoggerService } from './blocks/logger.service';
2323

2424
@Component({
25-
selector: 'test',
26-
template: '<div><main-app></main-app></div>',
25+
selector: 'as-test',
26+
template: '<div><as-main-app></as-main-app></div>',
2727
directives: [AppComponent]
2828
})
2929
class TestComponent {

app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {NavbarComponent} from './navbar/navbar.component';
55
import {LoggerService} from './blocks/logger.service';
66

77
@Component({
8-
selector: 'main-app',
8+
selector: 'as-main-app',
99
templateUrl: 'app/app.html',
1010
directives: [RouterOutlet, NavbarComponent]
1111
})

app/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<navbar [routes]="appRoutes" brand="Angular 2 Starter"></navbar>
1+
<as-navbar [routes]="appRoutes" brand="Angular 2 Starter"></as-navbar>
22
<div class="container" style="margin-top: 100px;">
33
<router-outlet></router-outlet>
44
</div>

app/home/home.component.ts

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

33
@Component({
4-
selector: 'home',
4+
selector: 'as-home',
55
templateUrl: 'app/home/home.html',
66
styleUrls: [
77
'app/home/home.css'

app/navbar/navbar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {CORE_DIRECTIVES} from '@angular/common';
33
import {RouterLink, RouteDefinition} from '@angular/router-deprecated';
44

55
@Component({
6-
selector: 'navbar',
6+
selector: 'as-navbar',
77
templateUrl: 'app/navbar/navbar.html',
88
changeDetection: ChangeDetectionStrategy.OnPush,
99
directives: [RouterLink, CORE_DIRECTIVES]

app/simplebind/child.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { Component } from '@angular/core';
1313
import { ChildComponent } from './child.component';
1414

1515
@Component({
16-
selector: 'test',
16+
selector: 'as-test',
1717
template: `
18-
<child text="Hello test" [(fromParent)]="testName"></child>
18+
<as-child text="Hello test" [(fromParent)]="testName"></as-child>
1919
`,
2020
directives: [ChildComponent]
2121
})

app/simplebind/child.component.ts

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

33
@Component({
4-
selector: 'child',
4+
selector: 'as-child',
55
template: `
66
<h5>{{text}}</h5>
77
<h6>{{fromParent}}</h6>

app/simplebind/simplebind.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { Component } from '@angular/core';
1212
import { SimplebindComponent } from './simplebind.component';
1313

1414
@Component({
15-
selector: 'test',
16-
template: '<div><simplebind></simplebind></div>',
15+
selector: 'as-test',
16+
template: '<div><as-simplebind></as-simplebind></div>',
1717
directives: [SimplebindComponent]
1818
})
1919
class TestComponent {

app/simplebind/simplebind.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component} from '@angular/core';
22
import {ChildComponent} from './child.component';
33

44
@Component({
5-
selector: 'simplebind',
5+
selector: 'as-simplebind',
66
templateUrl: 'app/simplebind/simplebind.html',
77
directives: [ChildComponent]
88
})

0 commit comments

Comments
 (0)