diff --git a/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts b/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts index 33ee6b57ea7d..648c5d48cd04 100644 --- a/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts +++ b/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts @@ -10,7 +10,7 @@ import { ComponentFixture, TestComponentBuilder } from 'angular2/testing'; -import {<%= classifiedModuleName %>Component} from './<%= dasherizedModuleName %>.component'; +import { <%= classifiedModuleName %>Component } from './<%= dasherizedModuleName %>.component'; describe('Component: <%= classifiedModuleName %>', () => { beforeEachProviders(() => [<%= classifiedModuleName %>Component]); @@ -18,5 +18,4 @@ describe('Component: <%= classifiedModuleName %>', () => { it('should create the component', inject([<%= classifiedModuleName %>Component], (component: <%= classifiedModuleName %>Component) => { expect(component).toBeTruthy(); })); - }); diff --git a/addon/ng2/blueprints/component/files/__path__/__name__.component.ts b/addon/ng2/blueprints/component/files/__path__/__name__.component.ts index 468d4b9de2c3..48646194894e 100644 --- a/addon/ng2/blueprints/component/files/__path__/__name__.component.ts +++ b/addon/ng2/blueprints/component/files/__path__/__name__.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from 'angular2/core'; +import { Component, OnInit } from 'angular2/core'; @Component({ moduleId: __moduleName, diff --git a/addon/ng2/blueprints/component/files/__path__/index.ts b/addon/ng2/blueprints/component/files/__path__/index.ts index 40f21b7c040c..876f94aebd5f 100644 --- a/addon/ng2/blueprints/component/files/__path__/index.ts +++ b/addon/ng2/blueprints/component/files/__path__/index.ts @@ -1,2 +1 @@ -export {<%= classifiedModuleName %>Component} from './<%= dasherizedModuleName %>.component'; - +export { <%= classifiedModuleName %>Component } from './<%= dasherizedModuleName %>.component'; diff --git a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts index 3778644742d5..0963b22c720b 100644 --- a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts +++ b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts @@ -10,8 +10,8 @@ import { ComponentFixture, TestComponentBuilder } from 'angular2/testing'; -import {provide, Component} from 'angular2/core'; -import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>.directive'; +import { provide, Component } from 'angular2/core'; +import { <%= classifiedModuleName %> } from './<%= dasherizedModuleName %>.directive'; @Component({ selector: 'test-component', @@ -20,14 +20,11 @@ import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>.directi class TestComponent {} describe('<%= classifiedModuleName %> Directive', () => { - beforeEachProviders((): any[] => []); - it('should ...', async(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => { return tcb.createAsync(TestComponent).then((fixture: ComponentFixture) => { fixture.detectChanges(); }); }))); - }); diff --git a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.ts b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.ts index 9857b0ca6ff7..3bf4346ae8b3 100644 --- a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.ts +++ b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.ts @@ -1,4 +1,4 @@ -import {Directive} from 'angular2/core'; +import { Directive } from 'angular2/core'; @Directive({ selector: '[<%= rawEntityName %>]' diff --git a/addon/ng2/blueprints/ng2/files/.editorconfig b/addon/ng2/blueprints/ng2/files/.editorconfig new file mode 100644 index 000000000000..20380c701c90 --- /dev/null +++ b/addon/ng2/blueprints/ng2/files/.editorconfig @@ -0,0 +1,14 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = 0 +trim_trailing_whitespace = false diff --git a/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.spec.ts b/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.spec.ts index 43fbd7e4929b..c6e239e92044 100644 --- a/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.spec.ts +++ b/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.spec.ts @@ -10,12 +10,12 @@ import { ComponentFixture, TestComponentBuilder } from 'angular2/testing'; -import {<%= jsComponentName %>App} from '../app/<%= htmlComponentName %>.component'; +import { <%= jsComponentName %>AppComponent } from '../app/<%= htmlComponentName %>.component'; -beforeEachProviders(() => [<%= jsComponentName %>App]); +beforeEachProviders(() => [<%= jsComponentName %>AppComponent]); describe('App: <%= jsComponentName %>', () => { - it('should create the app', inject([<%= jsComponentName %>App], (app: <%= jsComponentName %>App) => { + it('should create the app', inject([<%= jsComponentName %>AppComponent], (app: <%= jsComponentName %>AppComponent) => { expect(app).toBeTruthy(); })); }); diff --git a/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts b/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts index bd4671245f93..02d4e738237b 100644 --- a/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts +++ b/addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts @@ -1,4 +1,4 @@ -import {Component} from 'angular2/core'; +import { Component } from 'angular2/core'; @Component({ moduleId: __moduleName, @@ -6,5 +6,5 @@ import {Component} from 'angular2/core'; templateUrl: '<%= htmlComponentName %>.component.html', styleUrls: ['<%= dasherizedModuleName %>.component.<%= styleExt %>'] }) -export class <%= jsComponentName %>App { +export class <%= jsComponentName %>AppComponent { } diff --git a/addon/ng2/blueprints/ng2/files/__path__/icon.png b/addon/ng2/blueprints/ng2/files/__path__/icon.png new file mode 100644 index 000000000000..4dace951fab2 Binary files /dev/null and b/addon/ng2/blueprints/ng2/files/__path__/icon.png differ diff --git a/addon/ng2/blueprints/ng2/files/__path__/index.html b/addon/ng2/blueprints/ng2/files/__path__/index.html index 5e057f9f548c..085e21cab244 100644 --- a/addon/ng2/blueprints/ng2/files/__path__/index.html +++ b/addon/ng2/blueprints/ng2/files/__path__/index.html @@ -5,7 +5,8 @@ <%= jsComponentName %> {{content-for 'head'}} - + <% if (isMobile) { %> + <% } %>